Scripts

TR_m4_IL_Jizirrscript

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
T_Local_Khajiit
Source
1begin TR_m4_IL_Jizirrscript 2 3; This short script is there to allow dialogue to be filtered on the TR_Map local variable, 4; allowing for regional topics such as "Morrowind Lore" or "Geographic Regions" to be 5; appropriate to the location the NPC is. This version is for "NoLore" NPCs. 6 7short TR_Map 8short control 9short controlQ 10short NoLore 11short T_Local_NPC 12short T_Local_NoLore 13short T_Local_Khajiit 14 15if ( getcurrentAipackage == 3 ) 16 if ( control == 0 ) 17 if ( GetInterior == 0 ) 18 set control to 1 19 forcegreeting 20 endif 21 endif 22endif 23 24if ( control == 2 ) 25 if ( getdistance player >= 5000 ) 26 disable 27 set control to 3 28 endif 29endif 30 31if ( T_Local_Khajiit ) 32 return 33endif 34 35set T_Local_Khajiit to 1 36set TR_Map to 4 37 38End