|
1
|
if (global.mnfight == 3)
|
|
2
|
attacked = 0;
|
|
3
|
if (alarm[5] > 0)
|
|
4
|
{
|
|
5
|
if (global.monster[0] == 1)
|
|
6
|
{
|
|
7
|
if (global.monsterinstance[0].alarm[5] > alarm[5])
|
|
8
|
alarm[5] = global.monsterinstance[0].alarm[5];
|
|
9
|
}
|
|
10
|
if (global.monster[1] == 1)
|
|
11
|
{
|
|
12
|
if (global.monsterinstance[1].alarm[5] > alarm[5])
|
|
13
|
alarm[5] = global.monsterinstance[1].alarm[5];
|
|
14
|
}
|
|
15
|
if (global.monster[2] == 1)
|
|
16
|
{
|
|
17
|
if (global.monsterinstance[2].alarm[5] > alarm[5])
|
|
18
|
alarm[5] = global.monsterinstance[2].alarm[5];
|
|
19
|
}
|
|
20
|
}
|
|
21
|
if (global.mnfight == 1)
|
|
22
|
{
|
|
23
|
if (talked == 0)
|
|
24
|
{
|
|
25
|
alarm[5] = 60;
|
|
26
|
alarm[6] = 1; gml_Object_obj_fakefroggit_Alarm_6.gml
instance_create(room_width + 40, (y + sprite_height) - 204, obj_torieldisapprove);
alarm[10] = 40;
|
|
27
|
talked = 1;
|
|
28
|
global.heard = 0;
|
|
29
|
}
|
|
30
|
}
|
|
31
|
if (control_check_pressed(0))
|
|
32
|
{
|
|
33
|
if (alarm[5] > 5 && obj_lborder.x == global.idealborder[0])
|
|
34
|
alarm[5] = 2;
|
|
35
|
}
|
|
36
|
if (global.hurtanim[myself] == 1)
|
|
37
|
{
|
|
38
|
shudder = 16;
|
|
39
|
alarm[3] = global.damagetimer; gml_Object_obj_fakefroggit_Alarm_3.gml
if (image_index != 1)
{
with (mypart1)
instance_destroy();
with (mypart2)
instance_destroy();
dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
global.damage = takedamage;
with (dmgwriter)
dmg = global.damage;
image_index = 1;
snd_play(snd_damage);
alarm[8] = 11;
}
x += shudder;
if (shudder < 0)
shudder = -(shudder + 2);
else
shudder = -shudder;
if (shudder == 0)
{
global.hurtanim[myself] = 2;
exit;
}
alarm[3] = 2;
|
|
40
|
global.hurtanim[myself] = 3;
|
|
41
|
}
|
|
42
|
if (global.hurtanim[myself] == 2)
|
|
43
|
{
|
|
44
|
global.monsterhp[myself] -= takedamage;
|
|
45
|
with (dmgwriter)
|
|
46
|
alarm[2]
|
|
47
|
if (global.monsterhp[myself] >= 1)
|
|
48
|
{
|
|
49
|
mypart1 = instance_create(x, y, obj_froghead);
|
|
50
|
mypart2 = instance_create(x, y, obj_froglegs);
|
|
51
|
global.hurtanim[myself] = 0;
|
|
52
|
image_index = 0;
|
|
53
|
global.myfight = 0;
|
|
54
|
global.mnfight = 1;
|
|
55
|
}
|
|
56
|
else
|
|
57
|
{
|
|
58
|
global.myfight = 0;
|
|
59
|
global.mnfight = 1;
|
|
60
|
killed = 1;
|
|
61
|
instance_destroy();
|
|
62
|
}
|
|
63
|
}
|
|
64
|
if (global.hurtanim[myself] == 5)
|
|
65
|
{
|
|
66
|
global.damage = 0;
|
|
67
|
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
|
|
68
|
with (obj_dmgwriter)
|
|
69
|
alarm[2]
|
|
70
|
global.myfight = 0;
|
|
71
|
global.mnfight = 1;
|
|
72
|
global.hurtanim[myself] = 0;
|
|
73
|
}
|
|
74
|
if (global.mnfight == 2)
|
|
75
|
{
|
|
76
|
if (attacked == 0)
|
|
77
|
{
|
|
78
|
global.turntimer = 100;
|
|
79
|
global.firingrate = 20;
|
|
80
|
gen = instance_create(x, y, obj_1sidegen);
|
|
81
|
if (mycommand >= 0)
|
|
82
|
global.msg[0] = * Froggit doesn't seem to know why it's here.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_fakefroggit_479") ;
|
|
83
|
if (mycommand >= 30)
|
|
84
|
global.msg[0] = * Froggit hops to and fro.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_fakefroggit_480") ;
|
|
85
|
if (mycommand >= 60)
|
|
86
|
global.msg[0] = * The battlefield is filled with the smell of mustard seed.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_fakefroggit_481") ;
|
|
87
|
if (mycommand >= 80)
|
|
88
|
global.msg[0] = * You are intimidated by Froggit's raw strength.Delay 44 * Only kidding.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_fakefroggit_482") ;
|
|
89
|
if (mercymod > 5)
|
|
90
|
global.msg[0] = * Froggit seems reluctant to fight 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_fakefroggit_483") ;
|
|
91
|
if (global.monsterhp[myself] < 5)
|
|
92
|
global.msg[0] = * Froggit is trying to run 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_fakefroggit_484") ;
|
|
93
|
attacked = 1;
|
|
94
|
}
|
|
95
|
}
|
|
96
|
if (global.myfight == 2)
|
|
97
|
{
|
|
98
|
if (whatiheard != -1)
|
|
99
|
{
|
|
100
|
if (global.heard == 0)
|
|
101
|
{
|
|
102
|
if (whatiheard == 0)
|
|
103
|
{
|
|
104
|
global.msc = 0;
|
|
105
|
global.msg[0] = * FROGGIT - ATK 4 DEF 5 * Life is difficult for this enemy.Wait 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_fakefroggit_500") ;
|
|
106
|
OBJ_WRITER.halt = 3;
|
|
107
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
108
|
with (iii)
|
|
109
|
halt = 0;
|
|
110
|
}
|
|
111
|
if (whatiheard == 3)
|
|
112
|
{
|
|
113
|
global.msc = 0;
|
|
114
|
global.msg[0] = * Froggit didn't understand what you said,Delay 11 but was flattered anyway.Wait 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_fakefroggit_508") ;
|
|
115
|
OBJ_WRITER.halt = 3;
|
|
116
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
117
|
with (iii)
|
|
118
|
halt = 0;
|
|
119
|
mercymod = 30;
|
|
120
|
}
|
|
121
|
if (whatiheard == 1)
|
|
122
|
{
|
|
123
|
global.msc = 0;
|
|
124
|
global.msg[0] = * Froggit didn't understand what you said,Delay 11 but was scared anyway.Wait 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_fakefroggit_518") ;
|
|
125
|
OBJ_WRITER.halt = 3;
|
|
126
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
127
|
with (iii)
|
|
128
|
halt = 0;
|
|
129
|
mercymod = 30;
|
|
130
|
}
|
|
131
|
global.heard = 1;
|
|
132
|
}
|
|
133
|
}
|
|
134
|
}
|
|
135
|
if (global.myfight == 4)
|
|
136
|
{
|
|
137
|
if (global.mercyuse == 0)
|
|
138
|
{
|
|
139
|
script_execute(scr_mercystandard);
|
|
140
|
if (mercy < 0)
|
|
141
|
instance_destroy();
|
|
142
|
}
|
|
143
|
}
|
|
144
|
if (x < -sprite_width)
|
|
145
|
global.monster[myself] = 0;
|