Scripts

TR_m2_q_35_vampires

TR_Mainland.esm
Variables 17
Local Variables
done
fightset
cattlekilled
nolore
nohello
noflee
noidle
nointruder
nothief
TR_Map
T_Local_Vampire
control
controlQ
bribefail
enabled
T_Local_NPC
T_Local_NoLore
Source
1begin TR_m2_q_35_vampires 2 3;Vampire outcasts, of Berne blood 4;Only appear in Mugan Crypt when quest Interview with a Vampire is started 5;They don't count as Berne vampires for non-agressivity or vanilla quest deathcounts 6;Local variable "cattlekilled" needs to stay, as it is used to identify vampires 7;local "fightset" also, used by mods same reason 8 9;Script uses these NPCs' levels: 10;TR_m2_q_35_vampire2 11;TR_m2_q_35_vampire3 12;TR_m2_q_35_vampire4 13;to separate them and notify the script on Vampire1 when one dies. 14 15short done 16short fightset 17short cattlekilled 18short nolore 19short nohello 20short noflee 21short noidle 22short nointruder 23short nothief 24short TR_Map 25short T_Local_Vampire 26short control 27short controlQ 28 29short bribefail ;doonce for too-specific bribefail answers 30short enabled 31short T_Local_NPC 32short T_Local_NoLore 33 34if ( enabled == 0 ) 35 If ( GetJournalIndex "TR_m2_MG_Ranosa2" > 0 ) 36 Enable 37 set enabled to 1 38 ElseIf ( GetDisabled == 0 ) 39 Disable 40 Endif 41endif 42 43if ( OnDeath == 1 ) 44 AddItem "ingred_vampire_dust_01" 1 45 set TR_m2_q_35_dead to ( TR_m2_q_35_dead + 1 ) ;global for dead vampires 46 If ( GetLevel == 6 ) ;stop checking whether it's attacking in the leader's script once it's dead 47 set TR_m2_q_35_Vampire1.Vampire2dead to 1 48 ElseIf ( GetLevel == 5 ) 49 set TR_m2_q_35_Vampire1.Vampire3dead to 1 50 ElseIf ( GetLevel == 7 ) 51 set TR_m2_q_35_Vampire1.Vampire4dead to 1 52 Endif 53endif 54 55 56; Berne blood & regional topic filter 57 58if ( done == 0 ) 59 AddSpell "Vampire Blood Berne" ;this is the blood disease 60 AddSpell "Vampire Attributes" 61 AddSpell "Vampire Skills" 62 AddSpell "Vampire Immunities" 63 AddSpell "Vampire Sun Damage" 64 AddSpell "Vampire Touch" 65 AddSpell "Vampire Berne Specials" 66 ModRestoration 75 67 set TR_Map to 2 68 set done to 1 69endif 70 71end