-
October 3rd, 2022, 01:04 #41
There are a few options:
1) Test for the nil value first. or use slightly different code.
You can test for not nil values with something like the following, only doing the code if the object exists:
Code:function onValueChanged() local nodeWin =window.getDatabaseNode(); local nodetotS = nodeWin.getChild("totS"); local nS = ""; if notetotS then nS = notetotS.getValue(); end ... end
3) Another way is to use the DB global package getValue function as this allows the default value to be returned if the function can't find a valid value: https://fantasygroundsunity.atlassia...82/DB#getValue
So, in this case, you could use something like:
Code:function onValueChanged() local nodeWin =window.getDatabaseNode(); local nS = DB.getValue(nodeWin, "totS', ""); if nS ~= "" then -- do stuff end ... end
Last edited by Trenloe; October 3rd, 2022 at 01:14.
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
October 3rd, 2022, 21:38 #42
- Join Date
- Mar 2018
- Location
- Norway
- Posts
- 104
Thanks a lot Trenloe!
Good thing you gave me so many choices, because I needed to use both solution 1 and 2 in different places to get everything to work.
But now it seems to function.
That removed 6 Error messages in one go
-
October 3rd, 2022, 22:06 #43Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
October 26th, 2022, 23:58 #44
Hey this is awesome! Just about to join a WFRP campaign and came across this. You should slap this bad boy in the forge!
-
October 27th, 2022, 19:43 #45
- Join Date
- Mar 2018
- Location
- Norway
- Posts
- 104
Small update this time.
- Fixed a whole bunch of error messages when creating a character.
- Fixed the error for creating new items in the trappings list.
- Small graphic changes.
WRFP 4th edt.pak
Thanks daddyogreman! I would love to get some feedback on what works and doesn't if your group ends up using the ruleset!
I have actually thought about adding this to the Forge.
Not sure if it is allowed though. I am not adding anything that is copyrighted by Games Workshop or Cubicle 7, but the gaming system is not mine.
I have tried to see if there are any limitations in the Forge Rules, but haven't seen any. Haven't found anything that says I'm allowed either.
Is there someone more knowledgable than me that could answer this?
-
October 27th, 2022, 21:37 #46
Oh on a side note - you're titling the file WRFP 4th edt.pak when I think you're meaning WFRP 4th edt.pak.
And it'd just be me using it for a character sheet/automation, not the entire group. I'll tread lightly for the moment and keep a paper copy of my character sheet and bring dice, but I'll certainly be seeing that this ruleset can do! Thanks for all the work!Last edited by daddyogreman; October 27th, 2022 at 21:42.
-
October 27th, 2022, 22:05 #47
-
October 29th, 2022, 10:33 #48
- Join Date
- Feb 2014
- Posts
- 14
-
October 30th, 2022, 12:40 #49
- Join Date
- Mar 2018
- Location
- Norway
- Posts
- 104
Hehe, that is actually not a bug, but a feature.
If you add "Hardy" to the talents, and set the "Count" to 1, then it should sum it by itself!
I removed the edit option to keep my players from editing themselves, so I could force them to test out the function.
-
November 2nd, 2022, 22:25 #50
- Join Date
- Mar 2018
- Location
- Norway
- Posts
- 104
Well, i've slapped it on the Forge!
At the same time I fixed the combat tracker, so the relevant info is transfered correctly.
And that's about it for this time.
Happy gaming!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks