MZ How can I store actor names as controlled variables?

I read an older post on here somewhere that, at least in MV anyway, it was possible to store actor names as/inside "Control variables," which could then be used in the name box of a skill by first inputting "the Plugin's tag ' \# ' into the name box of the skill followed by the Variable Escape Code."

I won't pretend to understand the majority of how any of this works as I've never managed to make anything in MZ or the other RPG Makers before, and I only started to seriously try and get into it around about last month/beginning of the year, but my thinking is that I ought to be able to use a similar method to this in MZ in order to allow the player to dynamically change the names of certain skills (specifically only the skills that I'm allowing the player to augument with Synrec's Skill Construct plugin, so as to give the illusion of a Morrowind-esque spell crafting system. However, it seems that RPG Maker MZ doesn't natively feature the ability to store actor names as variables, only *party members.* But it DOES, however, seem to allow variables to be stored via custom scripts.

My question is, what is the script that I would use to store Actor names as variables via the script function under "Control Variables, Game Data?" Would it just be something like "Temp Variable 1 = Actor ID of Actor 1?"

And what is this "plugin tag" that the older thread mentioned? I'm using Visustella's suite of sample game plugins which includes their message core plugin, as opposed to Victor Engine's MV Text Control plugin which is what was suggested in the older thread that I read through, and as such I assume that Visustella will allow me to use variable escape codes in name boxes in much the same way. So Would I literally just write in the name box of the desired skill "\"number of the plugin (Message core is the 8th plugin down for my project)"\v["number of the variable that I stored the actor's name in"]" ?

Sorry for the yap, lol
its under variables => game Data => actor => actor of ID?

than use the escape character \v[id].
its under variables => game Data => actor => actor of ID?

than use the escape character \v[id].
Oh, OK. So would I just ignore the field next to "Actor of ID" that gives me a drop down of things like their level, Max HP and Agility?

Thanks, btw!
its whatever you want to show, check id, name, hp, mp etc,
whatever game data you need is what you select, and use or
alter the way it has.

its basic setup, there are enough tutorial to know the engine and
about the settings.
Oh, OK. So would I just ignore the field next to "Actor of ID" that gives me a drop down of things like their level, Max HP and Agility?
Huh? No. That does not sound right.

If you want to get the ID of a specific actor and store it in a variable, you use the "Party" option and select a location in the party. For example, to get the party leader, select "Member #1". Then you can put that actor's name into text using the code \N[\V[12]] where 12 is the ID of the variable you stored the actor's ID in.

However, if you already know you definitely want actor 5 (for example), rather than the 3rd actor in the party, you can put their name into text by writing just \N[5]. No Control Variables required.
For reference, Show Text displays a list of these "text codes" when you hover over the text field with your cursor:

mz-show-text-hover-tip.png
MZ also has an option called "Insert Control Character..." that you can access by right-clicking the text field. That gives you various options, then inserts the appropriate text code with empty brackets, e.g.
  • Insert Control Character -> Actor -> OK: \N[]
Just in case, do you mean something like this?

1773360523056.png

1773360605975.png

1773360686497.png


I mean, technically you can save a lot of things in variables, if you use javascript to do it.
Huh? No. That does not sound right.

If you want to get the ID of a specific actor and store it in a variable, you use the "Party" option and select a location in the party. For example, to get the party leader, select "Member #1". Then you can put that actor's name into text using the code \N[\V[12]] where 12 is the ID of the variable you stored the actor's ID in.

However, if you already know you definitely want actor 5 (for example), rather than the 3rd actor in the party, you can put their name into text by writing just \N[5]. No Control Variables required.
Yea, this is more what I was going for! Because my thinking was sorta that I'd use a non-party member "dummy" actor who could be renamed via the name processing event as many times the player wanted and then use that actor's name as the name of the new "player-made, custom skill," to simulate the sorta illusion that the player is literally making up their own spells, Treasure of Rudras-style. So I got a bit confused when it seemed like my only immediate options were to either get the name of an already active party member or to use the status of an actor for the variable, hah. Thanks, mang!

For reference, Show Text displays a list of these "text codes" when you hover over the text field with your cursor:

View attachment 362624

MZ also has an option called "Insert Control Character..." that you can access by right-clicking the text field. That gives you various options, then inserts the appropriate text code with empty brackets, e.g.
  • Insert Control Character -> Actor -> OK: \N[]
Now this looks like it'll be a lot of help in the future, lol. I knew that if I hovered over the box I could get the little explanation to appear but I didn't know about the Insert Control Character function. Thanks!

Just in case, do you mean something like this?

View attachment 362625
View attachment 362626
View attachment 362627

I mean, technically you can save a lot of things in variables, if you use javascript to do it.
Yea, this is what I was thinking of doing originally. From what I hear I don't actually have to do any of this at all if I have a definitive idea of which dummy actor I want to call, but I still think it's good to know what the actual script call was. Thanks for this!
For reference, Show Text displays a list of these "text codes" when you hover over the text field with your cursor:
What this doesn't tell you is that the codes can be nested up to 3 levels deep: \N[\V[\V[42]]]

I don't think you'd need a 3rd level very often, but 2 levels is pretty useful at times.

(The above statement is slightly inaccurate. A more precise description is "you can nest \V in any other code, including itself, but nesting it in itself only works once".)

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-store-actor-names-as-controlled-variables.182839/