Thread: Variables List for coreRPG/5E
-
September 19th, 2022, 00:57 #1
- Join Date
- Sep 2015
- Posts
- 202
Variables List for coreRPG/5E
Does anyone know if there is a variables index for the rulesets somewhere? I'm trying to find the variable names for the side buttons on CORE or 5E. Better yet, Is there a verbose debugger that would reveal the variables in general?
Thanks for all the fishUltimate License Holder- Playin' D&D since '79, GMing since '81 and still rockin' the geriatric crowd.
-
September 19th, 2022, 05:00 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,613
I'm not sure what you mean by "variables list". Every object defined in any Lua script is technically a variable. Which objects are you trying to reference? How are you trying to reference?
If you're only talking about the "record types" in the sidebar, then there is a LibraryData script in the CoreRPG ruleset that manages that; and rulesets can add additional data (such as LibraryData5E in the 5E ruleset).
Also, you can run the "/debug on" command in the chat entry box to turn on information about windows/controls that the mouse is hovering over. Any additional debugging has to be added into the ruleset/extension code.
Regards,
JPG
-
September 19th, 2022, 17:21 #3
- Join Date
- Sep 2015
- Posts
- 202
Thanks Moon Wizard,
I was actually dissecting Damned's CoS Theme as a learning exercise because he was using text-string labels instead of graphic buttons. The code below was my issue:
Code:<root> <string name="library_recordtype_label_charsheet">Heroes</string> <string name="library_recordtype_label_image">Images</string> <string name="library_recordtype_label_battle">Battles</string> <string name="library_recordtype_label_backgrounds">Background</string> </root>
Question:
If I were to modify the above code with this addition to:
Code:<string name="library_recordtype_label_note">Memos</string>
Code:["note"] = { bNoCategories = true, sEditMode = "play", aDataMap = { "notes" }, sListDisplayClass = "masterindexitem_note", -- sRecordDisplayClass = "note",
Thanks againUltimate License Holder- Playin' D&D since '79, GMing since '81 and still rockin' the geriatric crowd.
-
September 19th, 2022, 19:18 #4
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,613
For the label of the record on the sidebar and related tooltip, that's all you would need to add.
Regards,
JPG
-
September 19th, 2022, 20:02 #5
- Join Date
- Sep 2015
- Posts
- 202
Thanks Moon Wizard
Ultimate License Holder- Playin' D&D since '79, GMing since '81 and still rockin' the geriatric crowd.
-
September 20th, 2022, 00:30 #6
-
September 20th, 2022, 17:01 #7
- Join Date
- Sep 2015
- Posts
- 202
Worked like a charm, thanks
Ultimate License Holder- Playin' D&D since '79, GMing since '81 and still rockin' the geriatric crowd.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks