Jump to content

Script help needed!


jinseg

Recommended Posts

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...