CaptJack2883
June 23rd, 2021, 11:25
So I'm trying to get my ruleset to update something on tab2 when I update the value of something on tab1. Specifically, I have attributes on the main tab of the character sheet, Strength, Dexterity, etc. And then I have skills on the second tab of the character sheet. When I change the value of the dexterity on the main tab, then switch back to the skills tab, the original dex value is still being used instead of the new one. It only updates when I change something on the skills tab.
I have the skills tab set up as a windowlist, with each skill being a 'window' inside the windowlist. The stat is being shown as part of the calculation for the roll inside the skill. I'm just trying to get the main tab to be able to call the update() function from the skills tab, but I can't seem to figure out how to access it.
If I can't call the function from outside the scope of the tab, can I at least have it run when the player switches to that tab? I can only get it to run one time upon first opening the character sheet for the first time during the session, and after that it only runs when I actually update one of the values inside that tab.
I have the skills tab set up as a windowlist, with each skill being a 'window' inside the windowlist. The stat is being shown as part of the calculation for the roll inside the skill. I'm just trying to get the main tab to be able to call the update() function from the skills tab, but I can't seem to figure out how to access it.
If I can't call the function from outside the scope of the tab, can I at least have it run when the player switches to that tab? I can only get it to run one time upon first opening the character sheet for the first time during the session, and after that it only runs when I actually update one of the values inside that tab.