Hicuty Posted October 10, 2018 Share Posted October 10, 2018 I am trying to edit script form Klatu mod but it is not working as intended. IF Global("kla#AIbuff","LOCALS",400) CheckStat(Myself,0,WIZARD_SPELL_SHIELD) HaveSpell(WIZARD_SPELL_SHIELD) // SPWI519.SPL (Spell Shield) THEN RESPONSE #100 ReallyForceSpell(Myself,WIZARD_SPELL_SHIELD) // SPWI519.SPL (Spell Shield) RemoveSpell(WIZARD_SPELL_SHIELD) // SPWI519.SPL (Spell Shield) Continue() END It is casting spell shield although i have a spell shield already. I tried with CheckStatGT, it also failed. Is this a bug? Because other spells are not casted if i already have them but it is failing with spell shield. Quote Link to comment
subtledoctor Posted October 10, 2018 Share Posted October 10, 2018 Probably the CheckStat is returning a false negative. What game are you trying this on? Open SPWI519.SPL and see whether it actually sets the WIZARD_SPELL_SHIELD stat. The stat might be called something else, or the spell might set a spellstate instead of the stat, etc. etc. Out of curiosity, why are you using ReallyForceSpell there? Quote Link to comment
Hicuty Posted October 10, 2018 Author Share Posted October 10, 2018 Ty. I installed scs and it changes it to a spell state from what i see. I am on BG2. I don't know about ReallyForceSpell because it is Klatu's script but it applies buffs instantly with improved alacrity. I guess it is used for that. Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.