Mr Awesome
Member
Hello
I wanted to choose a random string (of which there are three) stored in an array to appear in one of three speech bubbles (obj_quiz_answer_A,obj_quiz_answer_B,obj_quiz_answer_C,) then, the next bubble will choose one of the remaining strings and the final bubble will have the last string. Without covering every stipulation, could anyone explain an easier way to do this?
This is the code I have so far in the draw event:
Thanks in advance
I wanted to choose a random string (of which there are three) stored in an array to appear in one of three speech bubbles (obj_quiz_answer_A,obj_quiz_answer_B,obj_quiz_answer_C,) then, the next bubble will choose one of the remaining strings and the final bubble will have the last string. Without covering every stipulation, could anyone explain an easier way to do this?
This is the code I have so far in the draw event:
Code:
if question=1{//Switch
draw_set_color(c_purple);
draw_set_font(fnt_score);
draw_text(obj_quiz_speech_bubble.x,obj_quiz_speech_bubble.y,quizarray[0,0])
draw_set_color(c_red);
draw_text(obj_quiz_answer_A.x,obj_quiz_answer_A.y,quizarray[0,1])//I want this to choose 0,1 or 0,2 or 0,3
draw_set_color(c_orange);
draw_text(obj_quiz_answer_B.x,obj_quiz_answer_B.y,quizarray[0,2])//Then this to choose from 2 options depending on what quiz_answer_A chose
draw_set_color(c_green);
draw_text(obj_quiz_answer_C.x,obj_quiz_answer_C.y,quizarray[0,3])//Defaults to last option
}