Consecrate Vampires - Script Concept Prototype

Post » Sun Jan 19, 2014 12:11 am

Hey guys, I'm busy working on my mod which includes some basic scripting to allow the player to trade Vampire Dust to NPCs at the Dawnguard HQ for supplies and other useful rewards. In addition to Vampire Dust, there are some other trophies that you can find and return to the HQ for a more sizable reward. Now I don't think it would be very balanced if every Vampire you came across had it's dust just sitting in their pockets waiting for you to come and and take it. So here's what I want to try and do...

Preliminary Set-up:

Remove the DeathItemVampire for every Vampire NPC ( This will stop dust from just appearing in the inventory of any vampire you kill)

DLC1vdeConsecrateVampireScript extends ????????????????????????;Not sure if this should extend Actor, ActorBase, LeveledActor? Maybe I could even make it a castable spell so that the script would begin when the player casted the spell on a target matching the spell parameters. ;It's because of this that the following script is more of an outline, because I can't conceptualize what to do until I know what elements of the game need to interact.;Assumed PropertiesPlayerRef PropertyVampire ActorBase PropertyIsDead Boolean PropertyVampireDust PropertyEffectShader PropertyMagicEffect PropertyActivator PropertyMessageBox PropertyAshPile Object Propertyif(isDead == True)Display MessageBoxif(Option 1: Access the Inventory)Player may loot any armor, weapons, gold or potionselseif(Option 2: Consecrate the Remains)-Clear VampireInventory-Play EffectShader( Right now I can use the standard LightingDisintegrate but I like the idea of having it look more like fire burning rather than lightning zapping.-Add VampireDust to Vampire inventory(I kind of like that idea that there is a chance that no remains can be salvaged or that on occasion more than 1 Vampire Dust drops. I'll have to check out the in game weight and determine a lore friendly solution.-Place AshPile at VampireOnContainerChanged for the VampireDust-Disable the AshPile

I've based this prototype off of several scripts found throughout the game. If the try to make this a castable spell the messagebox would no longer exist of course.

Mostly I need help determining where to initiate the script, whether it should be a spell that checks if the target of the spell matches the parameters or a scripted magic effect that is on all vampire npcs.

Let me know what you think!

User avatar
Enny Labinjo
 
Posts: 3480
Joined: Tue Aug 01, 2006 3:04 pm

Post » Sun Jan 19, 2014 3:13 pm

It sounds like you would want to use a hidden perk using the "Activate" Entry Point. You can add conditions to the Perk Entry Point so it will only run when the target is a vampire & is dead - and then there is a place to insert your script fragment for what to do based on the activation. You can look at the Vampire Feed perk for an example - player Vampires have a perk that allows them to choose whether to Feed or Pickpocket an actor because of the perk added to them

User avatar
vanuza
 
Posts: 3522
Joined: Fri Sep 22, 2006 11:14 pm

Post » Sun Jan 19, 2014 1:45 pm

Exactly the type of help I was looking for. Thanks for pointing me in the right direction!

User avatar
Liv Brown
 
Posts: 3358
Joined: Wed Jan 31, 2007 11:44 pm


Return to V - Skyrim