Scripts

TR_m4_NPC_Merenu_Rathri

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
timeOnce
T_Local_NPC
NoLore
timer
Source
1Begin TR_m4_NPC_Merenu_Rathri 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 timeOnce 10float timer 11short T_Local_NPC 12short NoLore 13;global 14 15if ( MenuMode == 0 ) 16 if ( TR_m4_AndasGuestState == 1 ) 17 if ( controlQ == 2 ) 18 if ( timeOnce == 0 ) 19 set timer to 0 20 set timeOnce to 1 21 endif 22 endif 23 endif 24endif 25 26if ( timer >= 60 ) 27 if ( timeOnce == 1 ) 28 set controlQ to 3 29 set timeOnce to 0 30 endif 31endif 32 33set timer to ( timer + GetSecondsPassed ) 34 35if ( TR_Map == 4 ) 36 return 37endif 38 39set TR_Map to 4 40 41End