How to Make a Conversational Game Using Variables
From YoYoGames Wiki
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 tey 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!")
just copy and paste the above material in your game!
This only works with the pro edition of gamemaker, with the windows dialogs extention package.
It is possible to use a different input box, availiable for non pro users, insead of the wd_input_box function however. (get_string)

