| 1 |
if (global.mnfight == 3) |
| 2 |
attacked = 0; |
| 3 |
scr_blconmatchscr_blconmatchif (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; |
| 9 |
alarm[6] = 1;gml_Object_obj_dogeB_Alarm_6.gmlblcon = instance_create((x + sprite_width) - 8, ystart + 8, obj_blconsm);
mycommand = round(random(100));
if (global.turn == 0)
mycommand = 10;
if (global.turn == 1)
mycommand = 90;
if (mycommand >= 0 && mycommand < 33)
global.msg[0] = "You're&rather&slow.";
if (mycommand >= 33 && mycommand < 66)
global.msg[0] = "Come on,&let's go.";
if (mycommand >= 66 && mycommand <= 100)
global.msg[0] = "Hurry&up...";
if (global.turn == 3)
global.msg[0] = "Want to&go on&a walk?";
if (whatiheard == 2 && mercymod == 21)
global.msg[0] = "Pet...&me...";
if (whatiheard == 2 && mercymod == 20)
{
global.msg[0] = "Oh boy!&Oh boy!&Oh boy!&Oh boy!";
mercymod = 21;
}
if (whatiheard == 5 && mercymod == 100)
{
global.msg[0] = "Ahhhh,&humans&are&nice.";
global.monsterdef[myself] = -30;
}
if (mercymod == 102)
{
mercymod = 103;
global.msg[0] = "Hey!!&That&was&fun!!";
}
global.msg[1] = "%%%";
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]) |
| 17 |
alarm[5] = 2; |
| 18 |
} |
| 19 |
if (global.hurtanim[myself] == 1) |
| 20 |
{ |
| 21 |
shudder = 16; |
| 22 |
alarm[3] = global.damagetimer;gml_Object_obj_dogeB_Alarm_3.gmlif (sprite_index != hurtsprite)
{
dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y, obj_dmgwriter);
global.damage = takedamage;
with (dmgwriter)
dmg = global.damage;
sprite_index = hurtsprite;
snd_play(hurtsound);
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; |
| 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 = normalsprite; |
| 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 |
gen = instance_create(global.idealborder[1] - 50, global.idealborder[3] - 45, blt_tinypom_leap); |
| 68 |
gen.dmg = global.monsteratk[myself]; |
| 69 |
global.border = 8; |
| 70 |
gen.bullettype = 0; |
| 71 |
} |
| 72 |
if (mycommand >= 50) |
| 73 |
{ |
| 74 |
global.firingrate = 13; |
| 75 |
gen = instance_create(global.idealborder[1] - 50, global.idealborder[3] - 45, blt_bluespear); |
| 76 |
gen.dmg = global.monsteratk[myself]; |
| 77 |
global.border = 8; |
| 78 |
gen.bullettype = 0; |
| 79 |
} |
| 80 |
gen.myself = myself; |
| 81 |
gen.dmg = global.monsteratk[myself]; |
| 82 |
if (mycommand >= 0) |
| 83 |
global.msg[0] = "* Doge is pacing anxiously."; |
| 84 |
if (mycommand >= 30) |
| 85 |
global.msg[0] = "* Doge paws at an imaginary& door."; |
| 86 |
if (mycommand >= 70) |
| 87 |
global.msg[0] = "* Doge is looking at you and& whining."; |
| 88 |
if (mycommand >= 90) |
| 89 |
global.msg[0] = "* Doge is wondering where she& put her leash."; |
| 90 |
if (mercymod >= 20) |
| 91 |
global.msg[0] = "* Doge is now primed for petting."; |
| 92 |
if (mercymod >= 100) |
| 93 |
global.msg[0] = "* Doge looks satisfied."; |
| 94 |
if (global.monsterhp[myself] < (global.monstermaxhp[myself] / 3)) |
| 95 |
global.msg[0] = "* Doge needs a vet."; |
| 96 |
attacked = 1; |
| 97 |
} |
| 98 |
} |
| 99 |
if (global.myfight == 2) |
| 100 |
{ |
| 101 |
if (whatiheard != -1) |
| 102 |
{ |
| 103 |
if (global.heard == 0) |
| 104 |
{ |
| 105 |
if (whatiheard == 0) |
| 106 |
{ |
| 107 |
global.msc = 0; |
| 108 |
global.msg[0] = '* DOGE - ATK 7 DEF 5&* Pronounced "dohj." Soft j^1.&* Seems like she wants a walk./^'; |
| 109 |
OBJ_WRITER.halt = 3; |
| 110 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
| 111 |
with (iii) |
| 112 |
halt = 0; |
| 113 |
} |
| 114 |
if (whatiheard == 1) |
| 115 |
{ |
| 116 |
global.msc = 0; |
| 117 |
global.msg[0] = "* You tried to bathe Doge^2,& but she's perfectly clean.../^"; |
| 118 |
OBJ_WRITER.halt = 3; |
| 119 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
| 120 |
with (iii) |
| 121 |
halt = 0; |
| 122 |
} |
| 123 |
if (whatiheard == 2) |
| 124 |
{ |
| 125 |
if (mercymod <= 10) |
| 126 |
{ |
| 127 |
global.msc = 0; |
| 128 |
global.msg[0] = "* You go on a short walk with& the Doge./^"; |
| 129 |
OBJ_WRITER.halt = 3; |
| 130 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
| 131 |
with (iii) |
| 132 |
halt = 0; |
| 133 |
mercymod = 20; |
| 134 |
} |
| 135 |
else |
| 136 |
{ |
| 137 |
global.msc = 0; |
| 138 |
global.msg[0] = "* The Doge seems all tuckered& out./^"; |
| 139 |
OBJ_WRITER.halt = 3; |
| 140 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
| 141 |
with (iii) |
| 142 |
halt = 0; |
| 143 |
} |
| 144 |
} |
| 145 |
if (whatiheard == 3) |
| 146 |
{ |
| 147 |
global.msc = 0; |
| 148 |
global.msg[0] = "* You called Doge over.&* Doge came close./^"; |
| 149 |
OBJ_WRITER.halt = 3; |
| 150 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
| 151 |
with (iii) |
| 152 |
halt = 0; |
| 153 |
if (mercymod == 0) |
| 154 |
mercymod = 10; |
| 155 |
} |
| 156 |
if (whatiheard == 4) |
| 157 |
{ |
| 158 |
global.msc = 0; |
| 159 |
global.msg[0] = "* Dry a dry doge?&* Your mind boggles at this& impossibility./^"; |
| 160 |
OBJ_WRITER.halt = 3; |
| 161 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
| 162 |
with (iii) |
| 163 |
halt = 0; |
| 164 |
} |
| 165 |
if (whatiheard == 5) |
| 166 |
{ |
| 167 |
if (mercymod >= 20) |
| 168 |
{ |
| 169 |
global.msc = 0; |
| 170 |
global.msg[0] = "* You pet the Doge.&* What a good Doge./^"; |
| 171 |
OBJ_WRITER.halt = 3; |
| 172 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
| 173 |
with (iii) |
| 174 |
halt = 0; |
| 175 |
mercymod = 100; |
| 176 |
} |
| 177 |
else |
| 178 |
{ |
| 179 |
global.msc = 0; |
| 180 |
global.msg[0] = "* Doge seems too dangerous& to pet..^1.&* For now./^"; |
| 181 |
OBJ_WRITER.halt = 3; |
| 182 |
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER); |
| 183 |
with (iii) |
| 184 |
halt = 0; |
| 185 |
} |
| 186 |
} |
| 187 |
global.heard = 1; |
| 188 |
} |
| 189 |
} |
| 190 |
} |
| 191 |
if (global.myfight == 4) |
| 192 |
{ |
| 193 |
if (global.mercyuse == 0) |
| 194 |
{ |
| 195 |
script_execute(scr_mercystandard); |
| 196 |
if (mercy < 0) |
| 197 |
instance_destroy(); |
| 198 |
} |
| 199 |
} |