Ruby experts, please advise on how to modify a corresponding JSON file (specifically 400_WoundMThigh.json) using a script
to update its parameters. The goal is to replace the wound sprites "pose1_subposeX_WoundMThighX.png" on Lona's leg during the final stage of pregnancy with "pose1_subposeX_WoundMThighXpreg8.png" without overlaying them. This would help eliminate the "artifacts" shown in the following image:
View attachment 2643305
Currently, when I place this script in the 'Modscripts' folder and launch the game, I encounter the following error:
View attachment 2643308
Apparently, I have written this script incorrectly or there is another issue. Can you please advise if there is a way to implement a script that accomplishes what I have described?
Below, I have attached the folder containing the files I used. ↓↓↓