Jump to content

Casting spells via script doesn't reduce magicka, why?


fffseven

Recommended Posts

I am trying to make combo spell casting mod. I write a script that includes myspell.cast(PlayerRef). When i try to test the mod it work fine except magicka. I can cast combo spells but magicka won't reduce. I wonder what is wrong ?. Ä°t is the way its work or I am doing something wrong.

 

(Sorry for bad English)

Link to comment
Share on other sites

Is DamageActorValue not sufficient from your script?

 

MySpell.Cast(actor)

actor.DamageActorValue("Magicka", spellCost)

 

Granted, that's a smidge awkward, but I'd favor it over script casting ticking magicka automatically. I can think of a majority of reasons why one would want to apply effects to an actor without a magicka cost. ;)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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