//Level Script for Hoth Battle D //Sets // 1: Spawning Probe Droids // 2: Spawning ATSTs state Base { Conditions { } Actions { AddLocatorGroup "name=spawn" SetState Update } } state Update { Conditions { if NumInSetAlive "2" < 2 and if Timer > 5 and if Random < 0.5 goto SpawnATST if NumInSetAlive "1" < 2 and if Timer > 3 and if Random < 0.25 goto SpawnProbe } Actions { ResetTimer } } state SpawnProbe { Conditions { } Actions { CreateCreatures "locator_group=spawn" "type=ProbeDroid" "script=probedroid" "addtoset=1" "off_screen" SetState "Update" } } state SpawnATST { Conditions { } Actions { CreateCreatures "locator=atst_spwm" "type=ATST_lowres" "script=rider" "addtoset=2" SetState "Update" } }