Scripts

TR_m7_Nishahi_scr

TR_Mainland.esm
Variables 12
Local Variables
attackstate
OnPCHitMe
slaveStatus
doOnce
NoLore
TR_Map
control
controlQ
T_Local_NPC
T_Local_NoLore
T_Local_Khajiit
timer
Source
1Begin TR_m7_Nishahi_scr 2 3float timer 4short attackstate 5short OnPCHitMe 6short slaveStatus 7short doOnce 8short NoLore 9short TR_Map 10short control 11short controlQ 12short T_Local_NPC 13short T_Local_NoLore 14short T_Local_Khajiit 15 16if ( OnPCHitMe == 1 ) 17 set attackstate to 1 18 set OnPCHitMe to 0 19endif 20 21if (attackstate == 1) 22 StartCombat, player 23 set timer to ( timer + GetSecondsPassed) 24 if ( timer >= 1 ) 25 set timer to 0 26 "TR_m7_Qarafa"->StartCombat, Player 27 set attackstate to 0 28 endif 29endif 30 31 32if ( slaveStatus == 2 ) 33 if ( doOnce == 0 ) 34 AIFollow Player 0 0 0 0 0 35 Set doOnce to 1 36 endif 37 return 38endif 39 40if ( slaveStatus == 3 ) 41 if ( GetCurrentAIPackage == 3 ) 42 AIWander 512 0 0 0 0 0 0 0 0 0 0 0 43 endif 44 if ( GetItemCount Slave_Bracer_Left > 0 ) 45 Drop Slave_Bracer_Left 1 46 endif 47 if ( GetItemCount Slave_Bracer_Right > 0 ) 48 Drop Slave_Bracer_Right 1 49 endif 50 if ( CellChanged == 1 ) 51 Disable 52 endif 53endif 54 55if ( T_Local_Khajiit ) 56 return 57endif 58 59set T_Local_Khajiit to 1 60set TR_Map to 7 61 62end