Battle Scene Actions - linkanr/UtopiaRises2d GitHub Wiki

Battle Scene Actions

Actions that operate during battles.

  • OnSceneObjectKilled – Triggered when a unit or structure dies.
  • OnInitializationComplete – Fired after the battle scene has initialized.
  • OnGlobalModifiersChanged – Called when global buffs or debuffs are modified.
  • OnGridGenerated – Triggered when the battlefield grid is ready.
  • OnNewCardAdded – Called when a card is added to hand or field.
  • _DoDrawCard – Forces a card draw (takes a number parameter).
  • OnDrawCardStateEntered – Entering the draw card state.
  • _DoShowPlayerInfluence – Show or hide influence bar (boolean).
  • OnSpawningStateStarted – Triggered when the enemy spawn phase begins.
  • OnCellClicked – A grid cell was clicked.
  • OnUpdateBounds – Viewport or camera bounds updated.
  • _DoAddToVanguards – Adds a unit to the vanguard group.
  • OnVanguardCountChanged – Vanguard unit count changed.
  • _DoSetInfluence / _DoAddInfluence – Adjust influence points.
  • OnInfluenceChanged – Influence value changed.
  • OnInitializedBattleScene – Final scene setup complete.