Code:
[Phase=Final Phase; Priority=11000; Index=1]
foreach pick in hero where "(component.Ability & fieldval:abDC <> 0) | (component.BaseSpell & Helper.SpellLike & (sSave.Fort? | sSave.Ref? | sSave.Will?))"
if (eachpick.tagis[component.Ability] <> 0)
eachpick.field[abDC].value += 1
elseif (eachpick.tagis[component.BaseSpell] <> 0)
eachpick.field[sDC].value += 1
endif
nexteach
Should this still be a valid script after 7+ years? I'm trying to achieve a similar effect (+1 instead of +2 to all spell-like abilities and spell save DCs) as a feat (fArcAdept), but I get the following error message:
Syntax error in 'eval' script for Thing 'fArcAdept' (Eval Script '#1') on line 2
-> Invalid use of reserved word 'if' in script