jinseg Posted August 22, 2011 Share Posted August 22, 2011 Hiya guys, I'm in the albeit painstaking process of trying to write a script enchant to my weapon, You see I want the weapon to "feed" my vampire character "on power attack" so that I can feed on enemies, I think it's possible as theres a mod that writes a script to human blood allowing the feed effect. I have tried loads of things but cannot get this to work, I'm totally new at scripting and not sure if this is indeed possible at all on weapons, if anyone could write me a script that performs this for me I would be eternally grateful :) Link to comment Share on other sites More sharing options...
RagnaHighArc Posted August 22, 2011 Share Posted August 22, 2011 Write you a script? nope. But you could download my Dark Arts Spell Mod and take a look at the blood spells. In one of them, you gain health with every attack that lands while the spells runs. Take a look at the spell's code, copy it, and alter it to fit ur needs. Link to comment Share on other sites More sharing options...
WarRatsG Posted August 23, 2011 Share Posted August 23, 2011 It depends on the vampire system. Various mods use different values to control what feeding does. In any case, it would probably be a little complicated There is a few ways to feed the vampire on power attack, although it would need OBSE for a start. First off, I would recommend you download the "Unofficial Patch" and look the human blood script it uses. It should show you how to set vanilla vampirism back to stage one.Next, you would need to use "IsPowerAttacking" to make sure that it works as you plan. With a combination of those 2, you should be able to create a scripted enchantment for your weapon. It should go something like this... Scn VampireFeedEnchantmentSCRIPT Begin ScriptEffectStart Short PowerAttacking ;Just to "trap" the variable for later If Player.IsPowerAttacking == 1 Set PowerAttacking to 1 ;;;Copy the Human Blood Script here Hopefully this helps Link to comment Share on other sites More sharing options...
Recommended Posts