This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
i need to create a dialog that will retrieve how much minerals a player wants to spend to buy something.
I need to retrieve the number they entered from the edit box after they click a button. Help or suggestions would be awesome ty :)
Hello Hellzthunder this is rather easy once you know what to do.
First, you will want to save the edit box to a variable of type "dialog item" so you can always call it.
Then to get the number from it, in the trigger that needs it, make a local var of type INT. in that var set its value to
Type: Conversion -> String to Int
Then for the string, you want the function "dialog item edit value"
@Molsterr: Go
ah that is quick and simple. Tyvm :)
i need to create a dialog that will retrieve how much minerals a player wants to spend to buy something.
I need to retrieve the number they entered from the edit box after they click a button. Help or suggestions would be awesome ty :)
Hello Hellzthunder this is rather easy once you know what to do.
First, you will want to save the edit box to a variable of type "dialog item" so you can always call it.
Then to get the number from it, in the trigger that needs it, make a local var of type INT. in that var set its value to
Type: Conversion -> String to Int
Then for the string, you want the function "dialog item edit value"
@Molsterr: Go
ah that is quick and simple. Tyvm :)