|
1
|
x = mypart1.x - 60;
|
|
2
|
y = mypart1.y;
|
|
3
|
if (global.mnfight == 3)
|
|
4
|
{
|
|
5
|
attacked = 0;
|
|
6
|
global.hope = 0;
|
|
7
|
}
|
|
8
|
if (alarm[5] > 0)
|
|
9
|
{
|
|
10
|
if (global.monster[0] == 1)
|
|
11
|
{
|
|
12
|
if (global.monsterinstance[0].alarm[5] >alarm[5]
|
|
13
|
alarm[5]
|
|
14
|
}
|
|
15
|
if (global.monster[1] == 1)
|
|
16
|
{
|
|
17
|
if (global.monsterinstance[1].alarm[5] >alarm[5]
|
|
18
|
alarm[5]
|
|
19
|
}
|
|
20
|
if (global.monster[2] == 1)
|
|
21
|
{
|
|
22
|
if (global.monsterinstance[2].alarm[5] >alarm[5]
|
|
23
|
alarm[5]
|
|
24
|
}
|
|
25
|
}
|
|
26
|
if (global.mnfight == 1)
|
|
27
|
{
|
|
28
|
if (talked == 0)
|
|
29
|
{
|
|
30
|
if (mypart1.specialnormal == 0)
|
|
31
|
alarm[6] = 16; gml_Object_obj_asrielb_Alarm_6.gml
blcon = instance_create(x + 120, y, obj_blconwdflowey);
gg = floor(random(3));
mycommand = round(random(100));
if (turns == 1)
{
global.msg[0] = \E1You know...Wait for input ;
global.msg[1] = \M1I \E0don't care about destroying this world anymore.Wait for inputClose MessageClose Message ;
}
if (turns == 2)
{
global.msg[0] = \E1After I defeat you and gain total control over the timeline...Wait for input ;
global.msg[1] = \E2I just want to reset everything.Wait for inputClose MessageClose Message ;
}
if (turns == 3)
{
global.msg[0] = \E3All your progress...Delay 11 Everyone's memories.Wait for input ;
global.msg[1] = \E2I'll bring them all back to zero!Wait for inputClose MessageClose Message ;
}
if (turns == 4)
global.msg[0] = \E2Then we can do everything ALL over again.Wait for inputClose MessageClose Message ;
if (turns == 5)
{
global.msg[0] = \E3And you know what the best part of all this is?Wait for input ;
global.msg[1] = \E2You'll DO it.Wait for inputClose MessageClose Message ;
}
if (turns == 6)
global.msg[0] = \E1And then you'll lose to me again.Wait for inputClose MessageClose Message ;
if (turns == 7)
global.msg[0] = \E3And again.Wait for inputClose MessageClose Message ;
if (turns == 8)
global.msg[0] = \E3And again!!!Wait for inputClose MessageClose Message ;
if (turns == 9)
global.msg[0] = \E1Because you want a "happy ending."Wait for inputClose MessageClose Message ;
if (turns == 10)
global.msg[0] = Because you "love your friends."Wait for inputClose MessageClose Message ;
if (turns == 11)
global.msg[0] = Because you "never give up."Wait for inputClose MessageClose Message ;
if (turns == 12)
{
global.msg[0] = \M1I\E1sn't that delicious?Wait for input ;
global.msg[1] = \M0Your "determination."Delay 11 The power that let you get this far...Wait for input ;
global.msg[2] = \E2It's gonna be your downfall!Wait for inputClose MessageClose Message ;
}
if (turns == 13)
{
global.msg[0] = \E2Now,Delay 11 ENOUGH messing around!Wait for input ;
global.msg[1] = It's time to purge this timeline once and for all!Wait for inputClose MessageClose Message ;
}
xx = 0;
if (turns < global.flag[504 asriel_turn_restore_point])
xx = 1;
global.typer = 86;
blconwd = instance_create(blcon.x + 25, blcon.y + 10, OBJ_NOMSCWRITER);
if (mypart1.specialnormal == 1 || turns == 0 || xx == 1)
{
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
}
global.border = 17;
if (mypart1.specialnormal == 1)
global.border = 6;
if (turns == 2 || turns == 6 || turns == 10)
global.border = 4;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8;
say = 1;
|
|
32
|
else
|
|
33
|
alarm[6] = 1; gml_Object_obj_asrielb_Alarm_6.gml
blcon = instance_create(x + 120, y, obj_blconwdflowey);
gg = floor(random(3));
mycommand = round(random(100));
if (turns == 1)
{
global.msg[0] = \E1You know...Wait for input ;
global.msg[1] = \M1I \E0don't care about destroying this world anymore.Wait for inputClose MessageClose Message ;
}
if (turns == 2)
{
global.msg[0] = \E1After I defeat you and gain total control over the timeline...Wait for input ;
global.msg[1] = \E2I just want to reset everything.Wait for inputClose MessageClose Message ;
}
if (turns == 3)
{
global.msg[0] = \E3All your progress...Delay 11 Everyone's memories.Wait for input ;
global.msg[1] = \E2I'll bring them all back to zero!Wait for inputClose MessageClose Message ;
}
if (turns == 4)
global.msg[0] = \E2Then we can do everything ALL over again.Wait for inputClose MessageClose Message ;
if (turns == 5)
{
global.msg[0] = \E3And you know what the best part of all this is?Wait for input ;
global.msg[1] = \E2You'll DO it.Wait for inputClose MessageClose Message ;
}
if (turns == 6)
global.msg[0] = \E1And then you'll lose to me again.Wait for inputClose MessageClose Message ;
if (turns == 7)
global.msg[0] = \E3And again.Wait for inputClose MessageClose Message ;
if (turns == 8)
global.msg[0] = \E3And again!!!Wait for inputClose MessageClose Message ;
if (turns == 9)
global.msg[0] = \E1Because you want a "happy ending."Wait for inputClose MessageClose Message ;
if (turns == 10)
global.msg[0] = Because you "love your friends."Wait for inputClose MessageClose Message ;
if (turns == 11)
global.msg[0] = Because you "never give up."Wait for inputClose MessageClose Message ;
if (turns == 12)
{
global.msg[0] = \M1I\E1sn't that delicious?Wait for input ;
global.msg[1] = \M0Your "determination."Delay 11 The power that let you get this far...Wait for input ;
global.msg[2] = \E2It's gonna be your downfall!Wait for inputClose MessageClose Message ;
}
if (turns == 13)
{
global.msg[0] = \E2Now,Delay 11 ENOUGH messing around!Wait for input ;
global.msg[1] = It's time to purge this timeline once and for all!Wait for inputClose MessageClose Message ;
}
xx = 0;
if (turns < global.flag[504 asriel_turn_restore_point])
xx = 1;
global.typer = 86;
blconwd = instance_create(blcon.x + 25, blcon.y + 10, OBJ_NOMSCWRITER);
if (mypart1.specialnormal == 1 || turns == 0 || xx == 1)
{
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
}
global.border = 17;
if (mypart1.specialnormal == 1)
global.border = 6;
if (turns == 2 || turns == 6 || turns == 10)
global.border = 4;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8;
say = 1;
|
|
34
|
with (mypart1)
|
|
35
|
{
|
|
36
|
if (specialnormal == 0)
|
|
37
|
{
|
|
38
|
snd_play(snd_spearappear);
|
|
39
|
s_s = 0;
|
|
40
|
if (aligncon == 0)
|
|
41
|
aligncon = 1;
|
|
42
|
}
|
|
43
|
}
|
|
44
|
if (turns == 2 || turns == 6 || turns == 10)
|
|
45
|
{
|
|
46
|
with (mypart1)
|
|
47
|
s_s = 1;
|
|
48
|
}
|
|
49
|
talked = 1;
|
|
50
|
global.heard = 0;
|
|
51
|
}
|
|
52
|
}
|
|
53
|
if (say == 1)
|
|
54
|
{
|
|
55
|
if (instance_exists(blconwd) == 0)
|
|
56
|
{
|
|
57
|
event_user(1);
|
|
58
|
say = 0;
|
|
59
|
}
|
|
60
|
}
|
|
61
|
if (global.hurtanim[myself] == 1)
|
|
62
|
{
|
|
63
|
shudder = 8;
|
|
64
|
alarm[3] = global.damagetimer; gml_Object_obj_asrielb_Alarm_3.gml
if (mypart1.pause != 1)
{
dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
global.damage = takedamage;
with (dmgwriter)
dmg = global.damage;
mypart1.pause = 1;
snd_play(snd_damage);
alarm[8] = 11;
}
if (sha == 0)
sha = x;
x = sha + shudder;
if (shudder < 0)
shudder = -(shudder + 1);
else
shudder = -shudder;
if (shudder == 0)
{
sha = 0;
global.hurtanim[myself] = 2;
exit;
}
alarm[3] = 2;
|
|
65
|
global.hurtanim[myself] = 3;
|
|
66
|
}
|
|
67
|
if (global.hurtanim[myself] == 2)
|
|
68
|
{
|
|
69
|
with (dmgwriter)
|
|
70
|
alarm[2]
|
|
71
|
if (global.monsterhp[myself] >= 1)
|
|
72
|
{
|
|
73
|
global.hurtanim[myself] = 0;
|
|
74
|
mypart1.pause = 0;
|
|
75
|
global.myfight = 0;
|
|
76
|
global.mnfight = 1;
|
|
77
|
}
|
|
78
|
else
|
|
79
|
{
|
|
80
|
global.myfight = 0;
|
|
81
|
global.mnfight = 1;
|
|
82
|
killed = 1;
|
|
83
|
instance_destroy();
|
|
84
|
}
|
|
85
|
}
|
|
86
|
if (global.hurtanim[myself] == 5)
|
|
87
|
{
|
|
88
|
global.damage = 0;
|
|
89
|
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
|
|
90
|
with (obj_dmgwriter)
|
|
91
|
alarm[2]
|
|
92
|
global.myfight = 0;
|
|
93
|
global.mnfight = 1;
|
|
94
|
global.hurtanim[myself] = 0;
|
|
95
|
}
|
|
96
|
if (global.mnfight == 2)
|
|
97
|
{
|
|
98
|
if (attacked == 0)
|
|
99
|
{
|
|
100
|
pop = scr_monstersumscr_monstersum
return global.monster[0] + global.monster[1] + global.monster[2]; ();
|
|
101
|
global.turntimer = 150;
|
|
102
|
global.firingrate = 10;
|
|
103
|
if (pop == 3)
|
|
104
|
global.firingrate = global.firingrate * 2.5;
|
|
105
|
if (pop == 2)
|
|
106
|
global.firingrate = global.firingrate * 1.8;
|
|
107
|
if (mypart1.specialnormal == 1)
|
|
108
|
{
|
|
109
|
global.turntimer = 140;
|
|
110
|
global.firingrate = 6;
|
|
111
|
gen = instance_create(0, 0, obj_1sidegen);
|
|
112
|
gen.myself = myself;
|
|
113
|
gen.dmg = 8;
|
|
114
|
if (global.hope == 1)
|
|
115
|
{
|
|
116
|
gen.dmg = 6;
|
|
117
|
global.monsteratk[myself] = 6;
|
|
118
|
}
|
|
119
|
if (global.hope == 0)
|
|
120
|
{
|
|
121
|
gen.dmg = 8;
|
|
122
|
global.monsteratk[myself] = 8;
|
|
123
|
}
|
|
124
|
gen.bullettype = 7;
|
|
125
|
}
|
|
126
|
else
|
|
127
|
{
|
|
128
|
if (turns >= 8)
|
|
129
|
mypart1.h_mode = 1;
|
|
130
|
if (turns == 0 || turns == 4 || turns == 9)
|
|
131
|
{
|
|
132
|
with (mypart1)
|
|
133
|
{
|
|
134
|
starcon = 1;
|
|
135
|
type = 0;
|
|
136
|
}
|
|
137
|
}
|
|
138
|
if (turns == 1 || turns == 3 || turns == 8 || turns == 12)
|
|
139
|
{
|
|
140
|
with (mypart1)
|
|
141
|
{
|
|
142
|
starcon = 1;
|
|
143
|
type = 1;
|
|
144
|
}
|
|
145
|
}
|
|
146
|
if (turns == 2 || turns == 6 || turns == 10)
|
|
147
|
{
|
|
148
|
with (mypart1)
|
|
149
|
{
|
|
150
|
bladecon = 1;
|
|
151
|
type = 1;
|
|
152
|
}
|
|
153
|
}
|
|
154
|
if (turns == 5 || turns == 7 || turns == 11)
|
|
155
|
{
|
|
156
|
with (mypart1)
|
|
157
|
{
|
|
158
|
guncon = 1;
|
|
159
|
type = 1;
|
|
160
|
}
|
|
161
|
}
|
|
162
|
if (turns == 13)
|
|
163
|
{
|
|
164
|
with (mypart1)
|
|
165
|
{
|
|
166
|
gonercon = 1;
|
|
167
|
type = 1;
|
|
168
|
global.hope = 2;
|
|
169
|
}
|
|
170
|
}
|
|
171
|
turns += 1;
|
|
172
|
if (global.flag[504 asriel_turn_restore_point] < turns)
|
|
173
|
global.flag[504 asriel_turn_restore_point] = turns;
|
|
174
|
}
|
|
175
|
if (turns == 0 || turns == 4)
|
|
176
|
global.msg[0] = * Asriel readies "STAR BLAZING."scr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_541") ;
|
|
177
|
if (turns == 1 || turns == 3)
|
|
178
|
global.msg[0] = * Asriel charges "SHOCKER BREAKER."scr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_542") ;
|
|
179
|
if (turns == 2 || turns == 6)
|
|
180
|
global.msg[0] = * Asriel calls on "CHAOS SABER."scr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_543") ;
|
|
181
|
if (turns == 5 || turns == 7)
|
|
182
|
global.msg[0] = * Asriel readies "CHAOS BUSTER."scr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_544") ;
|
|
183
|
if (turns == 9)
|
|
184
|
global.msg[0] = * Asriel readies "GALACTA BLAZING."scr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_545") ;
|
|
185
|
if (turns == 10)
|
|
186
|
global.msg[0] = * Asriel calls on "CHAOS SLICER."scr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_546") ;
|
|
187
|
if (turns == 8 || turns == 12)
|
|
188
|
global.msg[0] = * Asriel readies "SHOCKER BREAKER II."scr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_547") ;
|
|
189
|
if (turns == 11)
|
|
190
|
global.msg[0] = * Asriel readies "CHAOS BLASTER."scr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_548") ;
|
|
191
|
if (turns == 13)
|
|
192
|
global.msg[0] = * Asriel readies "HYPER GONER."scr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_549") ;
|
|
193
|
if (turns == 14)
|
|
194
|
global.msg[0] = * Asriel is glowing with a strange power.scr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_550") ;
|
|
195
|
if (mypart1.specialnormal == 1)
|
|
196
|
global.msg[0] = * It's the end.scr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_551") ;
|
|
197
|
attacked = 1;
|
|
198
|
}
|
|
199
|
if (mercymod == 999999)
|
|
200
|
{
|
|
201
|
global.turntimer = -1;
|
|
202
|
global.mnfight = 3;
|
|
203
|
}
|
|
204
|
whatiheard = -1;
|
|
205
|
}
|
|
206
|
if (global.myfight == 2)
|
|
207
|
{
|
|
208
|
if (whatiheard != -1)
|
|
209
|
{
|
|
210
|
if (global.heard == 0)
|
|
211
|
{
|
|
212
|
if (whatiheard == 0)
|
|
213
|
{
|
|
214
|
global.msc = 0;
|
|
215
|
if (mypart1.specialnormal == 1)
|
|
216
|
global.msg[0] = * ASRIEL DREEMURR \z4 ATK \z4 DEF * Legendary being made of every SOUL in the underground.Wait for input^scr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_585") ;
|
|
217
|
if (mypart1.specialnormal == 0)
|
|
218
|
global.msg[0] = * ASRIEL DREEMURR \z4 ATK \z4 DEF * The Absolute GOD of Hyperdeath!Wait for input^scr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_587") ;
|
|
219
|
OBJ_WRITER.halt = 3;
|
|
220
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
221
|
with (iii)
|
|
222
|
halt = 0;
|
|
223
|
whatiheard = 9;
|
|
224
|
}
|
|
225
|
if (whatiheard == 3)
|
|
226
|
{
|
|
227
|
global.msc = 0;
|
|
228
|
global.hope = 1;
|
|
229
|
global.msg[0] = * You held on to your hopes...Delay 11 * You reduced how much DAMAGE you'll take this turn!Wait for input^scr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_597") ;
|
|
230
|
if (hoped > 0)
|
|
231
|
global.msg[0] = * You kept holding on.Delay 11 * DAMAGE reduced!Wait for input^scr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_598") ;
|
|
232
|
hoped += 1;
|
|
233
|
if (global.hp < global.maxhp)
|
|
234
|
{
|
|
235
|
global.hp += 1;
|
|
236
|
snd_play(snd_heal_c);
|
|
237
|
}
|
|
238
|
OBJ_WRITER.halt = 3;
|
|
239
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
240
|
with (iii)
|
|
241
|
halt = 0;
|
|
242
|
}
|
|
243
|
if (whatiheard == 1)
|
|
244
|
{
|
|
245
|
global.msc = 0;
|
|
246
|
repeat (8)
|
|
247
|
scr_itemgetscr_itemget
i = 0;
loop = 1;
noroom = 0;
global.item[8] = 999;
while (loop == 1)
{
if (global.item[i] == 0)
{
global.item[i] = argument0;
break;
}
if (i == 8)
{
script_execute(scr_itemnospace);
break;
}
i += 1;
}
ossafe_ini_open("undertale.ini");
var bc = ini_read_real("General", "BC", 0);
if (bc < 4)
{
bc++;
ini_write_real("General", "BC", bc);
ossafe_ini_close();
ossafe_savedata_save();
}
else
{
ossafe_ini_close();
}
if (bc >= 1)
trophy_unlock("item_1");
if (bc >= 2)
trophy_unlock("item_2");
if (bc >= 3)
trophy_unlock("item_3");
if (bc >= 4)
trophy_unlock("item_4");
script_execute(scr_itemnameb);
script_execute(scr_itemname); (55);
|
|
248
|
global.msg[0] = * You think about why you're here now...Wait for inputscr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_614") ;
|
|
249
|
global.msg[1] = * You can feel the empty space in your inventory get smaller and smaller!Wait for input^scr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_615") ;
|
|
250
|
if (dreamed > 0)
|
|
251
|
global.msg[0] = * Your items fill up with dreams.Wait for input^scr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_618") ;
|
|
252
|
if (global.hp < global.maxhp)
|
|
253
|
{
|
|
254
|
global.hp += 4;
|
|
255
|
if (global.hp > global.maxhp)
|
|
256
|
global.hp = global.maxhp;
|
|
257
|
snd_play(snd_heal_c);
|
|
258
|
}
|
|
259
|
dreamed += 1;
|
|
260
|
OBJ_WRITER.halt = 3;
|
|
261
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
262
|
with (iii)
|
|
263
|
halt = 0;
|
|
264
|
}
|
|
265
|
global.heard = 1;
|
|
266
|
}
|
|
267
|
}
|
|
268
|
}
|
|
269
|
if (global.myfight == 4)
|
|
270
|
{
|
|
271
|
if (global.mercyuse == 0)
|
|
272
|
{
|
|
273
|
script_execute(scr_mercystandard);
|
|
274
|
if (mercy < 0)
|
|
275
|
instance_destroy();
|
|
276
|
}
|
|
277
|
}
|
|
278
|
if (mercymod == 222 && instance_exists(OBJ_WRITER) == 0)
|
|
279
|
{
|
|
280
|
script_execute(scr_mercystandard);
|
|
281
|
if (mercy < 0)
|
|
282
|
instance_destroy();
|
|
283
|
}
|
|
284
|
if (global.mnfight == 5)
|
|
285
|
{
|
|
286
|
if (trcon == 0)
|
|
287
|
{
|
|
288
|
blcon = instance_create(x + 120, y, obj_blconwdflowey);
|
|
289
|
global.msg[0] = \E0... even after that attack,Delay 11 you're still standing in my way...?Wait for inputscr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_669") ;
|
|
290
|
global.msg[1] = \M1W\E0ow...Delay 11 You really ARE something special.Wait for inputscr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_670") ;
|
|
291
|
global.msg[2] = \M0B\E3ut don't get cocky.Wait for inputscr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_671") ;
|
|
292
|
global.msg[3] = \E0Up until now,Delay 11 I've only been using a fraction of my REAL power!Wait for inputscr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_672") ;
|
|
293
|
global.msg[4] = \E2Let's see what good your DETERMINATION is against THIS!!Wait for inputClose MessageClose Messagescr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asrielb_673") ;
|
|
294
|
global.msc = 0;
|
|
295
|
global.typer = 68;
|
|
296
|
global.typer = 86;
|
|
297
|
blconwd = instance_create(blcon.x + 25, blcon.y + 10, OBJ_NOMSCWRITER);
|
|
298
|
trcon = 1;
|
|
299
|
}
|
|
300
|
if (trcon == 1)
|
|
301
|
{
|
|
302
|
if (instance_exists(OBJ_WRITER))
|
|
303
|
{
|
|
304
|
if (OBJ_WRITER.stringno == 1)
|
|
305
|
caster_set_volume(global.currentsong, 0.75);
|
|
306
|
if (OBJ_WRITER.stringno == 2)
|
|
307
|
caster_set_volume(global.currentsong, 0.5);
|
|
308
|
if (OBJ_WRITER.stringno == 3)
|
|
309
|
caster_set_volume(global.currentsong, 0.25);
|
|
310
|
if (OBJ_WRITER.stringno == 4)
|
|
311
|
caster_set_volume(global.currentsong, 0);
|
|
312
|
}
|
|
313
|
if (instance_exists(blconwd) == 0)
|
|
314
|
{
|
|
315
|
with (obj_asriel_body)
|
|
316
|
transform = 1;
|
|
317
|
caster_free(all);
|
|
318
|
bright = caster_load("music/sfx/sfx_spellcast.ogg");
|
|
319
|
caster_play(bright, 0.24, 0.2);
|
|
320
|
caster_play(bright, 0.24, 0.3);
|
|
321
|
caster_play(bright, 0.24, 0.4);
|
|
322
|
caster_play(bright, 0.24, 0.5);
|
|
323
|
caster_play(bright, 0.24, 0.6);
|
|
324
|
caster_play(bright, 0.24, 0.65);
|
|
325
|
shakeamt = 0;
|
|
326
|
trcon = 2;
|
|
327
|
alarm[10] = 67; gml_Object_obj_asrielb_Alarm_10.gml
trcon += 1;
|
|
328
|
with (blcon)
|
|
329
|
instance_destroy();
|
|
330
|
sw = instance_create(0, 0, obj_screenwhiter);
|
|
331
|
sw.ex = 1;
|
|
332
|
}
|
|
333
|
}
|
|
334
|
if (trcon == 2)
|
|
335
|
{
|
|
336
|
if (shakeamt < 9)
|
|
337
|
shakeamt += 0.25;
|
|
338
|
view_xview[0] = (0 + random(shakeamt)) - random(shakeamt);
|
|
339
|
view_yview[0] = (0 + random(shakeamt)) - random(shakeamt);
|
|
340
|
}
|
|
341
|
if (trcon == 3)
|
|
342
|
{
|
|
343
|
view_xview[0] = 0;
|
|
344
|
view_yview[0] = 0;
|
|
345
|
trcon = 6;
|
|
346
|
alarm[10] = 150; gml_Object_obj_asrielb_Alarm_10.gml
trcon += 1;
|
|
347
|
}
|
|
348
|
if (trcon == 7)
|
|
349
|
{
|
|
350
|
caster_free(all);
|
|
351
|
global.flag[15 in_battle] = 1;
|
|
352
|
global.battlegroup = 256;
|
|
353
|
room_restart();
|
|
354
|
}
|
|
355
|
}
|