Scripts

TR_m3_NPC_Svosh

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
T_Local_Khajiit
Source
1Begin TR_m3_NPC_Svosh 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 T_Local_NPC 11short T_Local_NoLore 12short T_Local_Khajiit 13 14if ( OnDeath ) 15 set controlQ to 2 16 return 17endif 18 19if ( CellChanged ) 20 if ( controlQ == 0 ) 21 if ( GetJournalIndex TR_m3_HI_RoaDyr4 >= 10 ) 22 set controlQ to 1 23 addItem TR_m7_HH_SvoshCodeBook 1 24 endif 25 elseif ( controlQ == 1 ) 26 if ( GetItemCount TR_m7_HH_SvoshCodeBook == 0 ) 27 set controlQ to 2 28 Disable 29 return 30 endif 31 endif 32endif 33 34if ( TR_Map ) 35 return 36endif 37 38set T_Local_Khajiit to 1 39set TR_Map to 3 40 41End