Scripting Question
MikeMasters
Member Posts: 141
I wrote a simple script with a hotkey as a trigger which results in me casting several buff spells on myself using spell(), everything worked fine but I decided I wanted to have a casting time of 0 so changed spell to ReallyForceSpell(). Now it still works as expected but the spells are not removed from my casters memory, i.e. I can keep casting again and again. Im sure the check in the trigger works fine as changing back to Spell() removes one from my casters memory each time. What am I doing wrong?
IF
HotKey(S)
HaveSpell(WIZARD_STRENGTH)
THEN
RESPONSE #100
ReallyForceSpell(Myself,WIZARD_STRENGTH)
Continue()
END
IF
HotKey(S)
HaveSpell(WIZARD_STRENGTH)
THEN
RESPONSE #100
ReallyForceSpell(Myself,WIZARD_STRENGTH)
Continue()
END
0
Comments
ApplySpell(Myself,WIZARD_STRENGTH)
RemoveSpell(WIZARD_STRENGTH)
I've never tested this on PC's, only on enemies. Be sure that this doesn't remove the spell from your book, only from memorization. And please let us know if it ruins your spellbook. IEDSP is not very clear on this specific detail, and if this is the case it should be noted there.
@MikeMasters: ApplySpell() has a casting time of zero, yes.
IF
HotKey(S)
HaveSpell(WIZARD_VAMPIRIC_TOUCH)
THEN
RESPONSE #100
ApplySpell(Myself,WIZARD_VAMPIRIC_TOUCH)
RemoveSpell(WIZARD_VAMPIRIC_TOUCH)
Continue()
END