I want to customize growth skills randomly through changes in the game process:
First, I defined a blank traits state in the database, id is 13 for example,
then I create a event and write a js "$dataStates[13].traits[0]=[22, 7, 0.5];"(I mean give user 50%HP recover every turn)
Finally I create a skill x , which can add state 13 to user
I start game and clicked the event then start a battle with Skill x of course
but no effect ,no HP recover after turn
by default the database is static and cannot be changed during game.
all $data files are read-only as a result.
you'll need a plugin for rewriting how the database is handles, at minimum a dynamic traits plugin.
and changing notetags is even more problematic, because by default notetags have no function at all.
they are only used to transfer data to plugins, and there are a lot of plugins that only read notetags on new game and never again, making any change there useless.
most people work by exchanging data objects. making multiple skills and unlearn the old while learning the new one by event commands.
you can use your call directly on turn 0 +x I believe and you could dynamically
change that over the battle.
as it doesn't save in the savefile, you are able to do that though if you need it,
so you dont require a modify plugin for it 🙂
if you want to save the $data, I made a tiny plugin to do just that to save it
in the savefile. (see spoiler) SDM.
if you need an overhaul how the $data are affected, than a plugin would
be required.
I dont know what the error is you get or why, so I need more data if you
plan using it, as it just make the $data save in the savefile, so not sure
what can cause it to be bigger.
please sort that out and which plugin it conflicts too. you can either
DM me the crash report on the thread and I look into it when I got time.
while it's in LiuYue_ExtraNotes, it's has nothing to do with my plugin directly.
but I dont know what the extra notes exactly does, so I think that one is
messing with the database as well somewhere.
but if my plugin is OFF and works, try one of the recommend plugins the
other mentioned to see if those works for you if you have a bunch.