|
1
|
if (doomcon == 0)
|
|
2
|
{
|
|
3
|
if (global.faceemotion == 1)
|
|
4
|
image_index = 1;
|
|
5
|
if (global.faceemotion == 2)
|
|
6
|
image_index = 2;
|
|
7
|
if (global.faceemotion == 3)
|
|
8
|
image_index = 0;
|
|
9
|
}
|
|
10
|
if (writing == 1)
|
|
11
|
{
|
|
12
|
if (instance_exists(OBJ_WRITER) == 0)
|
|
13
|
{
|
|
14
|
writing = 0;
|
|
15
|
event_user(2);
|
|
16
|
}
|
|
17
|
}
|
|
18
|
if (instance_exists(OBJ_WRITER))
|
|
19
|
{
|
|
20
|
if (global.flag[20 animation_index] == 1 && OBJ_WRITER.stringno != flag20_laststr)
|
|
21
|
{
|
|
22
|
flag20_laststr = OBJ_WRITER.stringno;
|
|
23
|
if (image_index < 14)
|
|
24
|
image_index += 1;
|
|
25
|
}
|
|
26
|
}
|
|
27
|
else
|
|
28
|
{
|
|
29
|
flag20_laststr = -1;
|
|
30
|
}
|
|
31
|
global.flag[20 animation_index] = 0;
|
|
32
|
if (con == 16)
|
|
33
|
{
|
|
34
|
if (instance_exists(OBJ_WRITER) == 0)
|
|
35
|
{
|
|
36
|
fader = 1;
|
|
37
|
con = 17;
|
|
38
|
alarm[4] = 30; gml_Object_obj_flowey_wilt_Alarm_4.gml
con += 1;
|
|
39
|
snd_play(snd_escaped);
|
|
40
|
}
|
|
41
|
}
|
|
42
|
if (con == 18)
|
|
43
|
{
|
|
44
|
global.typer = 73;
|
|
45
|
global.msg[0] = * Flowey ran away.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_flowey_wilt_309") ;
|
|
46
|
instance_create(120, 50, OBJ_WRITER);
|
|
47
|
con = 19;
|
|
48
|
alarm[4] = 210; gml_Object_obj_flowey_wilt_Alarm_4.gml
con += 1;
|
|
49
|
}
|
|
50
|
if (con == 20)
|
|
51
|
{
|
|
52
|
doomcon = 6;
|
|
53
|
alarm[9] = 10; gml_Object_obj_flowey_wilt_Alarm_9.gml
doomcon += 1;
|
|
54
|
con = 21;
|
|
55
|
}
|
|
56
|
if (fader == 1)
|
|
57
|
image_alpha -= 0.01;
|
|
58
|
if (doomcon == 0.5)
|
|
59
|
{
|
|
60
|
doomcon = 0.6;
|
|
61
|
shudder = 8;
|
|
62
|
alarm[6] = 1; gml_Object_obj_flowey_wilt_Alarm_6.gml
con = 0;
image_index = 6;
x = xstart - shudder;
shudder *= -1;
if (shudder > 0)
shudder -= 1;
else
shudder += 1;
if (shudder != 0)
alarm[6] = 8;
else
doomcon = 1;
|
|
63
|
}
|
|
64
|
if (doomcon == 1)
|
|
65
|
{
|
|
66
|
ossafe_ini_close();
|
|
67
|
global.flag[475 killed_flowey] = 1;
|
|
68
|
ossafe_ini_open("undertale.ini");
|
|
69
|
K = ini_read_real("Flowey", "K", 0);
|
|
70
|
if (K == 0)
|
|
71
|
ini_write_real("Flowey", "K", 1);
|
|
72
|
ini_write_real("FFFFF", "E", 2);
|
|
73
|
ossafe_ini_close();
|
|
74
|
ossafe_savedata_save();
|
|
75
|
global.msc = 0;
|
|
76
|
global.msg[0] = I knew you had it in you!Delay 33Close 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_flowey_wilt_348") ;
|
|
77
|
global.typer = 71;
|
|
78
|
instance_create(x - 60, y - 30, OBJ_WRITER);
|
|
79
|
doomcounter = 0;
|
|
80
|
doomcon = 2;
|
|
81
|
sprite_index = spr_flowey_wilted_l;
|
|
82
|
image_speed = 0.3;
|
|
83
|
}
|
|
84
|
if (doomcon == 2)
|
|
85
|
{
|
|
86
|
image_speed += 0.0025;
|
|
87
|
if (image_speed >= 0.5)
|
|
88
|
doomcon = 3;
|
|
89
|
}
|
|
90
|
if (doomcon == 3)
|
|
91
|
{
|
|
92
|
image_speed -= 0.004;
|
|
93
|
if (image_speed <= 0)
|
|
94
|
{
|
|
95
|
doomcon = 4;
|
|
96
|
sprite_index = spr_flowey_wilted_d;
|
|
97
|
image_index = 0;
|
|
98
|
image_speed = 0;
|
|
99
|
alarm[5] = 80; gml_Object_obj_flowey_wilt_Alarm_5.gml
doomcon = 5;
|
|
100
|
}
|
|
101
|
}
|
|
102
|
if (doomcon == 5)
|
|
103
|
{
|
|
104
|
image_speed = 0.2;
|
|
105
|
if (image_index >= 6)
|
|
106
|
{
|
|
107
|
image_index = 6;
|
|
108
|
doomcon = 6;
|
|
109
|
alarm[9] = 150; gml_Object_obj_flowey_wilt_Alarm_9.gml
doomcon += 1;
|
|
110
|
image_speed = 0;
|
|
111
|
}
|
|
112
|
}
|
|
113
|
if (doomcon == 7)
|
|
114
|
{
|
|
115
|
instance_create(0, 0, obj_unfader);
|
|
116
|
doomcon = 8;
|
|
117
|
alarm[9] = 12; gml_Object_obj_flowey_wilt_Alarm_9.gml
doomcon += 1;
|
|
118
|
}
|
|
119
|
if (doomcon == 9)
|
|
120
|
{
|
|
121
|
global.entrance = 0;
|
|
122
|
instance_create(0, 0, obj_persistentfader);
|
|
123
|
ossafe_ini_open("undertale.ini");
|
|
124
|
ini_write_real("FFFFF", "E", 2);
|
|
125
|
ossafe_ini_close();
|
|
126
|
ossafe_savedata_save();
|
|
127
|
room_goto(room_castle_exit Flowey post-battle);
|
|
128
|
}
|