Scripts

TR_m3_Entosaro_Tanian_scr

TR_Mainland.esm
Variables 8
Local Variables
TR_Map
control
controlQ
controlQ1
T_Local_NPC
NoLore
doonce
timer
Source
1Begin TR_m3_Entosaro_Tanian_scr 2 3short TR_Map 4short control 5short controlQ 6short controlQ1 7short T_Local_NPC 8short NoLore 9short doonce 10float timer 11 12; never show up before Dileru is dead 13if ( GetJournalIndex TR_m3_MT_Dileru < 80 ) 14 if ( GetDisabled == 0 ) 15 Disable 16 endif 17endif 18 19; if the player is this far away from him without being apprehended, 20; it means they left the house either without being spotted or by teleporting away. Despawn him. 21; until he is despawned by a cell change, he still acts like a normal guard 22if ( controlQ == 1 ) 23 if ( GetPCCell "Old Ebonheart" == 1 ) 24 if ( CellChanged == 1 ) 25 if ( GetDistance player > 500 ) 26 disable 27 set controlQ to 0 28 endif 29 endif 30 endif 31endif 32 33; death check 34if ( OnDeath ) 35 if ( getJournalIndex TR_m3_MT_Dileru > 80 ) 36 if ( getJournalIndex TR_m3_MT_Dileru < 89 ) 37 Journal TR_m3_MT_Dileru 89 38 return 39 endif 40 endif 41endif 42 43if ( TR_Map == 3 ) 44 return 45endif 46 47set TR_Map to 3 48 49End