//BlockadeRunner_C state Base { Conditions { } Actions { AddLocatorGroup "name=BaddyPhase1" AddLocatorGroup "name=BaddyPhase2" AddLocatorGroup "name=BaddyPhase3" AddLocatorGroup "name=GoodyPhase1" AddLocatorGroup "name=GoodyPhase2" AddLocatorGroup "name=GoodyPhase3" SetState "Update" } } state Update { Conditions { if Message "PhaseC" == 0 and if EitherPlayerInTriggerArea "Grabber" == 1 goto SetPhase1 if Message "PhaseC" == 1 and if Timer > 5 goto SetPhase2 if Message "PhaseC" == 2 and if Timer > 5 goto SetPhase3 } Actions { ResetTimer } } state SetPhase1 { Conditions { } Actions { SetMessage "name=PhaseC" "value=1" SetScriptState "set=1" "state=StartPhase1" SetState "Update" } } state SetPhase2 { Conditions { } Actions { SetMessage "name=PhaseC" "value=2" SetScriptState "set=1" "state=StartPhase2" SetState "Update" } } state SetPhase3 { Conditions { } Actions { SetMessage "name=PhaseC" "value=3" SetScriptState "set=1" "state=StartPhase3" SetState "Update" } }