Scripts

TR_m4_NPC_Joscus

TR_Mainland.esm
Variables 5
Local Variables
dieOnce
T_Local_NPC
nohit
TR_Map
nolore
Source
1Begin TR_m4_NPC_Joscus 2 3;this makes sure Joscus in Ushu-Kur Mine dies accordingly 4 5short dieOnce 6short T_Local_NPC 7short nohit 8short TR_Map 9short nolore 10 11if ( GetDistance player < 3000 ) 12 if ( dieOnce == 0 ) 13 SetHealth 0 14 set dieOnce to 1 15 endif 16endif 17 18if ( OnActivate ) 19 if ( GetJournalIndex "TR_m4_wil_Joscus" < 10 ) 20 Journal "TR_m4_wil_Joscus" 10 21 AddTopic "Joscus" 22 endif 23 Activate 24endif 25 26if ( GetJournalIndex "TR_m4_wil_Joscus" >= 100 ) 27 if ( GetDisabled == 0 ) 28 Disable 29 endif 30endif 31 32end