Easier way?
RPG Maker VXAce SupportIf you don't want all of the messages to pop up, you should nest the conditional branches into each other.
reverse the order (highest rank upgrades first) and exit event processing after the first successfull upgrade to prevent the other, lower upgrades.
Do I keep them in <= or should it be >=?
@Iavra
I don't know how to nest these together in this editor.
You should go for Andar's solution, since it performs better and is easier to look at than mine.
You keep all conditions as they are, but reverse their order (so the highest one is checked first) and exit event processing at the end of every case.
You keep all conditions as they are, but reverse their order (so the highest one is checked first) and exit event processing at the end of every case.
Ok thanks
Is there a way to store a string into a variable and have it post in a message box?
So for instance, the message:
Fire I has been upgraded to Fire II!
Store the word "Fire" into a variable, then change the message to say:
variable I has been upgrade to variable II!
This way I can just change the variable one time per spell type. Just saves a lot of typing. Can this be done with this editor?
So for instance, the message:
Fire I has been upgraded to Fire II!
Store the word "Fire" into a variable, then change the message to say:
variable I has been upgrade to variable II!
This way I can just change the variable one time per spell type. Just saves a lot of typing. Can this be done with this editor?
Variables only store numbers. But you can use them to access Strings defined in RGSS. So for example:
module TEST TEXT = [ "abc", "def", "ghi" ]end TEST::TEXT[$game_variables[1]]would give you the nth value of TEST::TEXT, where n is defined in variable #1.
Note that the first element has the index 0, not 1.
module TEST TEXT = [ "abc", "def", "ghi" ]end TEST::TEXT[$game_variables[1]]would give you the nth value of TEST::TEXT, where n is defined in variable #1.
Note that the first element has the index 0, not 1.
To input a string in the default "Control Variables" command, you just need to type
"string"into the script operand (where the word string is the text you want). Then you just call the variable as usual.
"string"into the script operand (where the word string is the text you want). Then you just call the variable as usual.
You should be able to make a scrip call like:
$game_variables[1] = "Fire"
And whenever you write \v[1] in a dialog, it will say Fire.
$game_variables[1] = "Fire"
And whenever you write \v[1] in a dialog, it will say Fire.
^Kvich's method is a different approach to what I said, but both work the same. This is what I meant:
Original thread: https://forums.rpgmakerweb.com/threads/easier-way.39130/


