Scripts

TR_m7_NPC_Endryna_Salerys

TR_Mainland.esm
Variables 6
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m7_NPC_Endryna_Salerys 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 12 13if ( onDeath ) 14 if ( GetJournalIndex TR_m7_wil_OneClan >= 10 ) 15 if ( GetJournalIndex TR_m7_wil_OneClan <= 20 ) 16 Journal TR_m7_wil_OneClan 200 17 return 18 endif 19 endif 20endif 21 22if ( cellchanged ) 23 if ( GetJournalIndex TR_m7_wil_OneClan == 200 ) 24 if ( getdisabled == 0 ) 25 disable 26 endif 27 return 28 endif 29 if ( getdisabled == 0 ) 30 if ( GetJournalIndex TR_m7_wil_OneClan < 10 ) 31 disable 32 return 33 endif 34 else 35 if ( GetJournalIndex TR_m7_wil_OneClan == 10 ) 36 if ( player->GetItemCount TR_m7_wil_OneClan_Cuirass >= 1 ) 37 set control to 1 38 enable 39 return 40 endif 41 endif 42 endif 43endif 44 45if ( control == 1 ) 46 if ( GetDistance player <= 300 ) 47 ForceGreeting 48 return 49 endif 50endif 51 52if ( TR_Map == 7 ) 53 return 54endif 55 56set TR_Map to 7 57 58End