|
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]) gml_Object_obj_testmonster_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
|
|
8
|
alarm[5] = global.monsterinstance[0].alarm[5]; gml_Object_obj_testmonster_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
|
|
9
|
}
|
|
10
|
if (global.monster[1] == 1)
|
|
11
|
{
|
|
12
|
if (global.monsterinstance[1].alarm[5] > alarm[5]) gml_Object_obj_testmonster_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
|
|
13
|
alarm[5] = global.monsterinstance[1].alarm[5]; gml_Object_obj_testmonster_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
|
|
14
|
}
|
|
15
|
if (global.monster[2] == 1)
|
|
16
|
{
|
|
17
|
if (global.monsterinstance[2].alarm[5] > alarm[5]) gml_Object_obj_testmonster_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
|
|
18
|
alarm[5] = global.monsterinstance[2].alarm[5]; gml_Object_obj_testmonster_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
|
|
19
|
}
|
|
20
|
}
|
|
21
|
if (global.mnfight == 1)
|
|
22
|
{
|
|
23
|
if (talked == 0)
|
|
24
|
{
|
|
25
|
alarm[5] = 60; gml_Object_obj_testmonster_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
|
|
26
|
alarm[6] = 1; gml_Object_obj_testmonster_Alarm_6.gml
blcon = instance_create(x + sprite_width, y, obj_blconsm);
mycommand = round(random(100));
if (mycommand >= 0 && mycommand < 30)
global.msg[0] = "Ribbit,&ribbit.";
if (mycommand >= 30 && mycommand < 50)
global.msg[0] = "Croak,&croak.";
if (mycommand >= 50 && mycommand < 80)
global.msg[0] = "Hop,&hop.";
if (mycommand >= 80 && mycommand <= 100)
global.msg[0] = "Meow.";
if (whatiheard == 1)
{
global.msg[0] = "(Blushes&deeply.)&Ribbit..";
alarm[5] = 108;
}
if (whatiheard == 3)
global.msg[0] = "(Shiver)";
global.msg[1] = "%%%";
global.typer = 2;
blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER);
global.border = 3;
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8;
|
|
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; gml_Object_obj_testmonster_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
whatiheard = -1;
global.mnfight = 2;
|
|
35
|
}
|
|
36
|
if (global.hurtanim[myself] == 1)
|
|
37
|
{
|
|
38
|
shudder = 16;
|
|
39
|
alarm[3] = global.damagetimer; gml_Object_obj_testmonster_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] = "* You feel intimidated by the&strength of this adversary.^4 &* Just kidding.";
|
|
83
|
if (mycommand >= 20)
|
|
84
|
global.msg[0] = "* The enemy cooks a small&bowl of flies.";
|
|
85
|
if (mycommand >= 40)
|
|
86
|
global.msg[0] = "* You can't concentrate&over the sound of croaking.";
|
|
87
|
if (mycommand >= 60)
|
|
88
|
global.msg[0] = "* The battlefield is filled with the smell of mustard seed.";
|
|
89
|
if (mycommand >= 80)
|
|
90
|
global.msg[0] = "* You think hard about words&that rhyme with frog.^4 &* Log.^4 Dog.^4 Snog.^4 Pog?";
|
|
91
|
if (mycommand >= 90)
|
|
92
|
global.msg[0] = "* A frog can't lick its&wounds because its tongue is&just too stretchy.";
|
|
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 == 1)
|
|
103
|
{
|
|
104
|
global.msc = 0;
|
|
105
|
global.msg[0] = "* You say some raunchy&things to those frogs.&Jeeeez!/";
|
|
106
|
global.msg[1] = "* There's definitely some&sort of reaction./^";
|
|
107
|
OBJ_WRITER.halt = 3;
|
|
108
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
109
|
with (iii)
|
|
110
|
halt = 0;
|
|
111
|
}
|
|
112
|
if (whatiheard == 3)
|
|
113
|
{
|
|
114
|
global.myfight = 0;
|
|
115
|
global.mnfight = 1;
|
|
116
|
OBJ_WRITER.halt = 3;
|
|
117
|
}
|
|
118
|
if (whatiheard == 0)
|
|
119
|
{
|
|
120
|
global.myfight = 3;
|
|
121
|
global.bmenuno = 6;
|
|
122
|
global.msc = 0;
|
|
123
|
global.msg[0] = "* What's your favorite color?& & * Red * Orange";
|
|
124
|
OBJ_WRITER.halt = 3;
|
|
125
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_INSTAWRITER);
|
|
126
|
with (iii)
|
|
127
|
halt = 0;
|
|
128
|
}
|
|
129
|
if (whatiheard == 6)
|
|
130
|
{
|
|
131
|
global.msc = 0;
|
|
132
|
global.msg[0] = "* Do robots dream of&electric sex?/^";
|
|
133
|
OBJ_WRITER.halt = 3;
|
|
134
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
135
|
}
|
|
136
|
if (whatiheard == 7)
|
|
137
|
{
|
|
138
|
global.msc = 0;
|
|
139
|
global.msg[0] = "* I hate programming this./^";
|
|
140
|
OBJ_WRITER.halt = 3;
|
|
141
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
142
|
with (iii)
|
|
143
|
halt = 0;
|
|
144
|
}
|
|
145
|
global.heard = 1;
|
|
146
|
}
|
|
147
|
}
|
|
148
|
}
|
|
149
|
if (global.myfight == 4)
|
|
150
|
{
|
|
151
|
if (global.mercyuse == 0)
|
|
152
|
{
|
|
153
|
script_execute(scr_mercystandard);
|
|
154
|
if (mercy < 0)
|
|
155
|
instance_destroy();
|
|
156
|
}
|
|
157
|
}
|