Fandom

BattleForge Wiki

Action Script Example - Mission Victory

1,156pages on
this wiki
Add New Page
Talk0 Share
Description
The following script will immediately end the game with a victory screen. Combine it with a condition to define win conditions.
Code
State
{
   StateName = "INIT",
   OnOneTimeEvent
   {
      Conditions =
      {
      },
      Actions =
      {
         PlayerGameWon {}
      }
   };
};
Notes
  • You can add any Script Event Condition in the condition section to force this script to only trigger when the condition is true.


.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.