//MosEisley_C state Base { Conditions { } Actions { ;AddLocatorGroup "name=Spawn" //For spawning citizens AddLocatorGroup "name=Walk" //Locators for citizens to go to and, errr, talk! AddLocatorGroup "name=bar" //For the barman AddLocatorGroup "name=ForceBackWait" ObstacleTriggerSet "trigger=door_pad_1" "trigger=door_pad_2" "trigger=door_pad_3" "trigger=door_pad_4" "obstacle=pad_door" CnxController "from=ff_path1" "to=ff_path2" "on_flag=BLOCK" "obj=force_field" "checkvisible" "on_frames=1TOlastframe-1" "bothways" SetState "Start" } } state Start { Conditions { } Actions { CreateCreatures "locator_group=Walk" "type=cantinaaliens" "script=citizen" "addtoset=2" CreateCreatures "locator_group=Walk" "type=MosEisleyCitizen" "script=citizen" "addtoset=2" CreateCreatures "locator_group=Walk" "type=cantinaaliens" "script=citizen" "addtoset=2" CreateCreatures "locator_group=Walk" "type=MosEisleyCitizen" "script=citizen" "addtoset=2" CreateCreatures "locator_group=Walk" "type=cantinaaliens" "script=citizen" "addtoset=2" CreateCreatures "locator_group=Walk" "type=MosEisleyCitizen" "script=citizen" "addtoset=2" CreateCreatures "locator_group=Walk" "type=cantinaaliens" "script=citizen" "addtoset=2" CreateCreatures "locator_group=Walk" "type=MosEisleyCitizen" "script=citizen" "addtoset=2" CreateCreatures "locator_group=Walk" "type=cantinaaliens" "script=citizen" "addtoset=2" CreateCreatures "locator_group=Walk" "type=jawa" "script=citizen" "addtoset=2" CreateCreatures "locator_group=Walk" "type=jawa" "script=citizen" "addtoset=2" CreateCreatures "locator_group=Walk" "type=jawa" "script=citizen" "addtoset=2" SetState "Update" } } state Update { Conditions { if NumInSetAlive "2" < 7 and if Random > 0.5 goto Reinforce if PreviousResult < 0.5 and if NumInSetAlive "2" < 4 goto ReinforceAlien if Message "MetObiAndChewy" == 0 and if CutSceneFinished "moseisley_midtro" == 1 goto MetObiAndChewy ;if Message "testcut" == 1 goto MetObiAndChewy } Actions { } } state Reinforce { Conditions { if NumInSetAlive "2" > 4 goto Update } Actions { CreateCreatures "mingroupsize 1" "maxgroupsize 3" "locator_group=Walk" "type=MosEisleyCitizen" "script=citizen" "addtoset=2" "off_screen" SetState Reinforce } } state ReinforceAlien { Conditions { if NumInSetAlive "2" > 4 goto Update } Actions { CreateCreatures "mingroupsize 1" "maxgroupsize 3" "locator_group=Walk" "type=cantinaaliens" "script=citizen" "addtoset=2" "off_screen" SetState Reinforce } } state MetObiAndChewy { Conditions { } Actions { SetMessage "name=MetObiAndChewy" "value=1" Activate "character=Chewbacca" SnapToLocator "character=Chewbacca" "name=Chewbacca" Activate "character=HanSolo" SnapToLocator "character=HanSolo" "name=HanSolo" SetTaggable "character=LukeSkywalker_Tatooine" "FALSE" DeActivate "character=LukeSkywalker_Tatooine" SetTaggable "character=BenKenobi" "FALSE" DeActivate "character=BenKenobi" SetTaggable "character=R2D2" "FALSE" DeActivate "character=R2D2" SetTaggable "character=C3PO" "FALSE" DeActivate "character=C3PO" ResetGameCamera SetState "Update" } }