How to change Actor Note info DURING gameplay?

So I have the plugin, Altmenuscreen3 by Yoji Ojima, the reason I like this plug in is because it allows my character to have bust portraits. as seen below. However, my main character goes through a change where her graphic needs swapped. In order to do this, you need to add the this code in the actor notes: <stand_picture:catkris3>

What I'm trying to do is change the notes to where I can place  a new graphic in. Is there a formula I can place in notes where there is a conditional branch that allows me to change the note if a switch is placed on? If so, what would that script be? If there are any other plug-ins that allow bust portraits with easier plug-in commands, I would have no problem switching if there is no solution. Thanks.

alpha.jpg
Bad idea, because the notes are in the static data that doesn't get saved with the player's game.


You would need a plugin that will let you change it and save it with the save file, but that'd be complicated.


I think you would be better off requesting a change to the plugin to either get the file name from a variable, which you can update yourself as the game progresses, or to link the name/index of the bust image with the same name/index of the face image, so when you issue a Change Actor Images command, the plugin also gets the new image.
If the notetags are set on the actor directly, you may want to try DoubleX RMMV Dynamic Data(With dynamic_data_actors set as true). Beware that the savefile size can be drastically increased though 🙂
There is another problem that makes this a bad idea - the question when the script/plugin loads the data from the notetag.

There are a number of scripts that read the notetags on new game and store the info in their own data structure, never to access the notetags again.

I don't know if your specific plugin does that or not, but if you change the notetags on such a script, even a successfull change of the notetags will be ignored.

You need to check where the plugin reads the data from. only after that check you can decide if you can change the data directly (not even bothering with the notetags, if you have to change the notetag itself (especially if the read-function is complex) or if you can simply redirect the read-function.
I don't know if modifying altmenuscreen scripts legal or illegal

change  line 374    ( var bitmapName = $dataActors[actor.actorId()].meta.stand_picture; ) to (var bitmapName = $gameVariables.value((actor._actorId + var)); )

so it will read from variable instead from note

make sure var in the game sequential like (1, 2, 3, 4) 

every characters have variable

i hope i make sense 🤔  

but it worked for me 😎   
You can modify the plugins as much as you want. Nothing shady there 🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-to-change-actor-note-info-during-gameplay.49938/