View Full Version : Help! Want to modify combat tracker!
danielpryor
February 18th, 2006, 05:08
Can anyone tell me what the proper files are to modify the combat tracking system? Also, is is possible for the tracking form to do simple math equations such as: a3=a1-a2 such formalus that are used in most spreadsheets? And if so, how can we implement them? Any help would be appreciated, thanks.
sunbeam60
February 18th, 2006, 17:42
Also, is is possible for the tracking form to do simple math equations such as: a3=a1-a2 such formalus that are used in most spreadsheets? And if so, how can we implement them? Any help would be appreciated, thanks.
Nope, not possible AFAIK. Will likely be possible in 1.06, but it's bound to require some behind the scenes code work in Lua (see https://www.lua.org/pil/ to get a head start on Lua before 1.06 comes out)
Bjorn
Toadwart
February 19th, 2006, 20:56
Nope, not possible AFAIK. Will likely be possible in 1.06, but it's bound to require some behind the scenes code work in Lua (see https://www.lua.org/pil/ to get a head start on Lua before 1.06 comes out)
Bjorn
Really? Is it not possible to use similar XML to that on the character sheet? (e.g. where it adds the base attack bonus to the strength bonus to determine the Melee Attack bonus)
HeavilyMental
February 20th, 2006, 01:12
Really? Is it not possible to use similar XML to that on the character sheet? (e.g. where it adds the base attack bonus to the strength bonus to determine the Melee Attack bonus)
Sure you can, if I understand correctly. In the charsheet.xml file you can find a decent example like:
<numbercontrol name="ac">
<bounds rect="289,423,34,23" />
<nodrop />
<nodrag />
<noreset />
<source name="acdexbonus" op="+" />
<source name="acsizebonus" op="+" />
<source name="acarmorbonus" op="+" />
<source name="acshieldbonus" op="+" />
<source name="acmiscbonus" op="+" />
<source name="acbasehelper" valuemap="0:10" />
</numbercontrol>
So...for you it would be something like:
<numbercontrol name="meleeattackbonus"> your "a3"
<source name="baseattackbonus" op="+" /> your "a1"
<source name="strengthbonus" op="+" /> your "a2"
</numbercontrol>
Then add the other <nodrag />, <nodrop />, <noreset /> as needed. Oh, and if you're not gonna display this you'll want <invisible />, too. Keep in mind you'll have to define <numbercontrols> for baseattackbonus and strengthbonus, too. :)
Edit: You can change op="+" to op="-" if you need to subtract. I typed in "+" above.
sunbeam60
February 20th, 2006, 09:34
I stand corrected.
danielpryor
February 20th, 2006, 09:34
What .xml file actually holds the data though, is it in the d20_graphics.xml?
Crusader
February 20th, 2006, 12:17
No, it's in the d20_utility.xml.
Powered by vBulletin® Version 4.2.1 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.