//EmperorFight_A state Base { Conditions { if Message "SpawnGuards1" == 1 goto SpawnGuards } Actions { } } state SpawnGuards { Conditions { if NumInSetAlive "1" == 0 goto Complete } Actions { CreateCreatures "locator=ImpSpawn1_1" "type=ImperialGuard" "script=ImpGuard" "AddToSet=1" CreateCreatures "locator=ImpSpawn1_2" "type=ImperialGuard" "script=ImpGuard" "AddToSet=1" } } state Complete { Conditions { } Actions { SetMessage "name=SpawnGuards1" "value=0" SetState "Base" } }