Scripts

TR_m1_T_EldaleSc

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
NoLore
T_Local_NPC
T_Local_NoLore
OnPCHitMe
Source
1Begin TR_m1_T_EldaleSc 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_EldaleDead 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_Eldale" 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 AddSpell TR_m1_Telvanni_Levitate 30 TR_m1_Ultern->StartCombat player 31 TR_M1_golem_eldaleGuard->StartCombat player 32 Cast "TR_m1_Eldale_Shield" TR_m1_T_Eldale 33 endif 34 set OnPCHitMe to 0 35endif 36 37if ( TR_Map == 1 ) 38 return 39endif 40 41set TR_Map to 1 42 43End