-
March 4th, 2022, 15:43 #1
New currency and encumbrance system hookup for custom ruelset
I've looked around for why the new currency and encumbrance system doesn't play nice with my FFd20 ruleset which is mostly edited 3.5e code.
It looks like it won't work without a custom override if the system name is not in this table from manager_char_encumbrance.lua
Code:local _tStandardSupportedRulesets = { "CoreRPG", "3.5E", "4E", "5E", "13th_Age", "AFF2", "Basic Roleplaying", "BoL", "CallOfCthulhu", "CallOfCthulhu7E", "d20 Modern", "DCC RPG", "Fate Core", "ICONS", "MCC RPG", "PFRPG", "Symbaroum", "WOIN", };
Could that table be changed to not be local so we can add to that table via code? If anyone has a smarter solution please let me know.GitHub
Ruleset: FFd20
Extensions: Advanced Charsheet - Attack Modifiers - Big Portraits - Enhanced Skills - Legacy Items - Spell Action Info - Spell Record Actions - Tooltips
-
March 4th, 2022, 15:54 #2
The following code will do the equivalent of what adding a ruleset to the list does:
Code:CharEncumbranceManager.addStandardCalc();
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!
-
March 4th, 2022, 15:56 #3
That snippet of code Trenloe gave you can go in your onInit on your gamesystem script
https://forge.fantasygrounds.com/shop/items/199/view
Old School Essentials Ruleset
https://www.dmsguild.com/product/352...eon-Builder-5E
5e Random Dungeon Generator!
-
March 4th, 2022, 16:05 #4
Thank you both, I'll try that later!
GitHub
Ruleset: FFd20
Extensions: Advanced Charsheet - Attack Modifiers - Big Portraits - Enhanced Skills - Legacy Items - Spell Action Info - Spell Record Actions - Tooltips
-
March 4th, 2022, 16:10 #5
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,564
At some point, I plan to have the new system be the default, unless a custom calculation is written by the ruleset; but I needed intermediate steps for backward compatibility.
Regards,
JPG
-
March 13th, 2022, 21:04 #6
- Join Date
- Mar 2009
- Location
- Lidingö, Sweden, Europe
- Posts
- 374
-
March 13th, 2022, 21:36 #7
Gamesystem is an actual file. Unpack OSE2 and look how I did it.
https://forge.fantasygrounds.com/shop/items/199/view
Old School Essentials Ruleset
https://www.dmsguild.com/product/352...eon-Builder-5E
5e Random Dungeon Generator!
-
March 13th, 2022, 21:40 #8
Last edited by Trenloe; March 13th, 2022 at 21:43.
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!
-
September 13th, 2022, 03:28 #9
-
September 13th, 2022, 04:14 #10
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks