How to Make a Conversational Game Using Variables

To create a conversational game using variables, copy the code below into Game Maker. For non-pro users, it is possible to use a different input box. Simply use get_string(str,def) instead of the wd_input_box function.


 * c=2//set the the "a" to the variable that the user enters.(note that "a" can be any letter or name)
 * a = wd_input_box("Enter Your name",game_end,0) //store the variable.
 * b = show_message_ext("Hi "+a+", how are you doing?","good","bad","") //a = the name. Hi + the variable + the other name. asks the user how they are and sets that variable.
 * if b = 1 {game_end}
 * if b = 2 c = b
 * if b = c c = show_message_ext("I'm sorry. can i get you a glass of ice tea?","yes!","No thanks","")
 * if c = 1 show_message("I'm a computer program, stupid!")