First off, I would like to apologize if this is in the wrong forum. I looked at some of the topics posted here and this seemed to fit.
I was toying with a concept in my project which basically (through the normal options given by the game's event interface) create's a certain set of variables, identifies the weakest of those variables, adds the remaining variables together, and then displays the sum of said variables. It was pretty easy to figure out- all but the last part. I can't seem to find a way to display the resulting number without doing a TON of conditional branches.
It's 12:40, so I may have simply missed something because I'm tired, but I would appreciate any and all help. I'd prefer not to use scripts since this is literally the only thing I would need a script for, as I'm not making a 'game' per se, but more like a tool to aid in something.
If it turns out that I absolutely HAVE to use a script I will, but if the only way to go about doing it is a bunch of conditional branches then I'll just leave it out.
Thanks for the help!
Display Variable Result
● ARCHIVED · READ-ONLY
-
-
You can display what's in a variable, in a text box, by typing \V[id] where id is the variable number.
-
Thanks! I totally forgot about that.
One more problem, I previously stated that my plan was to display the sum of the variables, but what I thought at the time was to control a new variable to be equal to the sums of the generated variables- I just can't seem to figure out how to do it.
I've tried adding Var(x) to Var(y), but when I enter the command for it, that's all it does- adds them. Does it override Var(x) to become the new Var(y)? And if so, then would this work?
puu.sh/aDSp4/5d4fd15049.png
(link is a screenshot of the event editor)
P.S. the reason I can't test the above is because the tool I'm creating is not complete yet, and this is supposed to yield the result of the tool. -
Control Variables [0001 Var 1] = Variable [0002 Var 2] + Variable [0003 Var 3]Control Variables [0001 Var 1] += Variable [0004 Var 4]Control Variables [0001 Var 1] += Variable [0005 Var 5]Control Variables [0001 Var 1] += Variable [0006 Var 6]So you do the first sum of two variables into the "placeholder" variable. Then with each command you ADD the next variable to it (don't just use Set).
Then use \V[1] to display variable 1's content.
Your screenshot didn't work, btw. -
It seems that I can open the screenshot by copy and pasting the link into the address bar. I'll create an event with what you showed me for when I complete the tool to see if it works. Thanks!
-
The screenshot works for me.

You're not displaying the "w" variable in the text box, though -- 26 instead of 21. Is that on purpose? -
Yah it was just an example...I forgot what the w variable was so I put what I knew the number was around.
Anyways, using the line of commands posted, will it work? -
If you display the right variable, it will.
If you're adding to variable 21, use \V[21] to display it.
Still, \V[26] should have given you 0 if you hadn't put anything into it yet. Variables are always 0 by default.