Thread: MoreCore Ruleset
-
December 23rd, 2021, 16:11 #2991
Okay, for the first part, I'm just trying to get one of the fields to recalculate the target when it's updated.
Here's what I have in the function:
Here's what I have in one of the triggers:Code:function calculateAbilityMod(nodeChar, strMod, numCurrent) local nResult =0; if numCurrent < 10 then nResult = math.ceil((nScore - 10) / 2); elseif numCurrent > 10 then nResult = math.floor((nScore - 10) / 2); else nResult = 0; end nodeChar.getChild(strMod).setValue(nResult); return true; end
Code:function onValueChanged() --values passed> nodeChar, strMod, numCurrent local nodeChar = window.getDatabaseNode(); local strMod = "numStrengthMod"; local numCurrent = nodeChar.getChild("numStrengthCurrent").getValue(); charManager.calculateAbilityMod(nodeChar, strMod, numCurrent); end
I don't think I'm handling the strMod value properly... I need this value so the function knows which stat modifier to update...
-
December 23rd, 2021, 16:18 #2992
According to the developer of Ruleset Wizard, there is a .setColor and .getColor (as well as .getFontColor and .setFontColor) method for labels, but I can't seem to get them to work...
-
December 23rd, 2021, 21:02 #2993
Last edited by Trenloe; December 23rd, 2021 at 21:05.
FG Wiki: How to Compile the FG Logs
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!
-
December 23rd, 2021, 21:12 #2994
-
December 27th, 2021, 23:20 #2995
What language was that code written in? Not that knowing it would make me understand it, but it does make me curious about what people are doing. My non-skill at coding is dissuading me from doing the alterations or additions needed to bring my ideas of systems to use to life.
FGU Ultimate -- All Players Welcome
"Without Love, I'd have no anger. I wouldn't believe in righteousness." -- Bernie Taupin
-
December 28th, 2021, 01:26 #2996
Lua
You can see more at:
https://fantasygroundsunity.atlassia...eveloper+Guide
-
December 30th, 2021, 06:18 #2997
The Side bar has disappeared when I use Morecore after the last update. Any help would be appreciated. Thank you.
-
December 30th, 2021, 09:42 #2998
Please remove your downloaded copy and subscribe to MoreCore on the Forge.
-
December 30th, 2021, 18:21 #2999
-
January 2nd, 2022, 17:20 #3000Devotee
- Join Date
- Oct 2011
- Posts
- 9
I was worried there for a bit trying to get the forge to work and remove the old .pak. Thought I had lost everything.
Anyways, Is there a way to remove Races, Parcels, etc from Campaigns on the drop down list on the right side buttons?
I thought it was under options-->sidebar. But I don't see that anywhere.
Thread Information
Users Browsing this Thread
There are currently 4 users browsing this thread. (0 members and 4 guests)

Reply With Quote



Bookmarks