Skip to content

Need Explanation (scripting help)

IF
See(NearestEnemyOf(Myself))
HaveSpell(WIZARD_SPELL_IMMUNITY)
CheckStatLT(Myself,25,SPELLFAILUREMAGE)
CheckStatLT(Myself,1,WIZARD_SPELL_IMMUNITY)
THEN
RESPONSE #100
Spell(Myself,WIZARD_SPELL_IMMUNITY_CONJURATION)
END

I need explanation why this doesn't work. If I use SpellNoDec, then it works, but I do not wish to cheat.

Comments

  • kjeronkjeron Member Posts: 2,368
    Spell() requires you have an available memorization of the spell to cast it. You have Wizard Spell Immunity memorized, but you do not have Wizard Spell Immunity: Conjuration memorized, so you cannot cast it through the Spell() action. Try:

    RESPONSE#100
    RemoveSpell(Myself,WIZARD_SPELL_IMMUNITY)
    SpellNoDec(Myself,WIZARD_SPELL_IMMUNITY_CONJURATION)
    END
  • Igneos_EructidIgneos_Eructid Member Posts: 11
    kjeron said:

    Spell() requires you have an available memorization of the spell to cast it. You have Wizard Spell Immunity memorized, but you do not have Wizard Spell Immunity: Conjuration memorized, so you cannot cast it through the Spell() action. Try:

    RESPONSE#100
    RemoveSpell(Myself,WIZARD_SPELL_IMMUNITY)
    SpellNoDec(Myself,WIZARD_SPELL_IMMUNITY_CONJURATION)
    END

    Thank you VERY much!
Sign In or Register to comment.