Scripts

TR_m7_NPC_Dorlu_Helan_sc

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
nolore
T_Local_NPC
T_Local_NoLore
doOnce
Source
1Begin TR_m7_NPC_Dorlu_Helan_sc 2 3short TR_Map 4short control 5short controlQ 6short nolore 7short T_Local_NPC 8short T_Local_NoLore 9 10short doOnce 11 12if ( doOnce == 0 ) 13 Disable 14 set doOnce to 1 15elseif ( doOnce == 1 ) 16 if ( GetJournalIndex TR_m4_T_Nuccius >= 99 ) 17 if ( CellChanged ) 18 if ( TR_m4_T_Nuccius_Delay <= DaysPassed ) 19 Enable 20 set doOnce to 2 21 Set TR_m7_Ns_NucciusRumor to 1 22 endif 23 endif 24 endif 25elseif ( doOnce == 2 ) 26 if ( GetJournalIndex TR_m7_AI_Nuccius_Guar > 0 ) 27 "TR_m4_Vodunius Nuccius"->Enable 28 "TR_m4_Vodunius Nuccius"->PositionCell -1095 983 13169 4188 "Han-Palit" ;TR_m4_MARK_Vodunius 29; "TR_m4_Vodunius Nuccius"->AITravel -1095 983 13169 30 "TR_m4_Vodunius Nuccius"->AIWander 0 0 0 60 20 20 20 31 set doOnce to 3 32 endif 33endif 34 35if ( OnDeath ) 36 if ( GetJournalIndex TR_m7_AI_Nuccius_Guar > 0 ) 37 if ( GetJournalIndex TR_m7_AI_Nuccius_Guar < 50 ) 38 Journal TR_m7_AI_Nuccius_Guar 99 39 endif 40 endif 41endif 42 43if ( TR_Map != 0 ) 44 return 45endif 46 47set TR_Map to 7 48 49End