Scripts

TR_m7_NPC_ErnasiViranSlp

TR_Mainland.esm
Variables 6
Local Variables
nolore
T_Local_NoLore
TR_Map
control
controlQ
T_Local_NPC
Source
1begin TR_m7_NPC_ErnasiViranSlp 2 3short nolore 4short T_Local_NoLore 5short TR_Map 6short control 7short controlQ 8short T_Local_NPC 9 10if ( CellChanged ) 11 if ( GetDeadCount "TR_m7_Ernasi Viran" >= 1 ) 12 if ( GetDisabled == 0 ) 13 disable 14 endif 15 elseif ( GetJournalIndex TR_m7_Ns_IL_2 < 10 ) 16 if ( GetDisabled == 0 ) 17 disable 18 endif 19 elseif ( GetJournalIndex TR_m7_Ns_IL_2 < 25 ) 20 if ( GetDisabled ) 21 enable 22 endif 23 if ( control == 0 ) 24 modcurrentfatigue -10000 25 set control to 1 26 endif 27 elseif ( GetDisabled == 0 ) 28 disable 29 endif 30 PositionCell 4176 4305 15557 5400 "Narsis, Ernasi Viran's Apartment" ; TR_m7_MARK_Ns_IL_ErnasiViran 31 AiWander 0 0 0 60 20 10 32endif 33 34if ( OnActivate ) 35 if ( TR_m7_ErnasiViranDead ) 36 activate 37 return 38 else 39 "TR_m7_Ernasi Viran"->ForceGreeting 40 return 41 endif 42endif 43 44if ( OnDeath ) 45 ; use TR_m7_ErnasiViranDead == 1 check instead of GetDeadCount 46 set TR_m7_ErnasiViranDead to 1 47 return 48endif 49 50if ( TR_Map ) 51 return 52endif 53 54set TR_Map to 7 55 56End