|
1
|
if (global.mnfight == 3)
|
|
2
|
{
|
|
3
|
attacked = 0;
|
|
4
|
sideface = 0;
|
|
5
|
}
|
|
6
|
if (alarm[5] > 0)
|
|
7
|
{
|
|
8
|
if (global.monster[0] == 1)
|
|
9
|
{
|
|
10
|
if (global.monsterinstance[0].alarm[5] > alarm[5]) gml_Object_obj_torielboss_Alarm_5.gml
if (instance_exists(OBJ_NOMSCWRITER))
{
with (blconwd)
instance_destroy();
}
if (instance_exists(obj_blconsm))
{
with (blcon)
instance_destroy();
}
if (instance_exists(obj_blconwdflowey))
{
with (obj_blconwdflowey)
instance_destroy();
}
talked = 0;
whatiheard = -1;
global.mnfight = 2;
if (mycommand < 40 || global.hp < 3)
global.border = 7;
|
|
11
|
alarm[5] = global.monsterinstance[0].alarm[5]; gml_Object_obj_torielboss_Alarm_5.gml
if (instance_exists(OBJ_NOMSCWRITER))
{
with (blconwd)
instance_destroy();
}
if (instance_exists(obj_blconsm))
{
with (blcon)
instance_destroy();
}
if (instance_exists(obj_blconwdflowey))
{
with (obj_blconwdflowey)
instance_destroy();
}
talked = 0;
whatiheard = -1;
global.mnfight = 2;
if (mycommand < 40 || global.hp < 3)
global.border = 7;
|
|
12
|
}
|
|
13
|
if (global.monster[1] == 1)
|
|
14
|
{
|
|
15
|
if (global.monsterinstance[1].alarm[5] > alarm[5]) gml_Object_obj_torielboss_Alarm_5.gml
if (instance_exists(OBJ_NOMSCWRITER))
{
with (blconwd)
instance_destroy();
}
if (instance_exists(obj_blconsm))
{
with (blcon)
instance_destroy();
}
if (instance_exists(obj_blconwdflowey))
{
with (obj_blconwdflowey)
instance_destroy();
}
talked = 0;
whatiheard = -1;
global.mnfight = 2;
if (mycommand < 40 || global.hp < 3)
global.border = 7;
|
|
16
|
alarm[5] = global.monsterinstance[1].alarm[5]; gml_Object_obj_torielboss_Alarm_5.gml
if (instance_exists(OBJ_NOMSCWRITER))
{
with (blconwd)
instance_destroy();
}
if (instance_exists(obj_blconsm))
{
with (blcon)
instance_destroy();
}
if (instance_exists(obj_blconwdflowey))
{
with (obj_blconwdflowey)
instance_destroy();
}
talked = 0;
whatiheard = -1;
global.mnfight = 2;
if (mycommand < 40 || global.hp < 3)
global.border = 7;
|
|
17
|
}
|
|
18
|
if (global.monster[2] == 1)
|
|
19
|
{
|
|
20
|
if (global.monsterinstance[2].alarm[5] > alarm[5]) gml_Object_obj_torielboss_Alarm_5.gml
if (instance_exists(OBJ_NOMSCWRITER))
{
with (blconwd)
instance_destroy();
}
if (instance_exists(obj_blconsm))
{
with (blcon)
instance_destroy();
}
if (instance_exists(obj_blconwdflowey))
{
with (obj_blconwdflowey)
instance_destroy();
}
talked = 0;
whatiheard = -1;
global.mnfight = 2;
if (mycommand < 40 || global.hp < 3)
global.border = 7;
|
|
21
|
alarm[5] = global.monsterinstance[2].alarm[5]; gml_Object_obj_torielboss_Alarm_5.gml
if (instance_exists(OBJ_NOMSCWRITER))
{
with (blconwd)
instance_destroy();
}
if (instance_exists(obj_blconsm))
{
with (blcon)
instance_destroy();
}
if (instance_exists(obj_blconwdflowey))
{
with (obj_blconwdflowey)
instance_destroy();
}
talked = 0;
whatiheard = -1;
global.mnfight = 2;
if (mycommand < 40 || global.hp < 3)
global.border = 7;
|
|
22
|
}
|
|
23
|
}
|
|
24
|
if (global.mnfight == 1)
|
|
25
|
{
|
|
26
|
if (talked == 0)
|
|
27
|
{
|
|
28
|
if (global.monsterhp[myself] > 0)
|
|
29
|
alarm[5] = 15; gml_Object_obj_torielboss_Alarm_5.gml
if (instance_exists(OBJ_NOMSCWRITER))
{
with (blconwd)
instance_destroy();
}
if (instance_exists(obj_blconsm))
{
with (blcon)
instance_destroy();
}
if (instance_exists(obj_blconwdflowey))
{
with (obj_blconwdflowey)
instance_destroy();
}
talked = 0;
whatiheard = -1;
global.mnfight = 2;
if (mycommand < 40 || global.hp < 3)
global.border = 7;
|
|
30
|
if (mercymod == -49)
|
|
31
|
alarm[5] = 400; gml_Object_obj_torielboss_Alarm_5.gml
if (instance_exists(OBJ_NOMSCWRITER))
{
with (blconwd)
instance_destroy();
}
if (instance_exists(obj_blconsm))
{
with (blcon)
instance_destroy();
}
if (instance_exists(obj_blconwdflowey))
{
with (obj_blconwdflowey)
instance_destroy();
}
talked = 0;
whatiheard = -1;
global.mnfight = 2;
if (mycommand < 40 || global.hp < 3)
global.border = 7;
|
|
32
|
alarm[6] = 2; gml_Object_obj_torielboss_Alarm_6.gml
if (hplastturn == global.monsterhp[myself] && global.talked == -1)
{
conversation += 1;
iwilltalk = 1;
}
else
{
iwilltalk = 0;
}
hplastturn = global.monsterhp[myself];
if (global.monsterhp[myself] > 0)
{
if (iwilltalk == 1)
{
global.turntimer = -300;
alarm[5] += 70;
if (conversation == 1)
global.msg[0] = ;
if (conversation == 2)
global.msg[0] = ;
if (conversation == 3)
global.msg[0] = ;
if (conversation == 4)
global.msg[0] = ;
if (conversation == 5)
global.msg[0] = ;
if (conversation == 6)
global.msg[0] = ;
if (conversation == 7)
global.msg[0] = What are you proving this way? ;
if (conversation == 8)
global.msg[0] = ;
if (conversation == 9)
global.msg[0] = ;
if (conversation == 10)
sideface = 1;
if (conversation == 10)
global.msg[0] = Stop looking at me that way. ;
if (conversation == 11)
global.msg[0] = ;
if (conversation == 12)
global.msg[0] = ;
if (conversation == 12)
sprite_index = spr_torielboss_side;
if (conversation == 13)
global.msg[0] = ;
if (conversation == 13)
sprite_index = spr_torielboss_sidesad;
if (conversation > 13)
{
alarm[5] += 400;
if (conversation == 14)
caster_free(global.batmusic);
global.mercy = 1;
if (conversation == 14)
sprite_index = spr_torielboss_sad;
if (conversation == 14)
global.msg[0] = I know you want to go home,Delay 11 but... ;
if (conversation > 15)
sprite_index = spr_torielboss_sadhappy;
if (conversation == 15)
global.msg[0] = But please... go upstairs now. ;
if (conversation == 16)
global.msg[0] = I promise I will take good care of you here. ;
if (conversation == 17)
global.msg[0] = I know we do not have much,Delay 11 but... ;
if (conversation == 18)
global.msg[0] = We can have a good life here. ;
if (conversation == 19)
sprite_index = spr_torielboss_sad;
if (conversation == 19)
global.msg[0] = Why are you making this so difficult? ;
if (conversation == 20)
sprite_index = spr_torielboss_sidesad;
if (conversation == 20)
global.msg[0] = Please,Delay 11 go upstairs. ;
if (conversation == 21)
sprite_index = spr_torielboss_sidesad2;
if (conversation == 21)
global.msg[0] = ;
if (conversation == 22)
sprite_index = spr_torielboss_sidesadhappy;
if (conversation == 22)
global.msg[0] = ;
if (conversation == 23)
global.msg[0] = Pathetic,Delay 11 is it not?Delay 22 I cannot save even a single child. ;
if (conversation == 24)
global.msg[0] = ;
if (conversation == 24)
sprite_index = spr_torielboss_sidesad;
if (conversation == 25)
{
global.flag[27 spared_specific] = 1;
sprite_index = spr_torielboss_neutral;
alarm[5] = -6;
conversation = 99;
global.flag[45 status_toriel] = 5;
ossafe_ini_open("undertale.ini");
TS = ini_read_real("Toriel", "TS", 0);
ini_write_real("Toriel", "TS", TS + 1);
ossafe_ini_close();
...
|
|
33
|
talked = 1;
|
|
34
|
global.heard = 0;
|
|
35
|
}
|
|
36
|
}
|
|
37
|
if (control_check_pressed(0))
|
|
38
|
{
|
|
39
|
if (conversation < 13)
|
|
40
|
{
|
|
41
|
if (alarm[5] > 5 && obj_lborder.x == global.idealborder[0] && alarm[6] < 0) gml_Object_obj_torielboss_Alarm_6.gml
if (hplastturn == global.monsterhp[myself] && global.talked == -1)
{
conversation += 1;
iwilltalk = 1;
}
else
{
iwilltalk = 0;
}
hplastturn = global.monsterhp[myself];
if (global.monsterhp[myself] > 0)
{
if (iwilltalk == 1)
{
global.turntimer = -300;
alarm[5] += 70;
if (conversation == 1)
global.msg[0] = ;
if (conversation == 2)
global.msg[0] = ;
if (conversation == 3)
global.msg[0] = ;
if (conversation == 4)
global.msg[0] = ;
if (conversation == 5)
global.msg[0] = ;
if (conversation == 6)
global.msg[0] = ;
if (conversation == 7)
global.msg[0] = What are you proving this way? ;
if (conversation == 8)
global.msg[0] = ;
if (conversation == 9)
global.msg[0] = ;
if (conversation == 10)
sideface = 1;
if (conversation == 10)
global.msg[0] = Stop looking at me that way. ;
if (conversation == 11)
global.msg[0] = ;
if (conversation == 12)
global.msg[0] = ;
if (conversation == 12)
sprite_index = spr_torielboss_side;
if (conversation == 13)
global.msg[0] = ;
if (conversation == 13)
sprite_index = spr_torielboss_sidesad;
if (conversation > 13)
{
alarm[5] += 400;
if (conversation == 14)
caster_free(global.batmusic);
global.mercy = 1;
if (conversation == 14)
sprite_index = spr_torielboss_sad;
if (conversation == 14)
global.msg[0] = I know you want to go home,Delay 11 but... ;
if (conversation > 15)
sprite_index = spr_torielboss_sadhappy;
if (conversation == 15)
global.msg[0] = But please... go upstairs now. ;
if (conversation == 16)
global.msg[0] = I promise I will take good care of you here. ;
if (conversation == 17)
global.msg[0] = I know we do not have much,Delay 11 but... ;
if (conversation == 18)
global.msg[0] = We can have a good life here. ;
if (conversation == 19)
sprite_index = spr_torielboss_sad;
if (conversation == 19)
global.msg[0] = Why are you making this so difficult? ;
if (conversation == 20)
sprite_index = spr_torielboss_sidesad;
if (conversation == 20)
global.msg[0] = Please,Delay 11 go upstairs. ;
if (conversation == 21)
sprite_index = spr_torielboss_sidesad2;
if (conversation == 21)
global.msg[0] = ;
if (conversation == 22)
sprite_index = spr_torielboss_sidesadhappy;
if (conversation == 22)
global.msg[0] = ;
if (conversation == 23)
global.msg[0] = Pathetic,Delay 11 is it not?Delay 22 I cannot save even a single child. ;
if (conversation == 24)
global.msg[0] = ;
if (conversation == 24)
sprite_index = spr_torielboss_sidesad;
if (conversation == 25)
{
global.flag[27 spared_specific] = 1;
sprite_index = spr_torielboss_neutral;
alarm[5] = -6;
conversation = 99;
global.flag[45 status_toriel] = 5;
ossafe_ini_open("undertale.ini");
TS = ini_read_real("Toriel", "TS", 0);
ini_write_real("Toriel", "TS", TS + 1);
ossafe_ini_close();
...
|
|
42
|
alarm[5] = 2; gml_Object_obj_torielboss_Alarm_5.gml
if (instance_exists(OBJ_NOMSCWRITER))
{
with (blconwd)
instance_destroy();
}
if (instance_exists(obj_blconsm))
{
with (blcon)
instance_destroy();
}
if (instance_exists(obj_blconwdflowey))
{
with (obj_blconwdflowey)
instance_destroy();
}
talked = 0;
whatiheard = -1;
global.mnfight = 2;
if (mycommand < 40 || global.hp < 3)
global.border = 7;
|
|
43
|
}
|
|
44
|
if (conversation >= 13 && conversation != 99)
|
|
45
|
{
|
|
46
|
if (instance_exists(OBJ_NOMSCWRITER))
|
|
47
|
{
|
|
48
|
if (OBJ_NOMSCWRITER.stringpos >= string_length(OBJ_NOMSCWRITER.mystring[0]))
|
|
49
|
alarm[5] = 2; gml_Object_obj_torielboss_Alarm_5.gml
if (instance_exists(OBJ_NOMSCWRITER))
{
with (blconwd)
instance_destroy();
}
if (instance_exists(obj_blconsm))
{
with (blcon)
instance_destroy();
}
if (instance_exists(obj_blconwdflowey))
{
with (obj_blconwdflowey)
instance_destroy();
}
talked = 0;
whatiheard = -1;
global.mnfight = 2;
if (mycommand < 40 || global.hp < 3)
global.border = 7;
|
|
50
|
}
|
|
51
|
}
|
|
52
|
}
|
|
53
|
if (global.hurtanim[myself] == 1)
|
|
54
|
{
|
|
55
|
shudder = 16;
|
|
56
|
alarm[3] = global.damagetimer; gml_Object_obj_torielboss_Alarm_3.gml
x = xstart;
if (sprite_index != spr_torielboss_hurt && sprite_index != spr_torielboss_reallyhurt && sprite_index != spr_torielboss_murdered)
{
if (shudder == 16 || shudder == 32)
{
dmgwriter = instance_create(x, y - 20, obj_dmgwriter);
global.damage = takedamage;
with (dmgwriter)
dmg = global.damage;
if (conversation < 4)
conversation = 0;
}
sprite_index = spr_torielboss_hurt;
if (global.damage > 100)
{
sprite_index = spr_torielboss_reallyhurt;
caster_set_volume(global.batmusic, 0);
}
if (global.damage > 100 && conversation > 13)
sprite_index = spr_torielboss_murdered;
if (global.flag[202 kills_ruins] >= 20)
sprite_index = spr_torielboss_murdered;
snd_play(hurtsound);
}
x += shudder;
if (shudder < 0)
shudder = -(shudder + 2);
else
shudder = -shudder;
shudder -= 2;
if (shudder == 0)
{
global.hurtanim[myself] = 2;
exit;
}
alarm[3] = 2;
if (global.damage > 100)
alarm[3] = 3;
|
|
57
|
if (global.damage > 100)
|
|
58
|
shudder = 32;
|
|
59
|
global.hurtanim[myself] = 3;
|
|
60
|
}
|
|
61
|
if (global.hurtanim[myself] == 2)
|
|
62
|
{
|
|
63
|
global.monsterhp[myself] -= takedamage;
|
|
64
|
with (dmgwriter)
|
|
65
|
alarm[2] = 15; gml_Object_obj_torielboss_Alarm_2.gml
obj_heart.x = -200;
global.border = 0;
|
|
66
|
if (global.damage > 100)
|
|
67
|
{
|
|
68
|
with (dmgwriter)
|
|
69
|
alarm[2] = 60; gml_Object_obj_torielboss_Alarm_2.gml
obj_heart.x = -200;
global.border = 0;
|
|
70
|
}
|
|
71
|
if (global.monsterhp[myself] <= 150)
|
|
72
|
global.monsterdef[myself] = -140;
|
|
73
|
if (global.monsterhp[myself] >= 1)
|
|
74
|
{
|
|
75
|
global.hurtanim[myself] = 0;
|
|
76
|
if (conversation < 13)
|
|
77
|
{
|
|
78
|
if (global.hp > 2)
|
|
79
|
sprite_index = spr_torielboss;
|
|
80
|
if (global.hp <= 2)
|
|
81
|
sprite_index = spr_torielboss_side;
|
|
82
|
}
|
|
83
|
image_index = 0;
|
|
84
|
global.myfight = 0;
|
|
85
|
global.mnfight = 1;
|
|
86
|
}
|
|
87
|
else
|
|
88
|
{
|
|
89
|
global.myfight = 0;
|
|
90
|
global.mnfight = 1;
|
|
91
|
}
|
|
92
|
}
|
|
93
|
if (global.hurtanim[myself] == 5)
|
|
94
|
{
|
|
95
|
global.damage = 0;
|
|
96
|
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
|
|
97
|
with (obj_dmgwriter)
|
|
98
|
alarm[2] = 30; gml_Object_obj_torielboss_Alarm_2.gml
obj_heart.x = -200;
global.border = 0;
|
|
99
|
global.myfight = 0;
|
|
100
|
global.mnfight = 1;
|
|
101
|
global.hurtanim[myself] = 0;
|
|
102
|
}
|
|
103
|
if (global.mnfight == 2)
|
|
104
|
{
|
|
105
|
if (attacked == 0)
|
|
106
|
{
|
|
107
|
global.turntimer = 160;
|
|
108
|
if (global.hp > 2 && conversation < 13)
|
|
109
|
{
|
|
110
|
if (global.flag[6 hardmode] == 0)
|
|
111
|
{
|
|
112
|
if (mycommand >= 0 && mycommand <= 20)
|
|
113
|
{
|
|
114
|
global.turntimer = 140;
|
|
115
|
global.firingrate = 5;
|
|
116
|
gen = instance_create(0, 0, obj_1sidegen);
|
|
117
|
gen.bullettype = 7;
|
|
118
|
}
|
|
119
|
if (mycommand > 20 && mycommand <= 40)
|
|
120
|
{
|
|
121
|
global.turntimer = 140;
|
|
122
|
global.firingrate = 2;
|
|
123
|
gen = instance_create(0, 0, obj_1sidegen);
|
|
124
|
gen.bullettype = 8;
|
|
125
|
}
|
|
126
|
if (mycommand > 80 && mycommand <= 100)
|
|
127
|
{
|
|
128
|
global.turntimer = 200;
|
|
129
|
global.firingrate = 2;
|
|
130
|
gen = instance_create(global.idealborder[0] - 45, global.idealborder[2] + 5, blt_handbullet1);
|
|
131
|
if (global.hp > 6)
|
|
132
|
gen.dmg = 5;
|
|
133
|
}
|
|
134
|
if (mycommand > 60 && mycommand <= 80)
|
|
135
|
{
|
|
136
|
global.turntimer = 200;
|
|
137
|
global.firingrate = 2;
|
|
138
|
gen = instance_create(global.idealborder[0] - 45, global.idealborder[2] + 5, blt_handbullet1);
|
|
139
|
gen.x1 = 1;
|
|
140
|
if (global.hp > 6)
|
|
141
|
gen.dmg = 5;
|
|
142
|
gen2 = instance_create(global.idealborder[1] + 5, global.idealborder[3] - 15, blt_handbullet2);
|
|
143
|
if (global.hp > 6)
|
|
144
|
gen2.dmg = 5;
|
|
145
|
}
|
|
146
|
if (mycommand > 40 && mycommand <= 60)
|
|
147
|
{
|
|
148
|
global.turntimer = 140;
|
|
149
|
global.firingrate = 6;
|
|
150
|
gen = instance_create(0, 0, obj_1sidegen);
|
|
151
|
gen.bullettype = 10;
|
|
152
|
}
|
|
153
|
}
|
|
154
|
else
|
|
155
|
{
|
|
156
|
if (mycommand >= 0 && mycommand <= 20)
|
|
157
|
{
|
|
158
|
global.turntimer = 160;
|
|
159
|
global.firingrate = 4;
|
|
160
|
gen = instance_create(0, 0, obj_1sidegen);
|
|
161
|
gen.bullettype = 7;
|
|
162
|
}
|
|
163
|
if (mycommand > 20 && mycommand <= 40)
|
|
164
|
{
|
|
165
|
global.turntimer = 160;
|
|
166
|
global.firingrate = 1;
|
|
167
|
gen = instance_create(0, 0, obj_1sidegen);
|
|
168
|
gen.bullettype = 8;
|
|
169
|
}
|
|
170
|
if (mycommand > 80 && mycommand <= 100)
|
|
171
|
{
|
|
172
|
global.turntimer = 200;
|
|
173
|
global.firingrate = 1;
|
|
174
|
gen = instance_create(global.idealborder[0] - 45, global.idealborder[2] + 5, blt_handbullet1);
|
|
175
|
if (global.hp > 6)
|
|
176
|
gen.dmg = 6;
|
|
177
|
}
|
|
178
|
if (mycommand > 60 && mycommand <= 80)
|
|
179
|
{
|
|
180
|
global.turntimer = 200;
|
|
181
|
global.firingrate = 1;
|
|
182
|
gen = instance_create(global.idealborder[0] - 45, global.idealborder[2] + 5, blt_handbullet1);
|
|
183
|
gen.x1 = 1;
|
|
184
|
if (global.hp > 6)
|
|
185
|
gen.dmg = 6;
|
|
186
|
gen2 = instance_create(global.idealborder[1] + 5, global.idealborder[3] - 15, blt_handbullet2);
|
|
187
|
if (global.hp > 6)
|
|
188
|
gen2.dmg = 6;
|
|
189
|
}
|
|
190
|
if (mycommand > 40 && mycommand <= 60)
|
|
191
|
{
|
|
192
|
global.turntimer = 160;
|
|
193
|
global.firingrate = 5;
|
|
194
|
gen = instance_create(0, 0, obj_1sidegen);
|
|
195
|
gen.bullettype = 10;
|
|
196
|
}
|
|
197
|
}
|
|
198
|
}
|
|
199
|
else
|
|
200
|
{
|
|
201
|
if (global.monsterhp[myself] > 150)
|
|
202
|
global.monsterdef[myself] = -15;
|
|
203
|
global.turntimer = 140;
|
|
204
|
global.firingrate = 2;
|
|
205
|
gen = instance_create(0, 0, obj_1sidegen);
|
|
206
|
if (conversation < 13)
|
|
207
|
sideface = 1;
|
|
208
|
gen.bullettype = 9;
|
|
209
|
}
|
|
210
|
if (conversation > 13)
|
|
211
|
{
|
|
212
|
global.turntimer = 1;
|
|
213
|
global.monsterdef[myself] = -2000;
|
|
214
|
}
|
|
215
|
if (global.flag[202 kills_ruins] >= 20)
|
|
216
|
global.monsterdef[myself] = -9999;
|
|
217
|
gen.myself = myself;
|
|
218
|
gen.dmg = global.monsteratk[myself];
|
|
219
|
if (mycommand >= 0)
|
|
220
|
global.msg[0] = * Toriel prepares a magical attack.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_torielboss_803") ;
|
|
221
|
if (mycommand >= 30)
|
|
222
|
global.msg[0] = * Toriel looks through you.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_torielboss_804") ;
|
|
223
|
if (mycommand >= 70)
|
|
224
|
global.msg[0] = * Toriel is acting aloof.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_torielboss_805") ;
|
|
225
|
if (mycommand >= 90)
|
|
226
|
global.msg[0] = * Toriel takes a deep breath.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_torielboss_806") ;
|
|
227
|
if (conversation > 13)
|
|
228
|
global.msg[0] = * ...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_torielboss_809") ;
|
|
229
|
attacked = 1;
|
|
230
|
}
|
|
231
|
}
|
|
232
|
if (whatiheard == 3 && instance_exists(OBJ_WRITER) == 0)
|
|
233
|
{
|
|
234
|
script_execute(scr_mercystandard);
|
|
235
|
if (mercy < 0)
|
|
236
|
instance_destroy();
|
|
237
|
}
|
|
238
|
if (global.myfight == 2)
|
|
239
|
{
|
|
240
|
if (whatiheard != -1)
|
|
241
|
{
|
|
242
|
if (global.heard == 0)
|
|
243
|
{
|
|
244
|
if (whatiheard == 0)
|
|
245
|
{
|
|
246
|
global.msc = 0;
|
|
247
|
global.msg[0] = * TORIEL - ATK 80 DEF 80 * Knows best for you.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_torielboss_834") ;
|
|
248
|
OBJ_WRITER.halt = 3;
|
|
249
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
250
|
with (iii)
|
|
251
|
halt = 0;
|
|
252
|
}
|
|
253
|
if (whatiheard == 3)
|
|
254
|
{
|
|
255
|
tt += 1;
|
|
256
|
global.msc = 0;
|
|
257
|
global.msg[0] = * You couldn't think of any conversation topics.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_torielboss_843") ;
|
|
258
|
ossafe_ini_open("undertale.ini");
|
|
259
|
TK = ini_read_real("Toriel", "TK", 0);
|
|
260
|
ossafe_ini_close();
|
|
261
|
if (tt > 1)
|
|
262
|
global.msg[0] = * You tried to think of something to say again,Delay 11 but...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_torielboss_847") ;
|
|
263
|
if (tt > 2)
|
|
264
|
global.msg[0] = * Ironically,Delay 11 talking does not seem to be the solution to this situation.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_torielboss_848") ;
|
|
265
|
if (TK > 0)
|
|
266
|
{
|
|
267
|
global.msg[0] = * You thought about telling Toriel that you saw her die.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_torielboss_850") ;
|
|
268
|
global.msg[1] = * But... * That's creepy.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_torielboss_851") ;
|
|
269
|
global.msg[2] = * Can you show mercy without fighting or running away...?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_torielboss_852") ;
|
|
270
|
}
|
|
271
|
if (TK > 0 && tt > 1)
|
|
272
|
global.msg[0] = * Can you show mercy without running away...?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_torielboss_854") ;
|
|
273
|
if (global.flag[202 kills_ruins] >= 20)
|
|
274
|
global.msg[0] = * Not worth talking to.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_torielboss_855") ;
|
|
275
|
OBJ_WRITER.halt = 3;
|
|
276
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
277
|
with (iii)
|
|
278
|
halt = 0;
|
|
279
|
}
|
|
280
|
global.heard = 1;
|
|
281
|
}
|
|
282
|
}
|
|
283
|
}
|
|
284
|
if (global.myfight == 4)
|
|
285
|
{
|
|
286
|
if (global.mercyuse == 0)
|
|
287
|
{
|
|
288
|
script_execute(scr_mercystandard);
|
|
289
|
if (mercy < 0)
|
|
290
|
instance_destroy();
|
|
291
|
}
|
|
292
|
}
|
|
293
|
if (destroyed == 1)
|
|
294
|
{
|
|
295
|
if (global.faceemotion == 0)
|
|
296
|
{
|
|
297
|
sprite_index = spr_torielboss_kneel;
|
|
298
|
global.typer = 12;
|
|
299
|
}
|
|
300
|
if (global.faceemotion == 1)
|
|
301
|
{
|
|
302
|
sprite_index = spr_torielboss_kneelanguish;
|
|
303
|
global.typer = 13;
|
|
304
|
}
|
|
305
|
if (global.faceemotion == 2)
|
|
306
|
{
|
|
307
|
sprite_index = spr_torielboss_kneelanguish2;
|
|
308
|
global.typer = 14;
|
|
309
|
}
|
|
310
|
if (global.faceemotion == 3)
|
|
311
|
{
|
|
312
|
sprite_index = spr_torielboss_kneelsmile;
|
|
313
|
global.typer = 15;
|
|
314
|
}
|
|
315
|
if (global.faceemotion == 4)
|
|
316
|
{
|
|
317
|
sprite_index = spr_torielboss_murdered;
|
|
318
|
image_speed = 0;
|
|
319
|
image_index = 0;
|
|
320
|
global.typer = 13;
|
|
321
|
}
|
|
322
|
if (global.faceemotion == 5)
|
|
323
|
image_index = 1;
|
|
324
|
if (instance_exists(OBJ_WRITER))
|
|
325
|
{
|
|
326
|
with (OBJ_WRITER)
|
|
327
|
script_execute(SCR_TEXTTYPE, global.typer);
|
|
328
|
}
|
|
329
|
global.facechange = 1;
|
|
330
|
}
|
|
331
|
if (conversation == 99 && instance_exists(OBJ_WRITER) == 0)
|
|
332
|
{
|
|
333
|
if (instance_exists(OBJ_NOMSCWRITER))
|
|
334
|
{
|
|
335
|
with (blconwd)
|
|
336
|
instance_destroy();
|
|
337
|
}
|
|
338
|
if (instance_exists(obj_blconsm))
|
|
339
|
{
|
|
340
|
with (blcon)
|
|
341
|
instance_destroy();
|
|
342
|
}
|
|
343
|
if (instance_exists(obj_blconwdflowey))
|
|
344
|
{
|
|
345
|
with (obj_blconwdflowey)
|
|
346
|
instance_destroy();
|
|
347
|
}
|
|
348
|
if (global.flag[6 hardmode] == 0)
|
|
349
|
{
|
|
350
|
obj_battlecontroller.runaway = 1;
|
|
351
|
conversation = 56;
|
|
352
|
global.flag[45 status_toriel] = 5;
|
|
353
|
alarm[2] = 20; gml_Object_obj_torielboss_Alarm_2.gml
obj_heart.x = -200;
global.border = 0;
|
|
354
|
instance_create(0, 0, obj_unfader);
|
|
355
|
}
|
|
356
|
else
|
|
357
|
{
|
|
358
|
tr = instance_create(x, y, obj_torboss_2ndtime);
|
|
359
|
tr.sprite_index = spr_torielboss_side;
|
|
360
|
visible = false;
|
|
361
|
conversation = -20;
|
|
362
|
}
|
|
363
|
}
|