Scripts

TR_m4_NPC_Salrym_Helseri

TR_Mainland.esm
Variables 4
Local Variables
dieOnce
T_Local_NPC
NoLore
TR_Map
Source
1Begin TR_m4_NPC_Salrym_Helseri 2 3;this makes sure Salrym Helseri dies accordingly 4 5short dieOnce 6short T_Local_NPC 7short NoLore 8short TR_Map 9 10if ( TR_Map != 4 ) 11 set TR_Map to 4 12endif 13 14if ( GetDistance, player <= 3000 ) 15 if ( dieOnce == 0 ) 16 sethealth 0 17 set dieOnce to 1 18 endif 19endif 20 21if ( OnActivate == 1 ) 22 if ( GetJournalIndex "TR_m4_wil_OranMissingBrother" == 10 ) 23 Journal "TR_m4_wil_OranMissingBrother" 20 24 elseif ( GetJournalIndex "TR_m4_wil_OranMissingBrother" == 0 ) 25 Journal "TR_m4_wil_OranMissingBrother" 5 26 endif 27 Activate 28endif 29 30if ( GetJournalIndex "TR_m4_wil_OranMissingBrother" >= 30 ) 31 if ( GetDisabled == 0 ) 32 disable 33 endif 34endif 35 36end