1 |
if (dingus == 2) |
2 |
{ |
3 |
currentvol -= 0.02; |
4 |
caster_set_volume(gameoversong, currentvol); |
5 |
} |
6 |
if (control_check_pressed(0)) |
7 |
event_user(0); |
8 |
if (heartcon == 5) |
9 |
{ |
10 |
hearttimer += 1; |
11 |
if (global.flag[502 refuse_count] < 2) |
12 |
{ |
13 |
if (hearttimer > 80 && hearttimer < 120) |
14 |
{ |
15 |
x = (thisx + random(3)) - random(3); |
16 |
y = (thisy + random(3)) - random(3); |
17 |
} |
18 |
if (hearttimer == 120) |
19 |
{ |
20 |
x = thisx + 2; |
21 |
y = thisy; |
22 |
snd_play(snd_break1); |
23 |
sprite_index = spr_heart; |
24 |
} |
25 |
if (hearttimer == 150) |
26 |
{ |
27 |
global.typer = 61; |
28 |
global.msc = 0; |
29 |
global.msg[0] = * But it refused.Delay 55Close MessageClose Messagescr_gettextscr_gettextvar 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_heartdefeated_343") ; |
30 |
scr_setfontscr_setfontvar newfont = argument0;
if (global.language == "ja")
{
if (newfont == fnt_main)
newfont = fnt_ja_main;
if (newfont == fnt_maintext)
newfont = fnt_ja_maintext;
if (newfont == fnt_plain)
newfont = fnt_ja_plain;
}
draw_set_font(newfont); (fnt_main); |
31 |
instance_create(320 - round(string_width(global.msg[0]) / 2), 100, OBJ_WRITER); |
32 |
} |
33 |
if (hearttimer == 220) |
34 |
instance_create(0, 0, obj_screenwhiter); |
35 |
if (hearttimer == 254) |
36 |
{ |
37 |
global.border = 0; |
38 |
global.hp = global.maxhp; |
39 |
caster_free(all); |
40 |
with (obj_gameover) |
41 |
instance_destroy(); |
42 |
room_goto(room_battle Battle room [Dogchecked]); |
43 |
} |
44 |
} |
45 |
else |
46 |
{ |
47 |
if (hearttimer > 20 && hearttimer < 40) |
48 |
{ |
49 |
x = (thisx + random(3)) - random(3); |
50 |
y = (thisy + random(3)) - random(3); |
51 |
} |
52 |
if (hearttimer == 40) |
53 |
{ |
54 |
x = thisx + 2; |
55 |
y = thisy; |
56 |
snd_play(snd_break1); |
57 |
sprite_index = spr_heart; |
58 |
} |
59 |
if (hearttimer == 60) |
60 |
instance_create(0, 0, obj_screenwhiter); |
61 |
if (hearttimer == 94) |
62 |
{ |
63 |
global.border = 0; |
64 |
global.hp = global.maxhp; |
65 |
caster_free(all); |
66 |
with (obj_gameover) |
67 |
instance_destroy(); |
68 |
room_goto(room_battle Battle room [Dogchecked]); |
69 |
} |
70 |
} |
71 |
} |