Scripts

TR_m1_T_MithrasSc

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
OnPCHitMe
Source
1Begin TR_m1_T_MithrasSc 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; Edited version exists so TR_Factions can overwrite the script directly, rather than going through the NPC record. 6 7short TR_Map 8short control 9short controlQ 10short NoLore 11short T_Local_NPC 12short T_Local_NoLore 13short OnPCHitMe 14 15if ( OnDeath ) 16 set TR_m1_HT_MithrasDead to 1 17 startscript TR_m0_TelvanniHortDeathSc 18 if ( GetJournalIndex "TR_m1_HT_UnseatingDral" >= 10 ) 19 if ( GetJournalIndex "TR_m1_HT_UnseatingDral" < 20 ) 20 Journal "TR_m1_HT_UnseatingDral_Mithras" 150 21 StartScript TR_m1_HT_UnseatingDralSc 22 endif 23 endif 24endif 25 26if ( OnPCHitMe == 1 ) 27 if ( control == 0 ) 28 set control to 1 29 Cast "TR_m1_Mithras_Bound" TR_m1_T_Mithras 30 TR_m1_TA_Guard->StartCombat player 31 endif 32 set OnPCHitMe to 0 33endif 34 35if ( TR_Map == 1 ) 36 return 37endif 38 39set TR_Map to 1 40 41End