|
1
|
scr_monstersetupscr_monstersetup
myself = 0;
if (global.monster[1] == 1)
{
myself = 2;
global.monster[2] = 1;
}
if (global.monster[0] == 1 && myself != 2)
{
myself = 1;
global.monster[1] = 1;
}
if (global.monster[0] == 0)
{
myself = 0;
global.monster[0] = 1;
}
if (global.monstertype[myself] == 1TestFroggit)
{
global.monstername[myself] = ;
global.monstermaxhp[myself] = 23;
global.monsterhp[myself] = 23;
global.monsteratk[myself] = 4;
global.monsterdef[myself] = 1;
global.xpreward[myself] = 2;
global.goldreward[myself] = 2;
global.itemrewardid = 1;
global.itemrewardchance = 50;
}
if (global.monstertype[myself] == 2Dummy)
{
global.monstername[myself] = ;
global.monstermaxhp[myself] = 15;
global.monsterhp[myself] = 15;
global.monsteratk[myself] = 0;
global.monsterdef[myself] = -5;
global.xpreward[myself] = 0;
global.goldreward[myself] = 0;
global.itemrewardid = 0;
global.itemrewardchance = 0;
}
if (global.monstertype[myself] == 3Froggit)
{
global.monstername[myself] = ;
global.monstermaxhp[myself] = 20;
global.monsterhp[myself] = 20;
global.monsteratk[myself] = 4;
global.monsterdef[myself] = 1;
global.xpreward[myself] = 10;
global.goldreward[myself] = 20;
global.itemrewardid = 1;
global.itemrewardchance = 50;
}
if (global.monstertype[myself] == 4Froggit)
{
global.monstername[myself] = ;
global.monstermaxhp[myself] = 30;
global.monsterhp[myself] = 30;
global.monsteratk[myself] = 4;
global.monsterdef[myself] = 4;
global.xpreward[myself] = 3;
global.goldreward[myself] = 2;
global.itemrewardid = 1;
global.itemrewardchance = 50;
}
if (global.monstertype[myself] == 5Whimsun)
{
global.monstername[myself] = ;
global.monstermaxhp[myself] = 10;
global.monsterhp[myself] = 10;
global.monsteratk[myself] = 4;
global.monsterdef[myself] = 0;
global.xpreward[myself] = 2;
global.goldreward[myself] = 2;
global.itemrewardid = 1;
global.itemrewardchance = 50;
}
if (global.monstertype[myself] == 6Moldsmal)
{
global.monstername[myself] = ;
global.monstermaxhp[myself] = 50;
global.monsterhp[myself] = 50;
global.monsteratk[myself] = 4;
global.monsterdef[myself] = 0;
global.xpreward[myself] = 3;
global.goldreward[myself] = 3;
global.itemrewardid = 1;
global.itemrewardchance = 50;
}
if (global.monstertype[myself] == 7Migosp)
{
global.monstername[myself] = ;
global.monstermaxhp[myself] = 40;
global.monsterhp[myself] = 40;
global.monsteratk[myself] = 5;
global.monsterdef[myself] = 4;
global.xpreward[myself] = 5;
global.goldreward[myself] = 4;
global.itemrewardid = 1;
global.itemrewardchance = 50;
}
if (global.monstertype[myself] == 8Vegetoid)
... ();
|
|
2
|
image_speed = 0;
|
|
3
|
part1 = 598;
|
|
4
|
mypart1 = instance_create(x + 20, y, part1);
|
|
5
|
alarm[9] = 8; gml_Object_obj_migospel_Alarm_9.gml
mypart1.parent = global.monsterinstance[myself];
|
|
6
|
hurtanim = 0;
|
|
7
|
hurtsound = snd_ehurt1;
|
|
8
|
talked = 0;
|
|
9
|
whatiheard = -1;
|
|
10
|
attacked = 0;
|
|
11
|
killed = 0;
|
|
12
|
global.heard = 0;
|
|
13
|
takedamage = 0;
|
|
14
|
mercymod = -40;
|
|
15
|
sha = 0;
|
|
16
|
shb = 0;
|
|
17
|
ht = 100;
|
|
18
|
wd = 100;
|
|
19
|
pop = scr_monstersumscr_monstersum
return global.monster[0] + global.monster[1] + global.monster[2]; ();
|
|
20
|
if (pop == 1)
|
|
21
|
{
|
|
22
|
mercymod = 200;
|
|
23
|
if (instance_exists(mypart1))
|
|
24
|
mypart1.sad = 1;
|
|
25
|
}
|
|
26
|
sad = 0;
|