//MosEisley_B state Base { Conditions { if MissionMode == 1 goto MissionMode if AlwaysTrue == 1 goto Start } Actions { CnxController "from=BLOCK1_A" "to=BLOCK1_B" "on_flag=BLOCK" "obj=junk_02" "on_frames=0TOlastframe" "checkvisible" "bothways" CnxController "from=BLOCK2_A" "to=BLOCK2_B" "on_flag=BLOCK" "obj=junk_04" "on_frames=0TOlastframe" "checkvisible" "bothways" CnxController "from=BRIDGE1_A" "to=BRIDGE1_B" "on_flag=BLOCK" "obj=bridge_bit_6" "on_frames=0TOlastframe" "checkvisible" "bothways" CnxController "from=reinf_a" "to=reinf_b" "off_flag=BLOCK" "obj=spy_door5" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" AddLocatorGroup "name=WompRat" //Locators for WompRat's to run to. AddLocatorGroup "name=Spawn" //For spawning citizens AddLocatorGroup "name=Talk" //Locators for citizens to go to and, errr, talk! AddLocatorGroup "name=Storm_Spawn" //For spawning Stromtroopers AddLocatorGroup "name=RatSpawn" //For spawning WompRat's in the shooting alley. AddLocatorGroup "name=RatAlley" //For spawning WompRat's in the shooting alley. AddLocatorGroup "name=used" //For wandering around the used car showroom AddLocatorGroup "name=Plyr_Atst" //For running to during the minicut } } state Start { Conditions { } Actions { CreateCreatures "locator_group=Talk" "type=MosEisleyCitizen" "script=citizen" "addtoset=2" CreateCreatures "locator_group=Talk" "type=MosEisleyCitizen" "script=citizen" "addtoset=2" CreateCreatures "locator_group=Talk" "type=MosEisleyCitizen" "script=citizen" "addtoset=2" CreateCreatures "locator_group=Talk" "type=MosEisleyCitizen" "script=citizen" "addtoset=2" CreateCreatures "locator_group=Talk" "type=MosEisleyCitizen" "script=citizen" "addtoset=2" CreateCreatures "locator_group=Talk" "type=MosEisleyCitizen" "script=citizen" "addtoset=2" CreateCreatures "locator_group=Talk" "type=MosEisleyCitizen" "script=citizen" "addtoset=2" CreateCreatures "locator_group=Talk" "type=MosEisleyCitizen" "script=citizen" "addtoset=2" SetState "Update" } } //Set 2 : Citizens //Set 3 : 2xWaves of Stormtroopers //Set 4 : Atst stealer //Set 6 : Speeder thief state Update { Conditions { if NumInSetAlive "2" < 7 and if Random > 0.5 goto ReinforceCitizen //if PreviousResult < 0.5 and //if NumInSetAlive "2" < 4 goto ReinforceCitizenAlien if NumInSetAlive "3" < 4 and if ObstacleAtStart "spy_door5" == 1 and if Message "Wave" < 6 goto ReinforcePatrol if NumInSetAlive "4" == 0 and if Timer > 70 goto CheckATSTupdate if Message "Spawn" > 0 and if ObstacleAtStart "spy_door3" == 1 goto ReinforceMates if NumInSetAlive "6" < 1 and if ObstacleAtStart "spy_door5" == 1 and if CharacterTypeExists "Speeder_Land" == 1 goto ReinforceSpeederThief if AlwaysTrue == 1 goto Update } Actions { } } state CheckATSTupdate { Conditions { if EmptyTakeOver "ATST" == 1 and if ObstacleAtStart "spy_door5" == 1 goto ReinforceThief if EmptyTakeOver "ATST" == 0 goto Update } Actions { ResetTimer "mintime=0" "maxtime=2" } } state ReinforceCitizen { Conditions { if NumInSetAlive "2" > 7 goto Update } Actions { CreateCreatures "mingroupsize 1" "maxgroupsize 3" "locator_group=Talk" "type=MosEisleyCitizen" "script=citizen" "addtoset=2" "off_screen" SetState "Update" } } state ReinforceCitizenAlien { Conditions { if NumInSetAlive "2" > 7 goto Update } Actions { CreateCreatures "mingroupsize=1" "maxgroupsize=2" "locator_group=Talk" "type=cantinaaliens" "script=citizen" "addtoset=2" "off_screen" SetState "Update" } } state ReinforcePatrol { Conditions { } Actions { SetMessage "name=Wave" "increment=1" CreateCreatures "locator=Spawn" "type=SandTrooper" "script=SpawnAttack" "addtoset=3" SetState Update } } ;"groupsize=2" state ReinforceThief { Conditions { if NumInSetAlive "4" > 0 goto Update } Actions { CreateCreatures "locator=Spawn" "type=SandTrooper" "script=takeover" "addtoset=4" SetState Update } } state ReinforceMates { Conditions { } Actions { SetMessage "name=Spawn" "decrement=1" CreateCreatures "locator=mates" "type=SandTrooper" "script=SpawnAttack" SetState Update } } state ReinforceSpeederThief { Conditions { if NumInSetAlive "6" > 0 goto Update } Actions { CreateCreatures "locator=Spawn" "type=Jawa" "script=thief" "addtoset=6" SetState Update } } state MissionMode { Conditions { } Actions { } }