|
1
|
if (con < 400)
|
|
2
|
{
|
|
3
|
if (con == 1 && __view_get(e__VW.XView, 0) >= (xx - 13) && __view_get(e__VW.XView, 0) <= (xx + 20) && global.interact == 0)
|
|
4
|
{
|
|
5
|
__view_set(e__VW.XView, 0, xx - 10);
|
|
6
|
global.interact = 1;
|
|
7
|
con = 40;
|
|
8
|
global.msc = 135;
|
|
9
|
scr_textscr_text
function scr_text(arg0)
{
switch (arg0)
{
case 0:
break;
case 10:
global.choicemsg[1] = ;
global.choicemsg[0] = ;
global.choicemsg[2] = " ";
global.choicemsg[3] = " ";
global.msg[0] = * You really didn't want to throw it away.Wait for input ;
global.msg[1] = * Throw it away anyway?Wait for input ;
global.msg[2] = ;
break;
case 11:
if (global.choice == 0)
{
global.msg[0] = * You felt a feeling of relief.Wait for inputClose Message ;
}
else
{
global.msg[0] = * Hand shaking,Delay 11 you dropped the ball of junk on the ground.Wait for input ;
global.msg[1] = * It broke into pieces.Wait for input ;
global.msg[2] = * You felt bitter.Wait for inputClose Message ;
script_execute(scr_litemshift, global.menucoord[1], 0);
for (i = 0; i < 12; i += 1)
{
global.item[i] = 0;
global.weapon[i] = 0;
global.armor[i] = 0;
}
}
break;
case 100:
global.msg[0] = * Hey, Kris!Delay 11 What's up?Delay 11 * Didja lose your pencil again?Wait for input ;
global.msg[1] = Face 4* Here,Delay 11 you want the candy-cane one or the one with lights on it?Wait for input ;
global.msg[2] = Face 1* Huh?Delay 11 * You want to be partners?Wait for input ;
global.msg[3] = Face 4* Ummm...Delay 11 Sorry...Delay 11 * Berdly already asked me...Wait for input ;
global.msg[4] = Face 0* But I could ask Ms. Alphys if we could make a group of 3!Wait for input ;
global.msg[5] = Face 4* I'll ask if you're sure!
Not yet Yes. Ask.Choice type 1 ;
global.msg[6] = " ";
break;
case 101:
if (global.choice == 1)
{
global.msg[0] = Face 0* OK,Delay 11 I'll ask!Wait for input ;
global.msg[1] = * Miss Alphys!Delay 11 * Umm,Delay 11 is it OK if we have a group of 3?Wait for inputClose Message ;
with (obj_classscene)
con = 20;
}
if (global.choice == 0)
global.msg[0] = Face 4* Yeah,Delay 11 I'm sure there's someone else you can ask!Wait for inputClose Message ;
break;
case 102:
global.msg[0] = Face 0* Do you wanna be partners? Not yet YesChoice type 1 ;
global.msg[1] = " ";
break;
case 103:
if (global.choice == 1)
{
global.msg[0] = Face 0* OK,Delay 11 I'll ask!Wait for input ;
global.msg[1] = * Miss Alphys!Delay 11 * Umm,Delay 11 is it OK if we have a group of 3?Wait for inputClose Message ;
with (obj_classscene)
con = 20;
}
if (global.choice == 0)
global.msg[0] = Face 4* Umm,Delay 11 OK.Delay 11 * You just keep doing your thing,Delay 11 Kris.Wait for inputClose Message ;
break;
case 104:
global.msg[0] = Face 0* Alright.Delay 11 * Let's get this over with.Wait for input ;
global.msg[1] = * We'll get more chalk.Delay 11 * Mosey back to class.Delay 11 * And then,Delay 11 Kris...Wait for input ;
global.msg[2] = Face 2* YOU'LL do our project.Wait for input ;
global.msg[3] = * How's that sound?
Good BadChoice type 1 ;
global.msg[4] = " ";
break;
case 105:
global.msg[0] = " %%";
break;
case 110:
global.choicemsg[0] = ;
global.choicemsg[1] = ;
global.choicemsg[2] = " ";
global.choicemsg[3] = " ";
if (global.flag[100 got_glowshard] == 0)
{
global.msg[0] = * (There's something glowing inside.)Wait for input ;
global.msg[1] = * (Take it?)Wait for input ;
global.msg[2] = ;
}
else
{
global.msg[0] = * (It's dark inside.)Wait for inputClose Message ;
}
break;
case 111:
if (global.choice == 0)
{
global.msg[0] = * (You got the Glowshard.)Wait for inputClose Message ;
global.flag[100 got_glowshard] = 1;
scr_itemget(3);
... (global.msc);
|
|
10
|
global.fe = 3;
|
|
11
|
global.typer = 31;
|
|
12
|
global.fc = 2;
|
|
13
|
instance_create(0, 0, obj_dialoguer);
|
|
14
|
}
|
|
15
|
if (con == 20 && d_ex() == 0)
|
|
16
|
{
|
|
17
|
global.encounterno = 3;
|
|
18
|
global.specialbattle = 3;
|
|
19
|
global.flag[9 battle_music] = 1;
|
|
20
|
global.batmusic[0] = snd_init("battle.ogg");
|
|
21
|
instance_create(0, 0, obj_encounterbasic);
|
|
22
|
con = 21;
|
|
23
|
alarm[4] = 10; gml_Object_obj_tutorialbattleevent_Alarm_4.gml
con += 1;
|
|
24
|
}
|
|
25
|
if (con == 22)
|
|
26
|
{
|
|
27
|
if (instance_exists(obj_battlecontroller))
|
|
28
|
{
|
|
29
|
with (dummy)
|
|
30
|
visible = 0;
|
|
31
|
con = 23;
|
|
32
|
}
|
|
33
|
}
|
|
34
|
if (con == 23)
|
|
35
|
{
|
|
36
|
if (instance_exists(obj_endbattle))
|
|
37
|
{
|
|
38
|
con = 23.5;
|
|
39
|
alarm[4] = 20; gml_Object_obj_tutorialbattleevent_Alarm_4.gml
con += 1;
|
|
40
|
}
|
|
41
|
}
|
|
42
|
if (con >= 24 && con <= 28)
|
|
43
|
global.interact = 1;
|
|
44
|
if (con == 24.5)
|
|
45
|
{
|
|
46
|
con = 24;
|
|
47
|
alarm[4] = 4; gml_Object_obj_tutorialbattleevent_Alarm_4.gml
con += 1;
|
|
48
|
}
|
|
49
|
if (con == 25)
|
|
50
|
{
|
|
51
|
con = 26;
|
|
52
|
alarm[4] = 4; gml_Object_obj_tutorialbattleevent_Alarm_4.gml
con += 1;
|
|
53
|
}
|
|
54
|
if (con == 27)
|
|
55
|
{
|
|
56
|
global.fc = 2;
|
|
57
|
global.fe = 0;
|
|
58
|
global.typer = 31;
|
|
59
|
global.msg[0] = Face 8* Oh,Delay 11 that was fun!Delay 11 * You're a wonderful student,Delay 11 Kris!Wait for input ;
|
|
60
|
global.msg[1] = Face 1* ... and,Delay 11 er,Delay 11 in case you ever need a refresher, I...Wait for input ;
|
|
61
|
global.msg[2] = Face 8* Here!Delay 11 * I wrote a Manual for you and Susie!Wait for input ;
|
|
62
|
global.msg[3] = + scr_get_input_namescr_get_input_name
function scr_get_input_name(arg0)
{
var _control = "[?]";
if (global.is_console || obj_gamecontroller.gamepad_active)
{
_control = global.input_g[arg0];
if (_control == gp_padr)
return "\\*D ";
if (_control == gp_padl)
return "\\*A ";
if (_control == global.button0)
return "\\*Z ";
if (_control == global.button1)
return "\\*X ";
if (_control == global.button2)
return "\\*C ";
}
var left_bracket = (global.lang == "en") ? "[" : "[";
var right_bracket = (global.lang == "en") ? "]" : "]";
_control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket;
if (!is_string(_control))
_control = "[?]";
else
return _control;
} (6) + to open the menu and use it in your ITEMS.Wait for input ;
|
|
63
|
scr_nofacescr_noface
function scr_noface(arg0)
{
global.msg[arg0] = Sound X Char 0 Sound 0 Close Message ;
} (4);
|
|
64
|
global.msg[5] = * (You got the Manual.)Wait for inputClose Message ;
|
|
65
|
if (global.flag[205 tutorial_end] >= 4)
|
|
66
|
{
|
|
67
|
global.msg[0] = Face 6* Sorry,Delay 11 Kris.Delay 11 I'll try to be a better teacher next time.Wait for input ;
|
|
68
|
global.msg[1] = Face 1* ... Actually,Delay 11 umm,Delay 11 if you prefer to read,Delay 11 instead...Wait for input ;
|
|
69
|
}
|
|
70
|
instance_create(0, 0, obj_dialoguer);
|
|
71
|
scr_itemgetscr_itemget
function scr_itemget(arg0)
{
i = 0;
loop = 1;
noroom = 0;
global.item[12] = 999;
while (loop == 1)
{
if (global.item[i] == 0)
{
global.item[i] = arg0;
break;
}
if (i == 12)
{
noroom = 1;
break;
}
i += 1;
}
script_execute(scr_iteminfo_all);
} (4);
|
|
72
|
con = 28;
|
|
73
|
}
|
|
74
|
if (con == 28 && d_ex() == 0)
|
|
75
|
{
|
|
76
|
global.interact = 0;
|
|
77
|
if (global.plot < 31)
|
|
78
|
global.plot = 31;
|
|
79
|
con = 29;
|
|
80
|
instance_destroy();
|
|
81
|
}
|
|
82
|
if (con == 40 && d_ex() == 0)
|
|
83
|
{
|
|
84
|
scr_itemgetscr_itemget
function scr_itemget(arg0)
{
i = 0;
loop = 1;
noroom = 0;
global.item[12] = 999;
while (loop == 1)
{
if (global.item[i] == 0)
{
global.item[i] = arg0;
break;
}
if (i == 12)
{
noroom = 1;
break;
}
i += 1;
}
script_execute(scr_iteminfo_all);
} (4);
|
|
85
|
con = 41;
|
|
86
|
if (global.plot < 31)
|
|
87
|
global.plot = 31;
|
|
88
|
global.interact = 0;
|
|
89
|
instance_destroy();
|
|
90
|
}
|
|
91
|
}
|
|
92
|
|
|
93
|
enum e__VW
|
|
94
|
{
|
|
95
|
XView,
|
|
96
|
YView,
|
|
97
|
WView,
|
|
98
|
HView,
|
|
99
|
Angle,
|
|
100
|
HBorder,
|
|
101
|
VBorder,
|
|
102
|
HSpeed,
|
|
103
|
VSpeed,
|
|
104
|
Object,
|
|
105
|
Visible,
|
|
106
|
XPort,
|
|
107
|
YPort,
|
|
108
|
WPort,
|
|
109
|
HPort,
|
|
110
|
Camera,
|
|
111
|
SurfaceID
|
|
112
|
}
|