|
1
|
if (blacktime == 0)
|
|
2
|
{
|
|
3
|
if (dt == 1)
|
|
4
|
{
|
|
5
|
draw_set_color(c_black);
|
|
6
|
ossafe_fill_rectangle(-20, -20, 1010, 1010);
|
|
7
|
draw_sprite_ext(thispic, 0, hshake, vshake, 0.5, 0.5, 0, image_blend, 1);
|
|
8
|
}
|
|
9
|
redsiner += (1 + rs_speed);
|
|
10
|
if (hyperboys == 1)
|
|
11
|
redsiner += (1 + rs_speed);
|
|
12
|
hshake = random(shakevalue) - random(shakevalue);
|
|
13
|
vshake = random(shakevalue) - random(shakevalue);
|
|
14
|
image_blend = make_color_rgb(255, 210 + (sin(redsiner / 12) * 45), 210 + (sin(redsiner / 12) * 45));
|
|
15
|
shakevalue += 0.008;
|
|
16
|
rs_speed += 0.01;
|
|
17
|
if (hyperboys == 1)
|
|
18
|
{
|
|
19
|
shakevalue += 0.008;
|
|
20
|
rs_speed += 0.01;
|
|
21
|
}
|
|
22
|
if (shakevalue > 5)
|
|
23
|
{
|
|
24
|
w += 0.01;
|
|
25
|
if (hyperboys == 1)
|
|
26
|
w += 0.01;
|
|
27
|
}
|
|
28
|
else
|
|
29
|
{
|
|
30
|
caster_set_volume(sfx, vol);
|
|
31
|
}
|
|
32
|
if (w > 0)
|
|
33
|
{
|
|
34
|
pit += 0.01;
|
|
35
|
caster_set_pitch(sfx, pit);
|
|
36
|
vol -= 0.01;
|
|
37
|
caster_set_volume(sfx, vol);
|
|
38
|
if (hyperboys == 1)
|
|
39
|
{
|
|
40
|
pit += 0.01;
|
|
41
|
caster_set_pitch(sfx, pit);
|
|
42
|
vol -= 0.01;
|
|
43
|
caster_set_volume(sfx, vol);
|
|
44
|
}
|
|
45
|
draw_set_alpha(w);
|
|
46
|
draw_set_color(c_white);
|
|
47
|
ossafe_fill_rectangle(-10, -10, 999, 999);
|
|
48
|
draw_set_alpha(1);
|
|
49
|
}
|
|
50
|
}
|
|
51
|
if (blacktime == 1)
|
|
52
|
{
|
|
53
|
draw_set_color(c_black);
|
|
54
|
ossafe_fill_rectangle(-20, -20, 1010, 1010);
|
|
55
|
w += 0.01;
|
|
56
|
}
|
|
57
|
if (con == 2 && hyperboys == 0)
|
|
58
|
{
|
|
59
|
global.msc = 0;
|
|
60
|
global.typer = 5;
|
|
61
|
global.msg[0] = WARNING! WARNING!Delay 66Close 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_labelevator_a_242") ;
|
|
62
|
global.msg[1] = ELEVATOR LOSING POWER!Delay 66Close 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_labelevator_a_243") ;
|
|
63
|
global.msg[2] = EM TETHER STABILITY LOST!Delay 66Close 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_labelevator_a_244") ;
|
|
64
|
global.msg[3] = ALTITUDE DROPPING!Delay 66Close 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_labelevator_a_245") ;
|
|
65
|
var yy = 10;
|
|
66
|
if (global.language == "ja")
|
|
67
|
yy = -2;
|
|
68
|
instance_create(40, yy, OBJ_WRITER);
|
|
69
|
con = 3;
|
|
70
|
}
|
|
71
|
if (dt == 0)
|
|
72
|
{
|
|
73
|
thispic = sprite_create_from_screen_x(0, 0, 640, 480, 0, 0, 0, 0);
|
|
74
|
dt = 1;
|
|
75
|
}
|