Something went wrong. Try again.
Example for an easy dialog system with many features for use in GameMaker:Studio
Something went wrong. Try again.
835 B · 23 lines
at master
123456789101112131415161718192021222324///dialog_from_array(start[, end]);/*argument0: first -> The first message to write (Real)argument1: last -> The last message to write (Real)
Outputs dialog from the message array of an object, as createdby the dialog_import() script. The number of the message is the sameas the one in the file (the number from m#)End is inclusive. Leave it out to output only the first message.*/var first = argument[0], last = argument[0], i;if(argument_count == 2) { last = argument[1];}for(i = first; i < last + 1; i++) { if(message[i, 4] == "m") { dialog_msg(message[i, 0], message[i, 1], message[i, 2], message[i, 3]); } else if(message[i, 4] == "q") { dialog_question(message[i, 0], message[i, 1]); } else if(message[i, 4] == "i") { dialog_input(message[i, 0], message[i, 1]); }}