//MosEisley_A //Handles opening gate and door between a and b state Base { Conditions { if ObstacleAtStart "storm_door1a" == 1 and if Message "storm_door1" == 1 goto OpenStormDoor1 if Message "storm_door1" == 0 and if ObstacleAtStart "storm_door1a" == 0 goto OpenedStormDoor1 if ObstacleAtStart "gate1a" == 1 and if Message "gate1" == 1 goto OpenGate1 if Message "gate1" == 0 and if ObstacleAtStart "gate1a" == 0 goto OpenedGate1 } Actions { } } state OpenStormDoor1 { Conditions { } Actions { SetObstacleToEnd "name=storm_door1a" SetState "Base" } } state OpenedStormDoor1 { Conditions { } Actions { SetMessage "name=storm_door1" "value=1" SetState "Base" } } state OpenGate1 { Conditions { } Actions { SetObstacleToEnd "name=gate1a" SetState "Base" } } state OpenedGate1 { Conditions { } Actions { SetMessage "name=gate1" "value=1" SetState "Base" } }