Scripts

TR_m3_q_11_Berelas_Script

TR_Mainland.esm
Variables 14
Local Variables
done
fightset
cattlekilled
nolore
nohello
noflee
noidle
nointruder
nothief
TR_Map
T_Local_Vampire
control
T_Local_NPC
T_Local_NoLore
Source
1begin TR_m3_q_11_Berelas_Script 2 3; This short script is there to allow dialogue to be filtered on the TR_Map local variable, 4; allowing for regional topics such as "Morrowind Lore" or "Geographic Regions" to be 5; appropriate to the location the NPC is. This version is for Berne vampire NPCs. 6 7short done 8short fightset 9short cattlekilled 10short nolore 11short nohello 12short noflee 13short noidle 14short nointruder 15short nothief 16short TR_Map 17short T_Local_Vampire 18short control 19short T_Local_NPC 20short T_Local_NoLore 21 22if ( CellChanged == 1 ) 23 if ( GetJournalIndex "TR_m3_VA_Merihayan" == 20 ) 24 disable 25 endif 26endif 27 28if ( OnDeath == 1 ) 29 AddItem "ingred_vampire_dust_01" 1 30 if ( GetJournalIndex "TR_m3_VA_Merihayan" > 0 ) 31 Journal "TR_m3_VA_Merihayan" 25 32 endif 33endif 34 35if ( done == 2 ) 36 if ( PCVampire != 1 ) 37 setfight 100 38 set done to 1 39 endif 40endif 41 42if ( done == 1 ) 43 if ( PCVampire == 1 ) 44 setfight 30 45 set done to 2 46 endif 47endif 48 49 50if ( done == 0 ) 51 AddSpell "Vampire Attributes" 52 AddSpell "Vampire Skills" 53 AddSpell "Vampire Immunities" 54 AddSpell "Vampire Sun Damage" 55 AddSpell "Vampire Touch" 56 ModRestoration 75 57 set TR_Map to 3 58 set done to 1 59endif 60 61end