Scripts

TR_m7_NPC_Ns_IL_2_Thugs

TR_Mainland.esm
Variables 9
Local Variables
nolore
t_local_nolore
t_local_npc
tr_map
control
controlQ
OnPCHitMe
riverbend_gang
healthpercent
Source
1Begin TR_m7_NPC_Ns_IL_2_Thugs 2 3short nolore 4short t_local_nolore 5short t_local_npc 6short tr_map 7short control 8short controlQ 9 10short OnPCHitMe 11 12short riverbend_gang 13float healthpercent 14 15if ( CellChanged ) 16 if ( GetJournalIndex TR_m7_Ns_IL_2 < 30 ) 17 if ( GetDisabled == 0 ) 18 disable 19 endif 20 elseif ( GetJournalIndex TR_m7_Ns_IL_2 >= 200 ) 21 if ( GetDisabled == 0 ) 22 disable 23 endif 24 elseif ( GetDisabled ) 25 enable 26 endif 27endif 28 29set healthpercent to GetHealthGetRatio 30 31if ( OnPCHitMe ) 32 if ( control == 0 ) 33 set "TR_m7_Abael Thelas".control to 1 34 set "TR_m7_Felos Baradan".control to 1 35 set "TR_m7_Tens Velith".control to 1 36 endif 37 set OnPCHitMe to 0 38endif 39 40if ( control == 1 ) 41 Startcombat player 42 setfight 100 43 set control to 2 44endif 45 46if ( OnDeath ) 47 if ( GetJournalIndex TR_m7_Ns_IL_2 >= 30 ) 48 if ( GetJournalIndex TR_m7_Ns_IL_2 < 100 ) 49 Journal TR_m7_Ns_IL_2 200 50 if ( TR_m7_ErnasiViranDead == 0 ) 51 "TR_m7_Ernasi Viran"->Forcegreeting 52 return 53 endif 54 endif 55 endif 56endif 57 58if ( TR_Map ) 59 return 60endif 61 62set TR_Map to 7 63 64end