View Single Post
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old April 14th, 2012, 08:04 PM
I'm working on implementing an ability that changes a gnome from small to diminutive.

My code is currently
Code:
  <thing id="raRPGnoTri" name="Trixie Transformation" compset="RaceSpec" summary="you become diminuative and may grow wings" uniqueness="unique">
    <tag group="Helper" tag="ShowSpec"/>
    <tag group="AbilType" tag="Super"/>
    <tag group="User" tag="Activation"/>
    <tag group="User" tag="Tracker"/>
    <eval phase="UserFirst" priority="2000">doneif (field[abilActive].value = 0)

hero.child[aDEX].field[Bonus].value += 4
hero.child[aSTR].field[Penalty].value -= 6
 
~we want to decrease our size by -2
      var sizemod as number
      sizemod = -2
      call SizeChange</eval>
    </thing>
I based that on the adjustment for Reduce Person and Enlarge person, changing the appropriate values to adjust the strength lower and the dexterity higher and adjusting the size down 2 so be diminutive instead of tiny.

Anyways, when activated as it is currently everything seems to update properly, except the AC. Currently I get the +3 AC for the size change, but not the bonus from the dexterity increase. If I comment out the size change I get the bonus from dexterity. I can't see what I am missing here.

Any ideas?

Andrew
AndrewD2 is offline   #1 Reply With Quote