Scripts

TR_m7_NPC_TarOkun

TR_Mainland.esm
Variables 6
Local Variables
NoLore
T_Local_NPC
T_Local_NoLore
TR_Map
control
controlQ
Source
1Begin TR_m7_NPC_TarOkun 2 3short NoLore 4short T_Local_NPC 5short T_Local_NoLore 6short TR_Map 7short control 8short controlQ 9 10if ( GetJournalIndex TR_m7_AI_JNS_7 >= 100 ) 11 if ( GetDisabled == 0 ) 12 disable 13 endif 14 return 15elseif ( GetDisabled ) 16 enable 17endif 18 19if ( GetJournalIndex TR_m7_AI_JNS_7 >= 30 ) 20 if ( controlQ ) 21 return 22 endif 23 24 set controlQ to 1 25 26 setfight 30 27 AIWander 512 0 0 0 0 0 0 0 0 0 0 0 28 29 if ( GetItemCount Slave_Bracer_Left > 0 ) 30 Drop Slave_Bracer_Left 1 31 endif 32 if ( GetItemCount Slave_Bracer_Right > 0 ) 33 Drop Slave_Bracer_Right 1 34 endif 35 36 if ( GetDeadCount "TR_m7_Dovres Falen" == 0 ) 37 "TR_m7_Dovres Falen"->setfight 100 38 "TR_m7_Dovres Falen"->startcombat "player" 39 startcombat "TR_m7_Dovres Falen" 40 endif 41 if ( GetDeadCount "TR_m7_Suroni Relenim" == 0 ) 42 "TR_m7_Suroni Relenim"->setfight 100 43 "TR_m7_Suroni Relenim"->startcombat "player" 44 startcombat "TR_m7_Suroni Relenim" 45 endif 46 if ( GetDeadCount "TR_m7_Giril Marendi" == 0 ) 47 "TR_m7_Giril Marendi"->setfight 100 48 "TR_m7_Giril Marendi"->startcombat "player" 49 startcombat "TR_m7_Giril Marendi" 50 endif 51endif 52 53if ( TR_Map ) 54 return 55endif 56 57set TR_Map to 7 58 59End