Tenser
January 20th, 2009, 06:55
I've modified moon wizards d20_JPG ruleset to include the wound/vitality system from Unearthed Arcana. I have a penalty applied to the attack roll when wound points are damaged, but I'm having trouble with applying a penalty to the damage rolls.
Within the charsheet_templates.xml file, moon wizard created a template called "weapondamage" (which is used on the charsheet_combat.xml file within the windowclass "charsheet_weaponlistitem".
Within this template he has defined a function onDoubleClick
function onDoubleClick(x,y)
ChatManager.DoubleClickDieControl(getDice(), window.damagebonus.getValue(), window.name.getValue() .. " (Damage)", {pc = window.getDatabaseNode().getParent().getParent()}) ;
return true;
end
From within that function I'm trying to access a sheetnumber in the charsheet_combat.xml file called "meleewoundpenalty" which has a source of "attackbonus.woundpenalty". I've tried all kinds of ways to access the data so I can apply it to the damage roll on the doubleclick action and I've come up empty each time. Any ideas?
Within the charsheet_templates.xml file, moon wizard created a template called "weapondamage" (which is used on the charsheet_combat.xml file within the windowclass "charsheet_weaponlistitem".
Within this template he has defined a function onDoubleClick
function onDoubleClick(x,y)
ChatManager.DoubleClickDieControl(getDice(), window.damagebonus.getValue(), window.name.getValue() .. " (Damage)", {pc = window.getDatabaseNode().getParent().getParent()}) ;
return true;
end
From within that function I'm trying to access a sheetnumber in the charsheet_combat.xml file called "meleewoundpenalty" which has a source of "attackbonus.woundpenalty". I've tried all kinds of ways to access the data so I can apply it to the damage roll on the doubleclick action and I've come up empty each time. Any ideas?