|
1
|
if (global.mnfight == 3)
|
|
2
|
attacked = 0;
|
|
3
|
scr_blconmatchscr_blconmatch
if (alarm[5] > 0)
{
if (global.monster[0] == 1)
{
if (global.monsterinstance[0].alarm[5] >alarm[5]
alarm[5]
}
if (global.monster[1] == 1)
{
if (global.monsterinstance[1].alarm[5] >alarm[5]
alarm[5]
}
if (global.monster[2] == 1)
{
if (global.monsterinstance[2].alarm[5] >alarm[5]
alarm[5]
}
} ();
|
|
4
|
if (global.mnfight == 1)
|
|
5
|
{
|
|
6
|
if (talked == 0)
|
|
7
|
{
|
|
8
|
alarm[5] = 70; gml_Object_obj_loox_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
|
|
9
|
alarm[6] = 1; gml_Object_obj_loox_Alarm_6.gml
blcon = instance_create((x + sprite_width) - 8, ystart + 8, obj_blconsm);
mycommand = round(random(100));
if (mycommand >= 0 && mycommand < 20)
global.msg[0] = ;
if (mycommand >= 20 && mycommand < 40)
global.msg[0] = ;
if (mycommand >= 40 && mycommand < 60)
global.msg[0] = ;
if (mycommand >= 60 && mycommand <= 80)
global.msg[0] = ;
if (mycommand >= 80 && mycommand <= 100)
global.msg[0] = How about a staring contest? ;
if (global.turn == 0)
global.msg[0] = ;
if (whatiheard == 1)
global.msg[0] = ;
if (whatiheard == 3)
global.msg[0] = ;
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 2;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
global.border = 6;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8;
|
|
10
|
talked = 1;
|
|
11
|
global.heard = 0;
|
|
12
|
}
|
|
13
|
}
|
|
14
|
if (control_check_pressed(0))
|
|
15
|
{
|
|
16
|
if (alarm[5] > 5 && obj_lborder.x == global.idealborder[0] && alarm[6] < 0) gml_Object_obj_loox_Alarm_6.gml
blcon = instance_create((x + sprite_width) - 8, ystart + 8, obj_blconsm);
mycommand = round(random(100));
if (mycommand >= 0 && mycommand < 20)
global.msg[0] = ;
if (mycommand >= 20 && mycommand < 40)
global.msg[0] = ;
if (mycommand >= 40 && mycommand < 60)
global.msg[0] = ;
if (mycommand >= 60 && mycommand <= 80)
global.msg[0] = ;
if (mycommand >= 80 && mycommand <= 100)
global.msg[0] = How about a staring contest? ;
if (global.turn == 0)
global.msg[0] = ;
if (whatiheard == 1)
global.msg[0] = ;
if (whatiheard == 3)
global.msg[0] = ;
global.msg[1] = Close MessageClose MessageClose Message ;
global.typer = 2;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
global.border = 6;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8;
|
|
17
|
alarm[5] = 2; gml_Object_obj_loox_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
|
|
18
|
}
|
|
19
|
if (global.hurtanim[myself] == 1)
|
|
20
|
{
|
|
21
|
shudder = 16;
|
|
22
|
alarm[3] = global.damagetimer; gml_Object_obj_loox_Alarm_3.gml
if (sprite_index != spr_looxhurt)
{
dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y, obj_dmgwriter);
global.damage = takedamage;
with (dmgwriter)
dmg = global.damage;
sprite_index = spr_looxhurt;
snd_play(hurtsound);
}
x += shudder;
if (shudder < 0)
shudder = -(shudder + 2);
else
shudder = -shudder;
if (shudder == 0)
{
global.hurtanim[myself] = 2;
exit;
}
alarm[3] = 2;
|
|
23
|
global.hurtanim[myself] = 3;
|
|
24
|
}
|
|
25
|
if (global.hurtanim[myself] == 2)
|
|
26
|
{
|
|
27
|
global.monsterhp[myself] -= takedamage;
|
|
28
|
with (dmgwriter)
|
|
29
|
alarm[2]
|
|
30
|
if (global.monsterhp[myself] >= 1)
|
|
31
|
{
|
|
32
|
global.hurtanim[myself] = 0;
|
|
33
|
sprite_index = spr_loox;
|
|
34
|
image_index = 0;
|
|
35
|
global.myfight = 0;
|
|
36
|
global.mnfight = 1;
|
|
37
|
}
|
|
38
|
else
|
|
39
|
{
|
|
40
|
global.myfight = 0;
|
|
41
|
global.mnfight = 1;
|
|
42
|
killed = 1;
|
|
43
|
instance_destroy();
|
|
44
|
}
|
|
45
|
}
|
|
46
|
if (global.hurtanim[myself] == 5)
|
|
47
|
{
|
|
48
|
global.damage = 0;
|
|
49
|
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
|
|
50
|
with (obj_dmgwriter)
|
|
51
|
alarm[2]
|
|
52
|
global.myfight = 0;
|
|
53
|
global.mnfight = 1;
|
|
54
|
global.hurtanim[myself] = 0;
|
|
55
|
}
|
|
56
|
if (global.mnfight == 2)
|
|
57
|
{
|
|
58
|
if (attacked == 0)
|
|
59
|
{
|
|
60
|
global.turntimer = 110;
|
|
61
|
global.firingrate = 4;
|
|
62
|
if ((global.monster[0] + global.monster[1] + global.monster[2]) == 3)
|
|
63
|
mycommand = 2;
|
|
64
|
if (mycommand < 50)
|
|
65
|
{
|
|
66
|
global.firingrate = 13;
|
|
67
|
if (mercymod < 0)
|
|
68
|
global.firingrate -= 6;
|
|
69
|
if (mercymod > 6)
|
|
70
|
global.firingrate += 5;
|
|
71
|
if ((global.monster[0] + global.monster[1] + global.monster[2]) > 1)
|
|
72
|
global.firingrate = global.firingrate * 1.5;
|
|
73
|
if ((global.monster[0] + global.monster[1] + global.monster[2]) == 3)
|
|
74
|
global.firingrate = global.firingrate * 2;
|
|
75
|
gen = instance_create(0, 0, obj_hoopgen1);
|
|
76
|
gen.bullettype = 0;
|
|
77
|
}
|
|
78
|
if (mycommand >= 50)
|
|
79
|
{
|
|
80
|
global.firingrate = 15;
|
|
81
|
if (mercymod < 0)
|
|
82
|
global.firingrate -= 6;
|
|
83
|
if (mercymod > 6)
|
|
84
|
global.firingrate += 5;
|
|
85
|
if ((global.monster[0] + global.monster[1] + global.monster[2]) == 2)
|
|
86
|
global.firingrate = global.firingrate * 1.5;
|
|
87
|
if ((global.monster[0] + global.monster[1] + global.monster[2]) == 3)
|
|
88
|
global.firingrate = global.firingrate * 2;
|
|
89
|
gen = instance_create(0, 0, obj_hoopgen1);
|
|
90
|
gen.bullettype = 1;
|
|
91
|
}
|
|
92
|
gen.myself = myself;
|
|
93
|
gen.dmg = global.monsteratk[myself];
|
|
94
|
if (mycommand >= 0)
|
|
95
|
global.msg[0] = * Loox is gazing at 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_loox_403") ;
|
|
96
|
if (mycommand >= 30)
|
|
97
|
global.msg[0] = * Loox is staring right 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_loox_404") ;
|
|
98
|
if (mycommand >= 70)
|
|
99
|
global.msg[0] = * Loox gnashes its teeth.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_loox_405") ;
|
|
100
|
if (mycommand >= 90)
|
|
101
|
global.msg[0] = * Smells like eyedrops.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_loox_406") ;
|
|
102
|
if (mercymod < -100)
|
|
103
|
global.msg[0] = * Loox has gone bloodshot.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_loox_407") ;
|
|
104
|
if (mercymod > 100)
|
|
105
|
global.msg[0] = * Loox doesn't care about fighting anymore.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_loox_408") ;
|
|
106
|
if (global.monsterhp[myself] < (global.monstermaxhp[myself] / 3))
|
|
107
|
global.msg[0] = * Loox is watering.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_loox_409") ;
|
|
108
|
attacked = 1;
|
|
109
|
}
|
|
110
|
}
|
|
111
|
if (global.myfight == 2)
|
|
112
|
{
|
|
113
|
if (whatiheard != -1)
|
|
114
|
{
|
|
115
|
if (global.heard == 0)
|
|
116
|
{
|
|
117
|
if (whatiheard == 0)
|
|
118
|
{
|
|
119
|
global.msc = 0;
|
|
120
|
global.msg[0] = * LOOX - ATK 6 DEF 6 * Don't pick on him. * Family name: EyewalkerWait 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_loox_425") ;
|
|
121
|
OBJ_WRITER.halt = 3;
|
|
122
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
123
|
with (iii)
|
|
124
|
halt = 0;
|
|
125
|
}
|
|
126
|
if (whatiheard == 3)
|
|
127
|
{
|
|
128
|
if (mercymod < 100 && global.xpreward[myself] < 20)
|
|
129
|
global.xpreward[myself] += 5;
|
|
130
|
mercymod = -100;
|
|
131
|
global.myfight = 0;
|
|
132
|
global.mnfight = 1;
|
|
133
|
}
|
|
134
|
if (whatiheard == 1)
|
|
135
|
{
|
|
136
|
global.flag[133 spared_loox] = 1;
|
|
137
|
if (global.xpreward[myself] > 4)
|
|
138
|
global.xpreward[myself] -= 2;
|
|
139
|
mercymod = 100;
|
|
140
|
global.myfight = 0;
|
|
141
|
global.mnfight = 1;
|
|
142
|
}
|
|
143
|
global.heard = 1;
|
|
144
|
}
|
|
145
|
}
|
|
146
|
}
|
|
147
|
if (global.myfight == 4)
|
|
148
|
{
|
|
149
|
if (global.mercyuse == 0)
|
|
150
|
{
|
|
151
|
script_execute(scr_mercystandard);
|
|
152
|
if (mercy < 0)
|
|
153
|
instance_destroy();
|
|
154
|
}
|
|
155
|
}
|