1 |
var text_yofs = 8; |
2 |
if (global.language == "ja") |
3 |
text_yofs = 5; |
4 |
if (guy.x > -32) |
5 |
{ |
6 |
guy.x = -34; |
7 |
guy.hspeed = 0; |
8 |
talk[0] = 1; |
9 |
} |
10 |
if (talk[0] == 1 && shake == 0) |
11 |
{ |
12 |
draw_sprite(spr_blconsm_shrt, 0, guy.x + 190, guy.y); |
13 |
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_plain); |
14 |
draw_set_color(c_black); |
15 |
draw_text(guy.x + 220, guy.y + text_yofs, You can#do it!scr_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_bringitinguys_298") ); |
16 |
} |
17 |
if (guy2.x > -24) |
18 |
{ |
19 |
guy2.x = -24; |
20 |
guy2.hspeed = 0; |
21 |
talk[1] = 1; |
22 |
} |
23 |
if (talk[1] == 1 && shake == 0) |
24 |
{ |
25 |
draw_sprite(spr_blconsm_shrt, 0, guy2.x + 90, guy2.y); |
26 |
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_plain); |
27 |
draw_set_color(c_black); |
28 |
draw_text(guy2.x + 120, guy2.y + text_yofs, Ribbit.scr_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_bringitinguys_314") ); |
29 |
} |
30 |
if (guy3.x > -24) |
31 |
{ |
32 |
guy3.x = -24; |
33 |
guy3.hspeed = 0; |
34 |
talk[2] = 1; |
35 |
} |
36 |
if (talk[2] == 1 && shake == 0) |
37 |
{ |
38 |
draw_sprite(spr_blconsm_shrt, 0, guy3.x + 130, guy3.y); |
39 |
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_plain); |
40 |
draw_set_color(c_black); |
41 |
draw_text(guy3.x + 160, guy3.y + text_yofs, You've#GOT to#win!scr_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_bringitinguys_329") ); |
42 |
} |
43 |
if (guy4.y < (room_height - 60)) |
44 |
{ |
45 |
guy4.y = room_height - 60; |
46 |
guy4.vspeed = 0; |
47 |
} |
48 |
if (guy_r.x < (room_width - 80)) |
49 |
{ |
50 |
guy_r.x = room_width - 80; |
51 |
guy_r.hspeed = 0; |
52 |
talk_r[0] = 1; |
53 |
} |
54 |
if (talk_r[0] == 1 && shake == 0) |
55 |
{ |
56 |
draw_sprite(spr_blconsm2_shrt, 0, guy_r.x - 113, guy_r.y); |
57 |
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_plain); |
58 |
draw_set_color(c_black); |
59 |
draw_text(guy_r.x - 88, guy_r.y + text_yofs, We're#with you#too!scr_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_bringitinguys_355") ); |
60 |
} |
61 |
if (guy_r2.x < (room_width - 90)) |
62 |
{ |
63 |
guy_r2.x = room_width - 90; |
64 |
guy_r2.hspeed = 0; |
65 |
talk_r[1] = 1; |
66 |
} |
67 |
if (talk_r[1] == 1 && shake == 0) |
68 |
{ |
69 |
draw_sprite(spr_blconsm2_shrt, 0, guy_r2.x - 113, guy_r2.y); |
70 |
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_plain); |
71 |
draw_set_color(c_black); |
72 |
draw_text(guy_r2.x - 88, guy_r2.y + text_yofs, C'mon,#you got#this!scr_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_bringitinguys_371") ); |
73 |
} |
74 |
if (guy_r3.x < (room_width - 90)) |
75 |
{ |
76 |
guy_r3.x = room_width - 90; |
77 |
guy_r3.hspeed = 0; |
78 |
talk_r[2] = 1; |
79 |
} |
80 |
if (talk_r[2] == 1 && shake == 0) |
81 |
{ |
82 |
draw_sprite(spr_blconsm2_shrt, 0, guy_r3.x - 113, guy_r3.y); |
83 |
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_plain); |
84 |
draw_set_color(c_black); |
85 |
draw_text(guy_r3.x - 88, guy_r3.y + text_yofs, La la#la la!scr_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_bringitinguys_387") ); |
86 |
} |
87 |
if (guy_r4.x < (room_width - 90)) |
88 |
{ |
89 |
guy_r4.x = room_width - 90; |
90 |
guy_r4.hspeed = 0; |
91 |
} |
92 |
if (shake > 0) |
93 |
{ |
94 |
shake += 0.02; |
95 |
for (i = 0; i < 8; i += 1) |
96 |
{ |
97 |
sh[i].x = (shx[i] + random(shake)) - random(shake); |
98 |
sh[i].y = (shy[i] + random(shake)) - random(shake); |
99 |
} |
100 |
} |