PDA

View Full Version : Fields not synched...



tcosta1982
August 27th, 2013, 18:51
Hi again Forum!!

My newest problem is this :

Project : I want to add a "Level" option to the stat drop down lists. I have done this in /charsheet_general.xml and it works mostly...

Problem : It works in all fields except for the attack drop down in the weapons section of the PFRPG actions tab of the character sheet. No matter what I do, it won't recognize the level variable built into the current 3.5 database.

Is there a connection I am not making?

Thank you

Trenloe
August 27th, 2013, 23:23
Look at the onSourceUpdate() function in \charsheet\scripts\charsheet_weaponattack.lua.

It is this function that updates the attack bonus based on the "attackstat" control (the cycler control that usually has base, str, dex, etc.).

If you've just added "level" to the <cycler_ability_sm> cycler control template (in \charsheet\charsheet_weapons.xml) then the onSourceUpdate code will be looking for "...abilities.level.bonus" in the database. You'll need to add code to this function to cater for level being selected in the cycler control.