Thread: MoreCore Ruleset
-
December 22nd, 2021, 08:03 #3021
You should totally pull apart other rulesets!
use the Find In Files feature of Notepad++ to search unpacked rulesets.
Start with what you know - eg if you find somewhere that does this search on the text.
That will likely give you a string_resource
Then search on the string_resource name
etc
-
December 22nd, 2021, 08:04 #3022
-
December 23rd, 2021, 16:11 #3023
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:
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 #3024
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 #3025
Last edited by Trenloe; December 23rd, 2021 at 21:05.
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 #3026
-
December 27th, 2021, 23:20 #3027
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 #3028
Lua
You can see more at:
https://fantasygroundsunity.atlassia...eveloper+Guide
-
December 30th, 2021, 06:18 #3029
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 #3030
Please remove your downloaded copy and subscribe to MoreCore on the Forge.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks