Scripts

TR_m4_NPC_Ubarassour_Dan

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
control
controlQ
NoLore
greetonce
T_Local_NPC
Source
1Begin TR_m4_NPC_Ubarassour_Dan 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. This version is for "NoLore" NPCs. 5 6short TR_Map 7short control 8short controlQ 9short NoLore 10short greetonce 11short T_Local_NPC 12 13if ( GetDisabled ) 14 return 15endif 16 17if ( TR_m4_Vf_TimerGlb == 2 ) 18 if ( CellChanged ) 19 Disable 20 endif 21endif 22 23if ( greetonce == 0 ) 24 if ( getjournalindex TR_m4_Vf_ManCrystal > 0 ) 25 set greetonce to 1 26 return 27 elseif ( GetDistance player < 500 ) 28 set greetonce to 1 29 ForceGreeting 30 endif 31endif 32 33if ( TR_Map == 4 ) 34 return 35endif 36 37set TR_Map to 4 38 39End