Scripts

TR_m2_FG_Joranscript

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
doonce
Source
1Begin TR_m2_FG_Joranscript 2; This short script is there to allow dialogue to be filtered on the TR_Map local variable, 3; allowing for regional topics such as "Morrowind Lore" or "Geographic Regions" to be 4; appropriate to the location the NPC is. 5 6short TR_Map 7short control 8short controlQ 9short T_Local_NPC 10short NoLore 11short doonce 12 13if ( TR_map == 0 ) 14 set TR_map to 2 15endif 16 17if ( gethealth < 45 ) 18 if ( getjournalindex TR_m2_FG_Hartise_Joran >= 10 ) 19 if ( getjournalindex TR_m2_FG_Hartise_Joran < 50 ) 20 if ( control == 1 ) 21 if ( controlQ == 0 ) 22 set controlQ to 1 23 forcegreeting 24 stopcombat 25 setfight 0 26 endif 27 endif 28 endif 29 endif 30endif 31 32End