Page 1 of 1

Scripting Spell effects

Posted: Sun Sep 23, 2007 4:58 pm
by snarab2003
Hi, I'm trying to create some custom spell effects, and I am running into serious roadblocks.

What I am trying to do is create a script that reduces the player's health and fatigue to 1 when a certain spell has been cast by the user. This way, I can make really powerful spells, but with a repercussion effect for doing so.

Does anybody know how to do something like this?

Thanks in advance.

Posted: Sun Oct 28, 2007 1:20 am
by nordicay
Hi, lol I'm having scripting issues myself so not sure how much help I can be, but it seems to me if the PC is casting the spell, you'd have to write a running script for the PC, which would be along the lines of
if ( PC casts spellname ) ==0
return
endif

if ( PC casts spellname ) ==1
SetStatX->1
SetStatZ->1
endif

I'm sure that's not formatted right and I KNOW it's got the wrong wording, but logically it's a valid argument, and if you can set it up with commands the game recognizes, it should work. Good luck!

Posted: Mon Oct 29, 2007 1:43 pm
by Bear
I would like to welcome you both to the UESP forums! Unfortunately modding is something I don't know much about. I hope someone here can help you.

Posted: Tue Oct 30, 2007 4:46 am
by Daedra Prince
Just a thought but if you can get the current health why not have a damage health 1 second effect that does current health -1 damage and the same for the fatigue