//Dagobah_E state Base { Conditions { if FreePlay == 1 goto Update if Message "DagobahTraining" == 1 goto StartTraining if AlwaysTrue == 1 goto StartNormal } Actions { SetMessage "name=LukeIsAJedi" "value=1" CnxController "from=bridge1_a" "to=bridge1_b" "off_flag=BLOCK" "obj=Bridge_A" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" ;CnxController "from=pad1_a" "to=pad1_b" "off_flag=BLOCK" "on_flag=JUMP" "on_flag=R2D2GLIDE" "obj=base_5" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=pad2_a" "to=pad2_b" "off_flag=BLOCK" "on_flag=JUMP" "on_flag=R2D2GLIDE" "obj=pad_2_base_2" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=pad3_a" "to=pad3_b" "off_flag=BLOCK" "obj=pad_3_base_2" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=pad4_a" "to=pad4_b" "off_flag=BLOCK" "obj=pad_4_base_2" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=pad5_a" "to=pad5_b" "off_flag=BLOCK" "on_flag=JUMP" "on_flag=R2D2GLIDE" "obj=pad_5_base_2" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=pad6_a" "to=pad6_b" "off_flag=BLOCK" "on_flag=JUMP" "on_flag=R2D2GLIDE" "obj=pad_5_base_2" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" ;CnxController "from=step2_b" "to=step2_c" "off_flag=BLOCK" "on_flag=R2D2GLIDE" "obj=mush_01" "checkvisible" "on_frames=lastframeTOlastframe" ;CnxController "from=step2_c" "to=step2_d" "off_flag=BLOCK" "on_flag=R2D2GLIDE" "obj=mush_02" "checkvisible" "on_frames=lastframeTOlastframe" AddLocatorGroup "name=StartBat" AddLocatorGroup "name=EndBat" } } state StartTraining { Conditions { } Actions { SetTaggable "character=LukeSkywalker_Pilot" "FALSE" CannotDropIn "character=LukeSkywalker_Pilot" NotWithParty "character=LukeSkywalker_Pilot" DeActivate "character=LukeSkywalker_Pilot" CanBeCarried "character=Yoda" ; SetTaggable "character=Yoda" "FALSE" ; CannotDropIn "character=Yoda" ; NotWithParty "character=Yoda" ; DeActivate "character=Yoda" SetMessage "name=PlayMiniCutInB" "value=1" SetState "Update" } } state StartNormal { Conditions { } Actions { SetTaggable "character=LukeSkywalker_Pilot" "FALSE" CannotDropIn "character=LukeSkywalker_Pilot" NotWithParty "character=LukeSkywalker_Pilot" DeActivate "character=LukeSkywalker_Pilot" ; SetTaggable "character=Yoda" "FALSE" ; CannotDropIn "character=Yoda" ; NotWithParty "character=Yoda" ; DeActivate "character=Yoda" SetState "Update" } } state Update { Conditions { if Message "HatchSpawn1" == 0 and if ObstacleFinished "Snake_catch1" == 1 goto HatchSpawn1 if Message "HatchSpawn2" == 0 and if ObstacleFinished "Snake_catch2" == 1 goto HatchSpawn2 if Message "HatchSpawn3" == 0 and if ObstacleFinished "Snake_catch3" == 1 goto HatchSpawn3 } Actions { } } state HatchSpawn1 { Conditions { } Actions { CreateCreatures "locator=HatchSpawn_1" "type=bat" "script=bat" Idle "0.25" CreateCreatures "locator=HatchSpawn_1" "type=bat" "script=bat" Idle "0.25" CreateCreatures "locator=HatchSpawn_1" "type=bat" "script=bat" Idle "0.25" CreateCreatures "locator=HatchSpawn_1" "type=bat" "script=bat" SetMessage "name=HatchSpawn1" "value=1" SetState "Update" } } state HatchSpawn2 { Conditions { } Actions { CreateCreatures "locator=HatchSpawn_2" "type=bat" "script=bat" Idle "0.25" CreateCreatures "locator=HatchSpawn_2" "type=bat" "script=bat" Idle "0.25" CreateCreatures "locator=HatchSpawn_2" "type=bat" "script=bat" Idle "0.25" CreateCreatures "locator=HatchSpawn_2" "type=bat" "script=bat" SetMessage "name=HatchSpawn2" "value=1" SetState "Update" } } state HatchSpawn3 { Conditions { } Actions { CreateCreatures "locator=HatchSpawn_3" "type=bat" "script=bat" Idle "0.25" CreateCreatures "locator=HatchSpawn_3" "type=bat" "script=bat" Idle "0.25" CreateCreatures "locator=HatchSpawn_3" "type=bat" "script=bat" Idle "0.25" CreateCreatures "locator=HatchSpawn_3" "type=bat" "script=bat" SetMessage "name=HatchSpawn3" "value=1" SetState "Update" } }