[RM2K3] IS THERE A WAY TO DISPLAY THE NAME OF A VARIABLE IN THE MESSAGES?
Posts
Pages:
1
I mean, using a code in the "Show text" event command to display a Variable's name in a similar way you can display its number with \v.
No, this is not possible with 2K3 as it is, and I'm not quite sure why you'd want to do this -- are you going for string variables?
Yes, you can. Simply type
n=variable's number.
For example, if you wanted to display variable 0001, you'd type.
EDIT: Sorry, I should have linked to this: https://rpgmaker.net/tutorials/43/
\V[n]
n=variable's number.
For example, if you wanted to display variable 0001, you'd type
\V[1]
EDIT: Sorry, I should have linked to this: https://rpgmaker.net/tutorials/43/
author=pianotm
Yes, you can. Simply type\V[n]
n=variable's number.
For example, if you wanted to display variable 0001, you'd type.\V[1]
EDIT: Sorry, I should have linked to this: https://rpgmaker.net/tutorials/43/
That's the variable value, Aoleorz seems to be asking about the variable name.
Like psy_wombats said, that's not possible with vanilla RM2K3. It could be done with a DynRPG plugin, but that's probably more effort than it's worth and currently is only possible with the fan-port version of RM2K3 (which we refer to as RPG Tsukuru 2003 around here). If all you want is to be able to show some text controlled by a number, what you could do is have some extra heroes (AKA actors) in your database and use their names--see the tutorial pianotm linked to. If you're trying to see variable names for convenience in debugging, my best suggestion is to press F9 while running the game to open the debug menu, that will let you look through all the switches and variables with their names and current values listed.
Well, you could change the name of a player character to be the same as a variable I think? Like have it so that IF variable x is set to 1, then change character 5s name to Banana, and then use the \n call in message boxes.
It's a bit awkward if you're always changing the name, but if it's only a few name changes, then it shouldn't be hard to fit it to a number within that variable.
(So, If the name is Tony, just set the Variable number to 10 and have an IF case checking to see if the number is 10. If so, change the spare hero name to Tony and have it reference the hero).
Just a quick image to give you a basic idea of what I mean:

It's a bit awkward if you're always changing the name, but if it's only a few name changes, then it shouldn't be hard to fit it to a number within that variable.
(So, If the name is Tony, just set the Variable number to 10 and have an IF case checking to see if the number is 10. If so, change the spare hero name to Tony and have it reference the hero).
Just a quick image to give you a basic idea of what I mean:

I'm not even sure that is even possible using DynRPG, from what I recall from the API you must access variables and switches using their index, not their name.
Otherwise the answer is pretty much as mentioned before, if you are trying to save a "string" use an extra hero you will never use, if it's for debugging, just use F9.
EDIT: So DynRPG by Cherry indeed doesn't allow you to do that (or at least doesn't have it as a public field) but this version by PepsiOtaku (which I just discovered) seems to have it:
http://www.rewking.com/dynrpg/class_r_p_g_1_1_variable.html
I can't find a download for this version (0.31) I can only find Cherry's (0.14).
Otherwise the answer is pretty much as mentioned before, if you are trying to save a "string" use an extra hero you will never use, if it's for debugging, just use F9.
EDIT: So DynRPG by Cherry indeed doesn't allow you to do that (or at least doesn't have it as a public field) but this version by PepsiOtaku (which I just discovered) seems to have it:
http://www.rewking.com/dynrpg/class_r_p_g_1_1_variable.html
I can't find a download for this version (0.31) I can only find Cherry's (0.14).
Heya, thanks for all the answers. I was trying to make a "Reequip" battle command and gice choices based on variables assigned to equipment. I had an idea of what to do with Variables if I could use their names.
But yeah, it really seems to be more trouble than it's worth, especially since it would be to trying to pull a rather minor thing. So I guess I'll try a different way with events.
Thanks for all the help.
Silly question but... what's string variable btw?
But yeah, it really seems to be more trouble than it's worth, especially since it would be to trying to pull a rather minor thing. So I guess I'll try a different way with events.
Thanks for all the help.
Silly question but... what's string variable btw?
In a nutshell, a variable that contains a string of characters instead of a number. Text.
Pages:
1
















