I don't know JS much, but I'm wondering if there is a plugin to change an actors <notes> during runtime, or add a state that would give a <note> during runtime? RPGMMV
MV Changing an actor/enemies notes during runtime?
JS Plugin RequestsWhat are you trying to achieve by doing this?
I don't want to run into performance issues but with certain plugins I'm trying to use namely Alpha ABS, there's a <teamid:X> tag identifying which team the npc is currently on. What I'd like to do is apply a state that would change the <teamid> from 1 to 2, or vice versa like a confusion effect. I feel its the cheap way to get around not knowing JS
Unfortunately, those note tags are likely only parsed once, as the database is loaded when the project is opened, so even if you changed them after that, it wouldn't change anything.
What you can do is look at the plugin to check where it is storing the teamId when this note tag is parsed, and then use a script call to change it at runtime. But chances are that this is going to be a complicated task to accomplish as well, since the creator likely didn't intend for people to do that.
The state thing might work if the note tag actually works on states, and if the state value will override the default value from the npc's note box. That would be a separate request than your initial ask, though.
I figured it wouldn't be easy without knowledge. Thanks for replying. I tried searching with google and found nothing, and there was an old fix posted in the discord server for AABS by using Yep's BuffStateCore but I had a compatibility issue so I'm assuming an update messed it up.
Original thread: https://forums.rpgmakerweb.com/threads/changing-an-actor-enemies-notes-during-runtime.133770/