PDA

View Full Version : HELP: Adding new options underneath Sidebar Folders



EXXODIS
June 16th, 2022, 01:34
I'm currently running a 4e game and I would like to add more links underneath the "Character" sidebar folder. But I'm having trouble finding where this is setup.
I would assume in the rulesest .pak for 4e but extracting that out I can't find anything. The only thing I've found is the .png icons that are used (the fist icon for the feats, the flame icon for powers).
Any help from a more experienced FGU user would be greatly appreciated!

I've tried attaching the image below:

53154

EXXODIS
June 16th, 2022, 04:04
Update: found where there is an override in the specific 4e ruleset (also applicable to 5e ruleset)
If you open archive the 4e ruleset and go to scripts -> data_library_4e.lua on line 68 you'll see the following code that sets the sidebar options on or off.

["feat"] = {
bExport = true,
aDataMap = { "feat", "reference.feats" },
sRecordDisplayClass = "powerdesc",
},
["power"] = {
bExport = true,
aDataMap = { "powerdesc", "reference.powers" },
sRecordDisplayClass = "powerdesc",
},

Then you can just add whatever additional ones you want and the reference you'll use must be the same name that is used by whatever module you want to use.
This is the code I used to add races!

["race"] = {
bExport = true,
aDataMap = { "race", "reference.races" },
sRecordDisplayClass = "powerdesc",
},