Jump to content

Attching scripts to spells


Linky1

Recommended Posts

Hey all :)

 

I'm currently making a blood magic mod, but I need to attach this script:

Scriptname Example extends ActiveMagicEffect

 

float property bloodcost = 60.0 auto

 

Event OnEffectStart(Actor akTarget, Actor akCaster)

akCaster.DamageAV("Health", bloodcost)

EndEvent

 

 

To a spell. How do I do this?

 

Thanks in advance, linky1 :)

Link to comment
Share on other sites

You attach that script to a Magic Effect (MGEF), not a Spell/Ability (SPEL); a SPEL cannot have a script directly attached to it, only indirectly through its various Effects.

 

 

I think I understand, thank you. I am going to try it now, thanks again!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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