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!