Scripts

TR_m3_q_A9_witchhuntermove

TR_Mainland.esm
Variables 5
Local Variables
doOnce
noLore
T_Local_NPC
T_Local_NoLore
TR_Map
Source
1Begin TR_m3_q_A9_witchhuntermove 2 3short doOnce 4short noLore 5short T_Local_NPC 6short T_Local_NoLore 7short TR_Map 8 9if ( TR_Map != 3 ) 10 set TR_Map to 3 11endif 12 13If ( doOnce == 0 ) 14 If ( GetJournalIndex "TR_m3_Sa_Inquiry" == 1 ) 15 AITravel, 439, 347, 128, 1 16 Set doOnce to 1 17 Endif 18EndIf 19 20If ( doOnce == 1 ) 21 If ( GetAIPackageDone == 1 ) 22 AIWander 0, 0, 0, 0, 0, 50, 0, 0, 0, 0, 0, 50 23 Set doOnce to 2 24 ElseIf ( GetPos x > 300 ) ; failsafe if AI package stucks 25 If ( GetPos z > 100 ) 26 AIWander 0, 0, 0, 0, 0, 50, 0, 0, 0, 0, 0, 50 27 Set doOnce to 2 28 Endif 29 Endif 30Endif 31 32End