Possible to tweak Neera's script when using Staff of the Magi?
![fantasma](https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg)
in BGII:EE Mods
As I'm sure we're all aware of, Staff of the Magi allows wielder to cast a very long duration version of spelltrap/day. I edited bdneerac.bcs to cast it everyday, but it would rather cast dispel magic on Neera.
Below are codes I used to script this.
because Staff of the Magi has 3 different item uses, which are fireball, lightning bolt and spelltrap, I assume I'd have to use action other than UseItem here, but am clueless to find out which one I should be using.
Below are codes I used to script this.
IF
ActionListEmpty()
HasItem("staf11",Myself) // Staff of the Magi
!GlobalTimerNotExpired("BD_Cast","LOCALS")
CheckStatLT(Myself,1,WIZARD_SPELL_TRAP)
!Detect([EVILCUTOFF])
THEN
RESPONSE #100
SetGlobalTimer("BD_Cast","LOCALS",ONE_ROUND)
UseItem("staf11",Myself) // Staff of the Magi
END
because Staff of the Magi has 3 different item uses, which are fireball, lightning bolt and spelltrap, I assume I'd have to use action other than UseItem here, but am clueless to find out which one I should be using.
0
Comments
And maybe a better trigger like HasWeaponEquiped("staf11") or HasItemEquiped("staf11",Myself)
ApplySpellRES("staf11",Myself)
which just applies spelltrap ability without consuming the charge of the staff. Exploitable, but it works for the sake of convenience