Scripts

TR_m1_q_TT_5_VampNPCA

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
doonce
addOnce
diseased
T_Local_NPC
NoLore
Source
1Begin TR_m1_q_TT_5_VampNPCA 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 doonce 9short addOnce 10short diseased 11short T_Local_NPC 12short NoLore 13 14if ( GetDisabled ) 15 return 16endif 17 18if ( OnDeath ) 19 set TR_m1_q_ArthalDead to 1 20 set TR_m1_TT_5_DeadCount to ( TR_m1_TT_5_DeadCount + 1 ) 21endif 22 23if ( GetJournalIndex TR_m1_TT_5 >= 10 ) 24 if ( doonce == 0 ) 25 AddSpell "Vampire Blood Quarra" 26 set doonce to 1 27 endif 28 if ( GetCommonDisease ) 29 set diseased to 1 30 elseif ( addOnce == 0 ) 31 set diseased to 0 32 Journal TR_m1_TT_5_CureA 10 33 set TR_m1_TT_5_RRTotalDealtWith to ( TR_m1_TT_5_RRTotalDealtWith + 1 ) 34 set addOnce to 1 35 endif 36endif 37 38if ( TR_Map == 1 ) 39 return 40endif 41 42set TR_Map to 1 43 44End