Maidhc O Casain
Well-known member
I'm making an exotic weapon that grants shield bonuses like the Two-Weapon Defense feat when it's equipped. Adding the bonuses was easy - I just grabbed the relevant portions of the eval-script from the feat. What I can't figure out is how to make those bonuses apply only when the weapon is equipped.
I first looked at the Masterwork Backpack for clues, and tried using
That turned the benefit off, whether the weapon is equipped or not. I also tried
with the same result.
I then tried using the "Activated.wXXXX" tag the same ways, with identical results. I used Phase: Pre-Attributes (Users) and Priority 10000.
I'm completely stymied. Am I on the right track with either of these? Is it a Phase/Priority problem?
I first looked at the Masterwork Backpack for clues, and tried using
if (field[gIsEquip].value <> 0) then
#applybonus[tACShield, hero.child[ArmorClass], 1]
endif
That turned the benefit off, whether the weapon is equipped or not. I also tried
doneif (field[gIsEquip].value = 0)
with the same result.
I then tried using the "Activated.wXXXX" tag the same ways, with identical results. I used Phase: Pre-Attributes (Users) and Priority 10000.
I'm completely stymied. Am I on the right track with either of these? Is it a Phase/Priority problem?