Scripting help

Hi. I'm trying to turn all spells and abilities from per rest to per encounter. To this effect, I created a spell with a global effect applying opcode 316, targeting party, instant/permanent timing, natural/nonmagical with 100 power and probability1. Then I appended the following to baldur.bcs:
IF
!ActuallyInCombat()
THEN
RESPONSE #100
ApplySpellRES("SPELLNAME",Myself)
END
Doesn't work. I don't get why. What am I doing wrong?
IF
!ActuallyInCombat()
THEN
RESPONSE #100
ApplySpellRES("SPELLNAME",Myself)
END
Doesn't work. I don't get why. What am I doing wrong?
0
Comments