I sent this in a PM to you, but it might be helpful for other people, so I will post it here.
- Code: Select all
message = show_message_ext( "What do you want to say?" , "Hi" , "Hello" , "Bye");
if message = 1
{
Do something;
}
else if message = 2
{
Do another something;
}
else if message = 3
{
Do something different;
}
EXPLANATION!!!
message = show message_ext( "What do you want to say?" , "Hi" , "Hello" , "Bye")
"message" is the variable. "show_message_ext" is the function.
""What do you want to say?"" is what the message box will show (the question).
""Hi"" is what the first button will say. ""Hello"" is what the second button will say. ""Bye"" is what the third button will say.
---
if message = 1
{
Do something;
}
If the variable "message" is equal to one (i.e. you chose the first button), then do something.
---
if message = 2
{
Do another something;
}
If the variable "message" is equal to two (i.e. you chose the second button), then do another something.
---
if message = 3
{
Do something different;
}
If the variable "message" is equal to three (i.e. you chose the first button), then do something different.
---
Oh, change the "Do something" with what you want to happen if the player hits that button.
Hope this helps!!!!