In text boxes, what's the command for variables? I want it to show a specific number depending on what number a certain variable is. To put it another way, how do I get to show the number of a certain variable in a text box?
(PS:I sincerely apologize if you have no idea what I'm talking about.)
Help With Variables
Moderators: marionline, SDHawk
I'll try to help you out!
So when you're editing a text box, it brings up a run-down of various codes you can type in the textbox to represent different values. To represent a variable's value, you're going to want to type "${V#}" where # is the global variable ID number. This means in the .hss file for your game, there should be a line saying "global variable(#, name)" to name that variable. Then later on in the .hss file, that variable needs to be set to some value (eg. "name := party money" will store the money you have in variable "name").
Does that answer the problem or is there something else you need troubleshooting with?
So when you're editing a text box, it brings up a run-down of various codes you can type in the textbox to represent different values. To represent a variable's value, you're going to want to type "${V#}" where # is the global variable ID number. This means in the .hss file for your game, there should be a line saying "global variable(#, name)" to name that variable. Then later on in the .hss file, that variable needs to be set to some value (eg. "name := party money" will store the money you have in variable "name").
Does that answer the problem or is there something else you need troubleshooting with?
- Attachments
-
- These codes here
- Screen Shot 2017-12-18 at 12.16.09 PM.png (28.79 KiB) Viewed 535 times
My pronouns are they/them
Ps. I love my wife
Ps. I love my wife