View Single Post
Mythanthor
Junior Member
 
Join Date: Apr 2011
Location: Brisbane, Australia
Posts: 9

Old April 16th, 2011, 04:01 PM
This is for Pathfinder. I have gotten the main part to work, changed the phase to Post-Levels, Priority 5000.

The issue I have now is that the damage is being adjusted by Strength bonus/penalty. How can I get it to ignore Strength bonus/penalty or add it back as an adjustment?

Code:
  var level as number
  level = herofield[tLevel].value
  var result as number
  result = hero.child[wUnarmed].delete[wMain.?]
  var dice as string

  if (level < 3) then
    result = hero.child[wUnarmed].assign[wMain.1d6_5]
    perform hero.child[wUnarmed].assign[Helper.DamageUp]
    dice = "1d6"
  elseif (level < 5) then
    result = hero.child[wUnarmed].assign[wMain.1d8_6]
    perform hero.child[wUnarmed].assign[Helper.DamageUp]
    dice = "1d8"
  elseif (level < 7) then
    result = hero.child[wUnarmed].assign[wMain.1d10_304]
    perform hero.child[wUnarmed].assign[Helper.DamageUp]
    dice = "1d10"
  elseif (level < 9) then
    result = hero.child[wUnarmed].assign[wMain.2d6_104]
    perform hero.child[wUnarmed].assign[Helper.DamageUp]
    dice = "2d6"
  else
    result = hero.child[wUnarmed].assign[wMain.2d8_204]
    perform hero.child[wUnarmed].assign[Helper.DamageUp]
    dice = "2d8"
  endif
  hero.child[wUnarmed].field[livename].text = "Shock " & dice
Mythanthor is offline   #3 Reply With Quote