How to change Actor Note info DURING gameplay?

Anime_Fusion

Veteran
Veteran
Joined
Oct 24, 2015
Messages
79
Reaction score
49
First Language
English
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.

 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,787
Reaction score
939
First Language
Chinese
Primarily Uses
N/A
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 :)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
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.
 

mrcopra

Veteran
Veteran
Joined
Jul 21, 2015
Messages
452
Reaction score
158
First Language
Not English
Primarily Uses
N/A
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 :unsure:  

but it worked for me B)   
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
You can modify the plugins as much as you want. Nothing shady there :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,072
Members
137,578
Latest member
JamesLightning
Top