//======================================================================================================================== // NebanPostM01.u2s // AI script for Neban before Hell //======================================================================================================================== :ScriptStart //debugmode 11 inert 1 setmovespeed 0.15 call TriggeredActions sleep // Idle on bridge //------------------------------------------------------------------------------------------------------------------------ :IdleOnBridge0 ontrigger dlgNebanPostM01PickedTopic gotolabel IdleOnBridge1 1 call DisableAllTopics dialogenable NebanPostM01SmallTalk // ### enable topic ### gotoactor Player 128 dialoginitiate Player NebanPostM01SmallTalk sleep // this is how Neban knows when he's talked to the player about everything and he can go piloting - each time one of three topics gets chosen // he goes to the next label :IdleOnBridge1 ontrigger dlgNebanPostM01PickedTopic gotolabel IdleOnBridge2 1 sleep :IdleOnBridge2 ontrigger dlgNebanPostM01PickedTopic gotolabel IdleOnBridge3 1 sleep :IdleOnBridge3 handlergroup ontrigger dlgNebanPostM01DialogOver gotolabel GoToPiloting 1 //ontrigger DialogEnd gotolabel GoToPiloting ontrigger DialogAbortEnd gotolabel GoToPiloting handlergroupend sleep :GoToPiloting sleep 0.2 call DisableAllTopics dialogenable NebanPostM01NotNow // ### enable topic ### //sleep 1 gotoactor PathNode120 directionalpatrol 1 gotoactor PatrolPoint14 directionalpatrol 0 :Piloting agentbind SpecialState Piloting sleep //======================================================================================================================== // Global calls //======================================================================================================================== // global events/calls //------------------------------------------------------------------------------------------------------------------------ :TriggeredActions ontrigger PostM01NebanStart gotolabel IdleOnBridge0 1 return :DisableAllTopics dialogdisable NebanPostM01SmallTalk dialogdisable NebanPostM01NotNow return :ScriptEnd