//Dagobah_C state Base { Conditions { if FreePlay == 1 goto Update if Message "LukeIsAJedi" == 1 goto Start_LukeIsAJedi if AlwaysTrue == 1 goto Start_LukeIsNotAJedi } Actions { ;CnxController "from=bridge1_a" "to=bridge1_b" "off_flag=BLOCK" "obj=bridge_1" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=bridge1_a" "to=bridge1_b" "off_flag=R2D2GLIDE" "obj=bridge_1" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=bridge1_b" "to=bridge1_c" "off_flag=DBLJUMP" "obj=ramp_2_1" "checkvisible" "on_frames=lastframeTOlastframe" "bothways" CnxController "from=box_c" "to=box_l" "off_flag=BLOCK" "obj=Sml_Box_2" "checkvisible" "on_frames=1TO1" CnxController "from=box_c" "to=box_r" "off_flag=BLOCK" "obj=Sml_Box_3" "checkvisible" "on_frames=1TO1" //Following is only really needed when jumping straight to Dagobah_C through debug option. SetMessage "name=LukeIsAJedi" "value=1" } } state Start_LukeIsAJedi { Conditions { } Actions { SetTaggable "character=LukeSkywalker_Pilot" "FALSE" CannotDropIn "character=LukeSkywalker_Pilot" NotWithParty "character=LukeSkywalker_Pilot" DeActivate "character=LukeSkywalker_Pilot" SetState "Update" } } state Start_LukeIsNotAJedi { Conditions { } Actions { SetTaggable "character=LukeSkywalker_Dagobah" "FALSE" CannotDropIn "character=LukeSkywalker_Dagobah" NotWithParty "character=LukeSkywalker_Dagobah" DeActivate "character=LukeSkywalker_Dagobah" SetTaggable "character=Yoda" "FALSE" CannotDropIn "character=Yoda" NotWithParty "character=Yoda" DeActivate "character=Yoda" SetState "Update" } } state Update { Conditions { if Message "HatchSpawnC1" == 0 and if ObstacleFinished "Snake_catch1" == 1 goto HatchSpawnC1 if Message "HatchSpawnC2" == 0 and if ObstacleFinished "Snake_catch2" == 1 goto HatchSpawnC2 if Message "HatchSpawnC3" == 0 and if ObstacleFinished "Snake_catch3" == 1 goto HatchSpawnC3 } Actions { } } state HatchSpawnC1 { 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 HatchSpawnC2 { 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 HatchSpawnC3 { 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" } }