When I try to test my map, after it finishes loading, one or two seconds into the game, it closes. Do you know what it might be? If it's a trigger, I only have one on, and that is this:
Please help, or I'll never finish this map, literally.
Code:
Starting Game
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Unit - Pause (Picked unit))
Set UnitsRed[1] = Footman 0001 <gen>
Set UnitsRed[2] = Footman 0002 <gen>
Set UnitsRed[3] = Archer 0007 <gen>
Set UnitsRed[4] = Archer 0008 <gen>
Set UnitsBlue[1] = Footman 0003 <gen>
Set UnitsBlue[2] = Footman 0004 <gen>
Set UnitsBlue[3] = Archer 0005 <gen>
Set UnitsBlue[4] = Archer 0006 <gen>
Camera - Pan camera for Player 1 (Red) to (Position of UnitsRed[AutoAdd]) over 2.00 seconds
Unit - Create 1 Orbiter for Neutral Passive at ((Position of UnitsRed[AutoAdd]) offset by (DistanceMax, 0.00)) facing Default building facing (270.0) degrees
Set Orbiter = (Last created unit)
Trigger - Turn on Orbit <gen>
Dialog - Show OptionsMenu for Player 1 (Red)
Dialog - Change the title of OptionsMenu to Options
Dialog - Create a dialog button for OptionsMenu labelled Attack
Set Attack = (Last created dialog Button)
Dialog - Create a dialog button for OptionsMenu labelled Move
Set Move = (Last created dialog Button)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of UnitsRed[AutoAdd]) Equal to Footman
Then - Actions
Dialog - Create a dialog button for OptionsMenu labelled Ability
Set Ability = (Last created dialog Button)
Else - Actions
Dialog - Create a dialog button for OptionsMenu labelled Skip Move
Set SkipMove = (Last created dialog Button)
Dialog - Create a dialog button for OptionsMenu labelled End Turn
Set EndTurn = (Last created dialog Button)
Set SelectedUnit = UnitsRed[AutoAdd]
Set AutoAdd = (AutoAdd + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AutoAdd Equal to 4
Then - Actions
Set AutoAdd = 1
Else - Actions
Please help, or I'll never finish this map, literally.