//DeathStarEscape_C //Big room melee state Base { Conditions { if Message "StartedMelee" > 0 and if PSP == 1 goto UpdateInitPSP if Message "StartedMelee" > 0 goto UpdateInit } Actions { } } state UpdateInit { Conditions { } Actions { CreateCreatures "locator=BigSpawn" "addtoset=5" "type=stormtrooper" "script=SpawnAttack" "groupsize=20" "nacross=5" SetState Update } } state UpdateInitPSP { Conditions { } Actions { CreateCreatures "locator=BigSpawn" "addtoset=5" "type=stormtrooper" "script=SpawnAttack" "groupsize=10" "nacross=5" SetState Update } } state Update { Conditions { ;Non PSP version if PSP == 0 and if ObstacleChainPhase "melee_door" < 2 and if Timer > 2 and if Message "StartedMelee" > 0 and if NumInSetAlive "5" < 10 and if Random > 0.5 and if ObstacleAtStart "Door_5" == 1 goto SpawnRight if PSP == 0 and if ObstacleChainPhase "melee_door" < 2 and if Timer > 2 and if Message "StartedMelee" > 0 and if NumInSetAlive "5" < 10 and if Random > 0.5 and if ObstacleAtStart "Door_6" == 1 goto SpawnLeft ;PSP version if PSP == 1 and if ObstacleChainPhase "melee_door" < 2 and if Timer > 2 and if Message "StartedMelee" > 0 and if NumInSetAlive "5" < 7 and if Random > 0.5 and if ObstacleAtStart "Door_5" == 1 goto SpawnRight if PSP == 1 and if ObstacleChainPhase "melee_door" < 2 and if Timer > 2 and if Message "StartedMelee" > 0 and if NumInSetAlive "5" < 7 and if Random > 0.5 and if ObstacleAtStart "Door_6" == 1 goto SpawnLeft if ObstacleAtStart "Door_5" == 0 and if ObstacleAtStart "Door_6" == 0 goto SpawnWait } Actions { ResetTimer } } state SpawnWait { Conditions { if ObstacleAtStart "Door_5" == 0 and if ObstacleAtStart "Door_6" == 0 goto SpawnWait if Timer > 7 goto Update } Actions { ResetTimer } } state SpawnRight { Conditions { } Actions { CreateCreatures "mingroupsize=1" "maxgroupsize=3" "locator=Big_RM_Right" "addtoset=5" "type=stormtrooper" "script=SpawnAttack" SetMessage "name=StartedMelee" "decrement=1" SetState "Update" } } state SpawnLeft { Conditions { } Actions { CreateCreatures "mingroupsize=1" "maxgroupsize=3" "locator=Big_RM_Left" "addtoset=5" "type=stormtrooper" "script=SpawnAttack" SetMessage "name=StartedMelee" "decrement=1" SetState "Update" } }