-
May 9th, 2022, 08:57 #841
As far as I know, it is not possible:
https://fantasygroundsunity.atlassia...tedtextcontrolRuleset Wizard
The Ruleset Development Environment
www.rulesetwizard.com
Ruleset Wizard Tutorials
Damned's Ruleset Wizard Tutorials
-
May 9th, 2022, 09:22 #842
- Join Date
- Mar 2018
- Location
- Norway
- Posts
- 104
Okay, thanks for a quick answer.
-
June 6th, 2022, 18:49 #843
After some time version 0.8.0 is finally here. If you want to know more about this update, or if you missed any of the previous ones, you can take a look at my development blog:
https://www.rulesetwizard.com/0-8-0-hydra-update/Ruleset Wizard
The Ruleset Development Environment
www.rulesetwizard.com
Ruleset Wizard Tutorials
Damned's Ruleset Wizard Tutorials
-
June 7th, 2022, 13:08 #844
You sir are like oasis in the desert!
-
June 13th, 2022, 15:30 #845
- Join Date
- Dec 2018
- Location
- England, UK
- Posts
- 198
I have a question about linking fields between the Combat Tracker and the character sheet.
I have set up the ct_entry as per the video tutorials produced by Damned. The code for this is:
function onInit()
super.onInit();
linkNewPCFields();
end
function linkNewPCFields()
local nodeChar = link.getTargetDatabaseNode();
-- retrieves the CT entry ID - these are CT specific functions
if nodeChar then
-- if nodeChar is valid/exists then run the next steps
hpmax.setLink(nodeChar.createChild("hpmax", "number"), true);
-- setup a link between the CT field and the charsheet field
hpcurrent.setLink(nodeChar.createChild("hpcurrent" , "number"), true);
-- setup a link between the CT field and the charsheet field
fatiguecurrent.setLink(nodeChar.createChild("fatig uecurrent", "number"), true);
-- setup a link between the CT field and the charsheet field
vehiclearmourcurrent.setLink(nodeChar.createChild( "vehiclearmourcurrent", "number"), true);
-- setup a link between the CT field and the charsheet field
vehiclestructurecurrent.setLink(nodeChar.createChi ld("vehiclestructurecurrent", "number"), true);
-- setup a link between the CT field and the charsheet field
end
end
The properties for the fields are shown in the attached files. I have also attached the issue I get when damage is applied to the target (BT-ATOW CT Issue #1.jpg). The current hit points on the character sheet does not update when the same field in the combat tracker updates (circled in red).
Can anyone help with this issue? Not sure if I have missed something in the coding.
-
June 13th, 2022, 16:00 #846
everything seems to be fine. Make sure that the hpcurrent node exists in the root of the charsheet database node, and not under another subnode. Something like this:
<charsheet>
<id-00001>
<hpcurrent type="number">25</hpcurrent>Ruleset Wizard
The Ruleset Development Environment
www.rulesetwizard.com
Ruleset Wizard Tutorials
Damned's Ruleset Wizard Tutorials
-
June 13th, 2022, 17:52 #847
- Join Date
- Dec 2018
- Location
- England, UK
- Posts
- 198
Yep, the node exists.
The strange thing is I can update the value in the character sheet and the value changes in the combat tracker.
I have noticed a cannot manually change the value in the combat tracker when I was expecting I should be able to. I can't see any other properties in the numberfield that would prevent this.
-
June 13th, 2022, 18:01 #848
Ruleset Wizard
The Ruleset Development Environment
www.rulesetwizard.com
Ruleset Wizard Tutorials
Damned's Ruleset Wizard Tutorials
-
June 13th, 2022, 18:21 #849
- Join Date
- Dec 2018
- Location
- England, UK
- Posts
- 198
Thanks psicodelix, that worked and it also cured the update issue on the character sheet.
-
June 13th, 2022, 19:53 #850
Ruleset Wizard
The Ruleset Development Environment
www.rulesetwizard.com
Ruleset Wizard Tutorials
Damned's Ruleset Wizard Tutorials
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks