|
1
|
function scr_teevie_quizscr_teevie_quiz
function scr_teevie_quiz(arg0)
{
var quiz_id = arg0;
var question_list = [];
var question_text = [];
var answer_a = [];
var answer_b = [];
var correct_answer = [];
var max_time_limit = [];
var question_visual = [];
switch (quiz_id)
{
case "A":
question_text[0] = stringsetloc(WHAT'S THE REWARD FOR C-RANK?"WHAT'S THE REWARD FOR C-RANK?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_24_0" );
answer_a[0] = stringsetloc(CANDY"CANDY", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_25_0" );
answer_b[0] = stringsetloc(COOLER"COOLER", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_26_0" );
correct_answer[0] = "B";
max_time_limit[0] = 240;
question_visual[0] = "none";
question_text[1] = stringsetloc(WHO RUNS THE GREEN ROOM CONCESSIONS?"WHO RUNS THE GREEN ROOM CONCESSIONS?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_31_0" );
answer_a[1] = stringsetloc(RAMB"RAMB", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_32_0" );
answer_b[1] = stringsetloc(ROMB"ROMB", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_33_0" );
correct_answer[1] = "A";
max_time_limit[1] = 240;
question_visual[1] = "none";
break;
case "B":
question_text[0] = stringsetloc(KRIS'S LAST NAME!?"KRIS'S LAST NAME!?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_39_0" );
answer_a[0] = stringsetloc(DREEMURR"DREEMURR", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_40_0" );
answer_b[0] = stringsetloc(DREEMURE"DREEMURE", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_41_0" );
correct_answer[0] = "A";
max_time_limit[0] = 180;
question_visual[0] = "none";
var board_1_flag = 1173;
var rank_1_letter = scr_get_rank_letter(board_1_flag);
var board_2_flag = 1174;
var rank_2_letter = scr_get_rank_letter(board_2_flag);
var fake_answer = (rank_1_letter == rank_2_letter) ? "B" : rank_2_letter;
if (fake_answer == rank_1_letter)
fake_answer = "C";
question_text[1] = stringsetloc(WHAT WAS YOUR RANK ON BOARD 1!?"WHAT WAS YOUR RANK ON BOARD 1!?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_60_0" );
answer_a[1] = fake_answer;
answer_b[1] = rank_1_letter;
correct_answer[1] = "B";
max_time_limit[1] = 180;
question_visual[1] = "none";
break;
case "C":
randomize();
var _question_type = irandom(3);
if (_question_type == 0)
{
_type = (irandom(100) < 50) ? 1 : 2;
var _answer_a = irandom(999);
var _answer_b = irandom(999);
if (_type == 1)
{
question_text[0] = stringsetloc(WHICH NUMBER IS BIGGER?"WHICH NUMBER IS BIGGER?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_100_0" );
answer_a[0] = string(_answer_a);
answer_b[0] = string(_answer_b);
correct_answer[0] = (_answer_a > _answer_b) ? "A" : "B";
max_time_limit[0] = 50;
question_visual[0] = "none";
}
else
{
question_text[0] = stringsetloc(WHICH NUMBER IS SMALLER?"WHICH NUMBER IS SMALLER?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_108_0" );
answer_a[0] = string(_answer_a);
answer_b[0] = string(_answer_b);
correct_answer[0] = (_answer_a < _answer_b) ? "A" : "B";
max_time_limit[0] = 50;
question_visual[0] = "none";
}
}
else if (_question_type == 1)
{
_type = (irandom(100) < 50) ? 1 : 2;
if (_type == 1)
{
question_text[0] = stringsetloc(WHAT LETTER DOES ABSORB BEGIN WITH?"WHAT LETTER DOES ABSORB BEGIN WITH?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_121_0" );
answer_a[0] = "";
answer_b[0] = "";
correct_answer[0] = "A";
max_time_limit[0] = 50;
question_visual[0] = "none";
}
else
{
question_text[0] = stringsetloc(WHAT LETTER DOES BANANA BEGIN WITH?"WHAT LETTER DOES BANANA BEGIN WITH?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_129_0" );
answer_a[0] = "";
answer_b[0] = "";
correct_answer[0] = "B";
max_time_limit[0] = 50;
question_visual[0] = "none";
}
}
else if (_question_type == 2)
{
_type = (irandom(100) < 50) ? 1 : 2;
if (_type == 1)
{
... (arg0)
|
|
2
|
{
|
|
3
|
var quiz_id = arg0;
|
|
4
|
var question_list = [];
|
|
5
|
var question_text = [];
|
|
6
|
var answer_a = [];
|
|
7
|
var answer_b = [];
|
|
8
|
var correct_answer = [];
|
|
9
|
var max_time_limit = [];
|
|
10
|
var question_visual = [];
|
|
11
|
switch (quiz_id)
|
|
12
|
{
|
|
13
|
case "A":
|
|
14
|
question_text[0] = stringsetloc(WHAT'S THE REWARD FOR C-RANK?"WHAT'S THE REWARD FOR C-RANK?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_24_0" );
|
|
15
|
answer_a[0] = stringsetloc(CANDY"CANDY", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_25_0" );
|
|
16
|
answer_b[0] = stringsetloc(COOLER"COOLER", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_26_0" );
|
|
17
|
correct_answer[0] = "B";
|
|
18
|
max_time_limit[0] = 240;
|
|
19
|
question_visual[0] = "none";
|
|
20
|
question_text[1] = stringsetloc(WHO RUNS THE GREEN ROOM CONCESSIONS?"WHO RUNS THE GREEN ROOM CONCESSIONS?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_31_0" );
|
|
21
|
answer_a[1] = stringsetloc(RAMB"RAMB", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_32_0" );
|
|
22
|
answer_b[1] = stringsetloc(ROMB"ROMB", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_33_0" );
|
|
23
|
correct_answer[1] = "A";
|
|
24
|
max_time_limit[1] = 240;
|
|
25
|
question_visual[1] = "none";
|
|
26
|
break;
|
|
27
|
case "B":
|
|
28
|
question_text[0] = stringsetloc(KRIS'S LAST NAME!?"KRIS'S LAST NAME!?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_39_0" );
|
|
29
|
answer_a[0] = stringsetloc(DREEMURR"DREEMURR", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_40_0" );
|
|
30
|
answer_b[0] = stringsetloc(DREEMURE"DREEMURE", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_41_0" );
|
|
31
|
correct_answer[0] = "A";
|
|
32
|
max_time_limit[0] = 180;
|
|
33
|
question_visual[0] = "none";
|
|
34
|
var board_1_flag = 1173;
|
|
35
|
var rank_1_letter = scr_get_rank_letterscr_get_rank_letter
function scr_get_rank_letter(arg0, arg1 = false)
{
var rank_index = scr_flag_get(arg0);
var rank_list = [stringsetloc(Z"Z", "scr_get_rank_letter_slash_scr_get_rank_letter_gml_5_5" ), stringsetloc(C"C", "scr_get_rank_letter_slash_scr_get_rank_letter_gml_5_4" ), stringsetloc(B"B", "scr_get_rank_letter_slash_scr_get_rank_letter_gml_5_3" ), stringsetloc(A"A", "scr_get_rank_letter_slash_scr_get_rank_letter_gml_5_2" ), stringsetloc(S"S", "scr_get_rank_letter_slash_scr_get_rank_letter_gml_5_1" ), stringsetloc(T"T", "scr_get_rank_letter_slash_scr_get_rank_letter_gml_5_0" )];
if (arg1)
rank_list = ["Z", "C", "B", "A", "S", "T"];
return rank_list[rank_index];
} (board_1_flag);
|
|
36
|
var board_2_flag = 1174;
|
|
37
|
var rank_2_letter = scr_get_rank_letterscr_get_rank_letter
function scr_get_rank_letter(arg0, arg1 = false)
{
var rank_index = scr_flag_get(arg0);
var rank_list = [stringsetloc(Z"Z", "scr_get_rank_letter_slash_scr_get_rank_letter_gml_5_5" ), stringsetloc(C"C", "scr_get_rank_letter_slash_scr_get_rank_letter_gml_5_4" ), stringsetloc(B"B", "scr_get_rank_letter_slash_scr_get_rank_letter_gml_5_3" ), stringsetloc(A"A", "scr_get_rank_letter_slash_scr_get_rank_letter_gml_5_2" ), stringsetloc(S"S", "scr_get_rank_letter_slash_scr_get_rank_letter_gml_5_1" ), stringsetloc(T"T", "scr_get_rank_letter_slash_scr_get_rank_letter_gml_5_0" )];
if (arg1)
rank_list = ["Z", "C", "B", "A", "S", "T"];
return rank_list[rank_index];
} (board_2_flag);
|
|
38
|
var fake_answer = (rank_1_letter == rank_2_letter) ? "B" : rank_2_letter;
|
|
39
|
if (fake_answer == rank_1_letter)
|
|
40
|
fake_answer = "C";
|
|
41
|
question_text[1] = stringsetloc(WHAT WAS YOUR RANK ON BOARD 1!?"WHAT WAS YOUR RANK ON BOARD 1!?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_60_0" );
|
|
42
|
answer_a[1] = fake_answer;
|
|
43
|
answer_b[1] = rank_1_letter;
|
|
44
|
correct_answer[1] = "B";
|
|
45
|
max_time_limit[1] = 180;
|
|
46
|
question_visual[1] = "none";
|
|
47
|
break;
|
|
48
|
case "C":
|
|
49
|
randomize();
|
|
50
|
var _question_type = irandom(3);
|
|
51
|
if (_question_type == 0)
|
|
52
|
{
|
|
53
|
_type = (irandom(100) < 50) ? 1 : 2;
|
|
54
|
var _answer_a = irandom(999);
|
|
55
|
var _answer_b = irandom(999);
|
|
56
|
if (_type == 1)
|
|
57
|
{
|
|
58
|
question_text[0] = stringsetloc(WHICH NUMBER IS BIGGER?"WHICH NUMBER IS BIGGER?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_100_0" );
|
|
59
|
answer_a[0] = string(_answer_a);
|
|
60
|
answer_b[0] = string(_answer_b);
|
|
61
|
correct_answer[0] = (_answer_a > _answer_b) ? "A" : "B";
|
|
62
|
max_time_limit[0] = 50;
|
|
63
|
question_visual[0] = "none";
|
|
64
|
}
|
|
65
|
else
|
|
66
|
{
|
|
67
|
question_text[0] = stringsetloc(WHICH NUMBER IS SMALLER?"WHICH NUMBER IS SMALLER?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_108_0" );
|
|
68
|
answer_a[0] = string(_answer_a);
|
|
69
|
answer_b[0] = string(_answer_b);
|
|
70
|
correct_answer[0] = (_answer_a < _answer_b) ? "A" : "B";
|
|
71
|
max_time_limit[0] = 50;
|
|
72
|
question_visual[0] = "none";
|
|
73
|
}
|
|
74
|
}
|
|
75
|
else if (_question_type == 1)
|
|
76
|
{
|
|
77
|
_type = (irandom(100) < 50) ? 1 : 2;
|
|
78
|
if (_type == 1)
|
|
79
|
{
|
|
80
|
question_text[0] = stringsetloc(WHAT LETTER DOES ABSORB BEGIN WITH?"WHAT LETTER DOES ABSORB BEGIN WITH?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_121_0" );
|
|
81
|
answer_a[0] = "";
|
|
82
|
answer_b[0] = "";
|
|
83
|
correct_answer[0] = "A";
|
|
84
|
max_time_limit[0] = 50;
|
|
85
|
question_visual[0] = "none";
|
|
86
|
}
|
|
87
|
else
|
|
88
|
{
|
|
89
|
question_text[0] = stringsetloc(WHAT LETTER DOES BANANA BEGIN WITH?"WHAT LETTER DOES BANANA BEGIN WITH?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_129_0" );
|
|
90
|
answer_a[0] = "";
|
|
91
|
answer_b[0] = "";
|
|
92
|
correct_answer[0] = "B";
|
|
93
|
max_time_limit[0] = 50;
|
|
94
|
question_visual[0] = "none";
|
|
95
|
}
|
|
96
|
}
|
|
97
|
else if (_question_type == 2)
|
|
98
|
{
|
|
99
|
_type = (irandom(100) < 50) ? 1 : 2;
|
|
100
|
if (_type == 1)
|
|
101
|
{
|
|
102
|
question_text[0] = stringsetloc(WHAT LETTER DOES ABSORB END WITH?"WHAT LETTER DOES ABSORB END WITH?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_142_0" );
|
|
103
|
answer_a[0] = "";
|
|
104
|
answer_b[0] = "";
|
|
105
|
correct_answer[0] = "B";
|
|
106
|
max_time_limit[0] = 50;
|
|
107
|
question_visual[0] = "none";
|
|
108
|
}
|
|
109
|
else
|
|
110
|
{
|
|
111
|
question_text[0] = stringsetloc(WHAT LETTER DOES BANANA END WITH?"WHAT LETTER DOES BANANA END WITH?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_150_0" );
|
|
112
|
answer_a[0] = "";
|
|
113
|
answer_b[0] = "";
|
|
114
|
correct_answer[0] = "A";
|
|
115
|
max_time_limit[0] = 50;
|
|
116
|
question_visual[0] = "none";
|
|
117
|
}
|
|
118
|
}
|
|
119
|
else if (_question_type == 3)
|
|
120
|
{
|
|
121
|
_type = (irandom(100) < 50) ? 1 : 2;
|
|
122
|
if (_type == 1)
|
|
123
|
{
|
|
124
|
question_text[0] = stringsetloc(WHAT LETTER DOES APPLEBABABA END WITH?"WHAT LETTER DOES APPLEBABABA END WITH?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_162_0" );
|
|
125
|
answer_a[0] = "";
|
|
126
|
answer_b[0] = "";
|
|
127
|
correct_answer[0] = "A";
|
|
128
|
max_time_limit[0] = 50;
|
|
129
|
question_visual[0] = "none";
|
|
130
|
}
|
|
131
|
else
|
|
132
|
{
|
|
133
|
question_text[0] = stringsetloc(WHAT LETTER DOES BANANABABABA BEGIN WITH?"WHAT LETTER DOES BANANABABABA BEGIN WITH?", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_170_0" );
|
|
134
|
answer_a[0] = "";
|
|
135
|
answer_b[0] = "";
|
|
136
|
correct_answer[0] = "B";
|
|
137
|
max_time_limit[0] = 50;
|
|
138
|
question_visual[0] = "none";
|
|
139
|
}
|
|
140
|
}
|
|
141
|
var _type = (irandom(100) < 50) ? 1 : 2;
|
|
142
|
if (_type == 1)
|
|
143
|
{
|
|
144
|
question_text[1] = stringsetloc(CHOOSE A!"CHOOSE A!", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_182_0" );
|
|
145
|
answer_a[1] = "";
|
|
146
|
answer_b[1] = "";
|
|
147
|
correct_answer[1] = "A";
|
|
148
|
max_time_limit[1] = 40;
|
|
149
|
question_visual[1] = "none";
|
|
150
|
}
|
|
151
|
else
|
|
152
|
{
|
|
153
|
question_text[1] = stringsetloc(CHOOSE B!"CHOOSE B!", "scr_teevie_quiz_slash_scr_teevie_quiz_gml_190_0" );
|
|
154
|
answer_a[1] = "";
|
|
155
|
answer_b[1] = "";
|
|
156
|
correct_answer[1] = "B";
|
|
157
|
max_time_limit[1] = 40;
|
|
158
|
question_visual[1] = "none";
|
|
159
|
}
|
|
160
|
break;
|
|
161
|
}
|
|
162
|
for (var i = 0; i < array_length_1d(question_text); i++)
|
|
163
|
question_list[i] = new teevie_quiz_question(question_text[i], answer_a[i], answer_b[i], correct_answer[i], max_time_limit[i], question_visual[i]);
|
|
164
|
return question_list;
|
|
165
|
}
|
|
166
|
|
|
167
|
function teevie_quiz_question(arg0, arg1, arg2, arg3, arg4, arg5) constructor
|
|
168
|
{
|
|
169
|
question_text = arg0;
|
|
170
|
answer_a = arg1;
|
|
171
|
answer_b = arg2;
|
|
172
|
correct_answer = arg3;
|
|
173
|
max_time_limit = arg4;
|
|
174
|
question_visual = arg5;
|
|
175
|
}
|