I'm doing a little customization using the framework macros to create buttons for rolling specific skills that automatically apply a temporary bonus for situational modifiers. This is what I've got so far:
<!-- Insight check to detect illusion, with a situational modifier from the Rakshasa Claw familiar -->
<!-- Set LastSkill to Insight -->
[H: Private = setStrProp(Private, "LastSkill", 9)]
[H: Private = setStrProp(Private, "tempBonus", 5)]
<!-- Roll the skill check as normal-->
The only problem is that when rollSkillCheck (or rollAbilityCheck) sets up the dialog box, it resets tempBonus to zero instead of using the stored value. I made a few tweaks so that now rollSkillCheck pulls the last value of tempBonus and overwrites it for later, instead of reverting to zero every time.
<!-- Display the dialog box, selecting the skill that was chosen last time -->
[H: success = input(
"skillNum | " + json.toList(stringArray) + " | Select a skill | LIST | SELECT=" + getStrProp(Private, "LastSkill", 0),
"tempBonus | " +getStrProp(Private, "tempBonus", 0) + " | Temp. bonus | TEXT | WIDTH=4",
"privateChk| " + getStrProp(Private, "LastPrivateChk", if(isNPC(), 1, 0)) + " | Private? | CHECK"
<!-- Save the selected skill for next time -->
[H: Private = setStrProp(Private, "LastSkill", skillNum)]
[H: Private = setStrProp(Private, "tempBonus", tempBonus)]
[H: Private = setStrProp(Private, "LastPrivateChk", privateChk)]
With this tweak, my code at the top will let you set tempBonus before the call to the Lib:Veg macro is made. Before I started using this in game, however, I thought I would share my idea and ask you if tempBonus is used by anything else. Don't want to start breaking things that I'm not totally familiar with.