Make RPG attributes (STR/DEX/etc) customizable and editable
- Replace showRPGAttributes boolean with rpgAttributes array in trackerConfig - Add RPG Attributes section in Edit Trackers with add/remove/rename/toggle - Dynamically generate attribute display from config in userStats.js - Add migration from old showRPGAttributes to new rpgAttributes array - Initialize new attributes with default value of 10 in classicStats - Default attributes: STR, DEX, CON, INT, WIS, CHA (all enabled)
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
[
|
||||
{
|
||||
"scriptName": "RPG: Clean HTML (From Outgoing Prompt)",
|
||||
"findRegex": "/\\s?<(?!\\!--)(?:\"[^\"]*\"|'[^']*'|[^'\">])*>/g",
|
||||
"replaceString": "",
|
||||
"trimStrings": [],
|
||||
"placement": [2],
|
||||
"disabled": false,
|
||||
"markdownOnly": false,
|
||||
"promptOnly": true,
|
||||
"runOnEdit": true,
|
||||
"substituteRegex": 0,
|
||||
"minDepth": null,
|
||||
"maxDepth": null
|
||||
},
|
||||
{
|
||||
"scriptName": "RPG: Clean Tracker Blocks (Keeping Last)",
|
||||
"findRegex": "/```\\n[\\s\\S]*?\\n---\\n[\\s\\S]*?```\\n+/g",
|
||||
"replaceString": "",
|
||||
"trimStrings": [],
|
||||
"placement": [1, 2],
|
||||
"disabled": false,
|
||||
"markdownOnly": false,
|
||||
"promptOnly": true,
|
||||
"runOnEdit": true,
|
||||
"substituteRegex": 0,
|
||||
"minDepth": 3,
|
||||
"maxDepth": null
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user