Scripts

TR_m4_NPC_Hyrrik

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
NoLore
greetOnce
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m4_NPC_Hyrrik 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 12short T_Local_NoLore 13 14if ( greetOnce == 0 ) 15 if ( GetDistance, player <= 630 ) 16 set greetOnce to 1 17 Say "Vo\n\m\Hlo_NM045.mp3" "Do you dress like that on purpose?" 18 endif 19endif 20 21if ( TR_Map == 4 ) 22 return 23endif 24 25set TR_Map to 4 26 27End