Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_mizzle_enemy_Step_0

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
{
3
    init = 1;
4
    if (global.flag[1544] == 0)
5
    {
6
        if (idlesprite == spr_holywater_idle)
7
        {
8
            global.monstercomment[myself] = stringsetloc(
(Tired)
"(Tired)", "scr_monster_make_tired_slash_scr_monster_make_tired_gml_1_0"
);
9
            global.monsterstatus[myself] = 1;
10
            startedtired = true;
11
            init = 1;
12
            global.battlemsg[0] = stringsetloc(
* Mizzle is sleeping peacefully!
"* Mizzle is sleeping peacefully!", "obj_mizzle_enemy_slash_Step_0_gml_19_0"
);
13
        }
14
    }
15
}
16
if (global.monsterstatus[myself] == 1)
17
{
18
    idlesprite = spr_holywater_idle;
19
}
20
else
21
{
22
    idlesprite = spr_holywater_alarm;
23
    global.monstercomment[myself] = "";
24
    if (startedtired == true)
25
        global.flag[1544] = 1;
26
}
27
if (global.mercymod[myself] >= 100)
28
{
29
    if (global.monsterstatus[myself] == 1)
30
        idlesprite = spr_holywater_idle_pink;
31
    else
32
        idlesprite = spr_holywater_alarm_pink;
33
    hurtsprite = spr_holywater_hurt_pink;
34
}
35
sparedsprite = idlesprite;
36
if (global.monster[myself] == 1)
37
{
38
    if (
scr_isphase
scr_isphase

function
scr_isphase(arg0)
{ __isphase = 0; if (arg0 == "menu" && global.myfight == 0) __isphase = 1; if (arg0 == "acting" && global.myfight == 3) __isphase = 1; if (arg0 == "victory" && global.myfight == 7) __isphase = 1; if (arg0 == "attack" || arg0 == "fight") { if (global.myfight == 1) __isphase = 1; } if (arg0 == "spell" || arg0 == "item") { if (global.myfight == 4) __isphase = 1; } if (arg0 == "enemytalk" || arg0 == "balloon") { if (global.mnfight == 1) __isphase = 1; } if (arg0 == "enemyattack" || arg0 == "bullets") { if (global.mnfight == 2) __isphase = 1; } return __isphase; }
("enemytalk") && talked == 0)
39
    {
40
        
scr_randomtarget
scr_randomtarget

function
scr_randomtarget()
{ abletotarget = 1; if (global.charcantarget[0] == 0 && global.charcantarget[1] == 0 && global.charcantarget[2] == 0) abletotarget = 0; mytarget = choose(0, 1, 2); if (abletotarget == 1) { while (global.charcantarget[mytarget] == 0) mytarget = choose(0, 1, 2); } else { mytarget = 3; } global.targeted[mytarget] = 1; if (global.chapter >= 2 && mytarget != 3) { if (global.charcantarget[0]) global.targeted[0] = 1; if (global.charcantarget[1]) global.targeted[1] = 1; if (global.charcantarget[2]) global.targeted[2] = 1; mytarget = 4; } }
();
41
        setbattlemsg = false;
42
        myattackchoice = choose(0, 1);
43
        if (global.monsterstatus[myself] == 1)
44
            myattackchoice = 0;
45
        else
46
            myattackchoice = 1;
47
        myattackpriority = 1;
48
        if (myattackchoice == 2)
49
            myattackpriority = 50;
50
        
scr_attackpriority
scr_attackpriority

function
scr_attackpriority(arg0)
{ if (i_ex(obj_battlecontroller)) { if (obj_battlecontroller.attackpriority < arg0) { obj_battlecontroller.attackpriority = arg0; return true; } else { return false; } } else { return false; } }
(myattackpriority - 1);
51
        if (!instance_exists(obj_darkener))
52
            instance_create(0, 0, obj_darkener);
53
        global.typer = 50;
54
        rr = choose(0, 1, 2, 3);
55
        if (global.monsterstatus[myself] != 1)
56
        {
57
            if (rr == 0)
58
                msgsetloc(0, 
Who's there?
Who's there?
"Who's there?&Who's there?", "obj_mizzle_enemy_slash_Step_0_gml_76_0"
);
59
            if (rr == 1)
60
                msgsetloc(0, 
Water you
doing?
"Water you&doing?", "obj_mizzle_enemy_slash_Step_0_gml_77_0"
);
61
            if (rr == 2)
62
                msgsetloc(0, 
What is it?
What is it?
"What is it?&What is it?", "obj_mizzle_enemy_slash_Step_0_gml_78_0"
);
63
            if (rr == 3)
64
                msgsetloc(0, 
Am I still
dreaming?
"Am I still&dreaming?", "obj_mizzle_enemy_slash_Step_0_gml_79_0"
);
65
            myblcon = 
scr_enemyblcon
scr_enemyblcon

function
scr_enemyblcon(arg0, arg1, arg2)
{ if (arg2 == 0) { mywriter = instance_create(arg0, arg1, obj_writer); return mywriter; } if (arg2 == 1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); return myblcon; } if (arg2 == 2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v; return myblcon; } if (arg2 == 3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; return myblcon; } if (arg2 == 4) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 0; myblcon.image_speed = 0; return myblcon; } if (arg2 == 5) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 1; myblcon.image_speed = 0; return myblcon; } if (arg2 == 6) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_clubs; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 7) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_r; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 8) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_tall; return myblcon; } if (arg2 == 10) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; return myblcon; } if (arg2 == 11) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_z; return myblcon; } }
(x - 10, y + 42, 10);
66
            myblcon.creator = id;
67
        }
68
        else
69
        {
70
            msgsetloc(0, "", "obj_mizzle_enemy_slash_Step_0_gml_85_0");
71
            myblcon = 
scr_enemyblcon
scr_enemyblcon

function
scr_enemyblcon(arg0, arg1, arg2)
{ if (arg2 == 0) { mywriter = instance_create(arg0, arg1, obj_writer); return mywriter; } if (arg2 == 1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); return myblcon; } if (arg2 == 2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v; return myblcon; } if (arg2 == 3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; return myblcon; } if (arg2 == 4) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 0; myblcon.image_speed = 0; return myblcon; } if (arg2 == 5) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 1; myblcon.image_speed = 0; return myblcon; } if (arg2 == 6) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_clubs; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 7) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_r; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 8) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_tall; return myblcon; } if (arg2 == 10) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; return myblcon; } if (arg2 == 11) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_z; return myblcon; } }
(x - 43, y + 42, 11);
72
            myblcon.creator = id;
73
        }
74
        talked = 1;
75
        talktimer = 0;
76
        rtimer = 0;
77
    }
78
    if (talked == 1 && 
scr_isphase
scr_isphase

function
scr_isphase(arg0)
{ __isphase = 0; if (arg0 == "menu" && global.myfight == 0) __isphase = 1; if (arg0 == "acting" && global.myfight == 3) __isphase = 1; if (arg0 == "victory" && global.myfight == 7) __isphase = 1; if (arg0 == "attack" || arg0 == "fight") { if (global.myfight == 1) __isphase = 1; } if (arg0 == "spell" || arg0 == "item") { if (global.myfight == 4) __isphase = 1; } if (arg0 == "enemytalk" || arg0 == "balloon") { if (global.mnfight == 1) __isphase = 1; } if (arg0 == "enemyattack" || arg0 == "bullets") { if (global.mnfight == 2) __isphase = 1; } return __isphase; }
("enemytalk"))
79
        
scr_blconskip
scr_blconskip

function
scr_blconskip(arg0)
{ if (arg0 >= 0) { if (button1_p() && talktimer > arg0) talktimer = talkmax; talktimer += 1; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); with (obj_guei_balloon) instance_destroy(); global.mnfight = 1.5; } } else if (arg0 == -1) { if (instance_exists(obj_writer) == false) global.mnfight = 1.5; } else if (arg0 == -2) { talktimer += 1; if (talktimer > 15) talktimer = talkmax; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); with (obj_guei_balloon) instance_destroy(); global.mnfight = 1.5; } } }
(15);
80
    if (global.mnfight == 1.5)
81
    {
82
        if (
scr_attackpriority
scr_attackpriority

function
scr_attackpriority(arg0)
{ if (i_ex(obj_battlecontroller)) { if (obj_battlecontroller.attackpriority < arg0) { obj_battlecontroller.attackpriority = arg0; return true; } else { return false; } } else { return false; } }
(myattackpriority))
83
        {
84
            if (!instance_exists(obj_growtangle))
85
                instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
86
            if (!instance_exists(obj_moveheart))
87
                
scr_moveheart
scr_moveheart

function
scr_moveheart()
{ global.inv = 0; if (global.chapter == 4 && (i_ex(obj_hammer_of_justice_enemy) || i_ex(obj_sound_of_justice_enemy))) return instance_create(obj_herosusie.x - 250, obj_herosusie.y + 40, obj_moveheart); else return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart); }
();
88
            global.mnfight = 2;
89
            
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(90);
90
        }
91
    }
92
    if (
scr_isphase
scr_isphase

function
scr_isphase(arg0)
{ __isphase = 0; if (arg0 == "menu" && global.myfight == 0) __isphase = 1; if (arg0 == "acting" && global.myfight == 3) __isphase = 1; if (arg0 == "victory" && global.myfight == 7) __isphase = 1; if (arg0 == "attack" || arg0 == "fight") { if (global.myfight == 1) __isphase = 1; } if (arg0 == "spell" || arg0 == "item") { if (global.myfight == 4) __isphase = 1; } if (arg0 == "enemytalk" || arg0 == "balloon") { if (global.mnfight == 1) __isphase = 1; } if (arg0 == "enemyattack" || arg0 == "bullets") { if (global.mnfight == 2) __isphase = 1; } return __isphase; }
("bullets") && attacked == 0)
93
    {
94
        rtimer += 1;
95
        if (rtimer == 12)
96
        {
97
            if (myattackchoice == 0)
98
            {
99
                global.monsterattackname[myself] = "newholywatereye";
100
                dc = 
scr_bulletspawner
scr_bulletspawner

function
scr_bulletspawner(arg0, arg1, arg2)
{ __dc = instance_create(arg0, arg1, arg2); __dc.creator = myself; __dc.creatorid = id; __dc.target = mytarget; __dc.damage = global.monsterat[myself] * 5; return __dc; }
(x, y, obj_dbulletcontroller);
101
                dc.type = 110.5;
102
                dc.special = difficulty;
103
            }
104
            else if (myattackchoice == 1)
105
            {
106
                global.monsterattackname[myself] = "holywaterC";
107
                dc = 
scr_bulletspawner
scr_bulletspawner

function
scr_bulletspawner(arg0, arg1, arg2)
{ __dc = instance_create(arg0, arg1, arg2); __dc.creator = myself; __dc.creatorid = id; __dc.target = mytarget; __dc.damage = global.monsterat[myself] * 5; return __dc; }
(x, y, obj_dbulletcontroller);
108
                dc.type = 111;
109
                dc.special = difficulty;
110
            }
111
            
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(270);
112
            ruckus = 0;
113
            silence = 0;
114
            turns += 1;
115
            attacked = 1;
116
        }
117
    }
118
    if (global.mnfight == 2 && global.turntimer <= 1)
119
    {
120
        if (setbattlemsg == false)
121
        {
122
            global.typer = 6;
123
            global.fc = 0;
124
            rr = choose(0, 1, 2, 3);
125
            if (
scr_messagepriority
scr_messagepriority

function
scr_messagepriority(arg0)
{ if (i_ex(obj_battlecontroller)) { if (obj_battlecontroller.messagepriority < arg0) { obj_battlecontroller.messagepriority = arg0; return true; } else { return false; } } else { return false; } }
(random(2)))
126
            {
127
                var substring = string(myself);
128
                if (rr == 0)
129
                    global.battlemsg[0] = stringsetloc(
* Mizzle sings effervescently.
"* Mizzle sings effervescently.", "obj_mizzle_enemy_slash_Step_0_gml_186_0"
);
130
                if (rr == 1)
131
                    global.battlemsg[0] = stringsetloc(
* Mizzle ho-hums, ho-hums.
"* Mizzle ho-hums, ho-hums.", "obj_mizzle_enemy_slash_Step_0_gml_187_0"
);
132
                if (rr == 2)
133
                    global.battlemsg[0] = stringsetloc(
* Mizzle uses a ring left by a cup as a magic circle.
"* Mizzle uses a ring left by a cup as a magic circle.", "obj_mizzle_enemy_slash_Step_0_gml_188_0"
);
134
                if (rr == 3)
135
                    global.battlemsg[0] = stringsetloc(
* Mizzle contemplates going back in her container.
"* Mizzle contemplates going back in her container.", "obj_mizzle_enemy_slash_Step_0_gml_189_0"
);
136
                if (irandom(100) < 3)
137
                    global.battlemsg[0] = stringsetloc(
* Smells like the rainbow made by the sprinkler.
"* Smells like the rainbow made by the sprinkler.", "obj_mizzle_enemy_slash_Step_0_gml_190_0"
);
138
            }
139
            if (global.monsterstatus[myself] == 1)
140
            {
141
                if (
scr_messagepriority
scr_messagepriority

function
scr_messagepriority(arg0)
{ if (i_ex(obj_battlecontroller)) { if (obj_battlecontroller.messagepriority < arg0) { obj_battlecontroller.messagepriority = arg0; return true; } else { return false; } } else { return false; } }
(100 + random(2)))
142
                    global.battlemsg[0] = stringsetloc(
* Mizzle is dozing.
"* Mizzle is dozing.", "obj_mizzle_enemy_slash_Step_0_gml_195_0"
);
143
            }
144
            if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 3))
145
            {
146
                if (
scr_messagepriority
scr_messagepriority

function
scr_messagepriority(arg0)
{ if (i_ex(obj_battlecontroller)) { if (obj_battlecontroller.messagepriority < arg0) { obj_battlecontroller.messagepriority = arg0; return true; } else { return false; } } else { return false; } }
(100 + random(2)))
147
                    global.battlemsg[0] = stringsetloc(
* Mizzle's hat is melting.
"* Mizzle's hat is melting.", "obj_mizzle_enemy_slash_Step_0_gml_200_0"
);
148
            }
149
            if (global.mercymod[myself] >= 100)
150
            {
151
                if (
scr_messagepriority
scr_messagepriority

function
scr_messagepriority(arg0)
{ if (i_ex(obj_battlecontroller)) { if (obj_battlecontroller.messagepriority < arg0) { obj_battlecontroller.messagepriority = arg0; return true; } else { return false; } } else { return false; } }
(100 + random(2)))
152
                    global.battlemsg[0] = stringsetloc(
* Mizzle turns the hue of unsweetened caffeine-free pink lemonade.
"* Mizzle turns the hue of unsweetened caffeine-free pink lemonade.", "obj_mizzle_enemy_slash_Step_0_gml_205_0"
);
153
            }
154
            setbattlemsg = true;
155
        }
156
    }
157
}
158
if (global.myfight == 3)
159
{
160
    xx = __view_get(e__VW.XView, 0);
161
    yy = __view_get(e__VW.YView, 0);
162
    if (acting == 1 && actcon == 0)
163
    {
164
        actcon = 1;
165
        msgsetloc(0, 
* MIZZLE - A sleepy water spirit. When TIRED, use Ralsei's PACIFY!Wait for inputClose Message
"* MIZZLE - A sleepy water spirit. When TIRED, use Ralsei's PACIFY!/%", "obj_mizzle_enemy_slash_Step_0_gml_226_0"
);
166
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
167
    }
168
    if (acting == 2 && actcon == 0)
169
    {
170
        acting = 2.1;
171
        msgsetloc(0, 
* You DAZZLEd MIZZLE!Wait for inputClose Message
"* You DAZZLEd MIZZLE!/%", "obj_mizzle_enemy_slash_Step_0_gml_233_0"
);
172
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
173
    }
174
    if (acting == 2.1 && actcon == 0)
175
    {
176
        dazzletimer++;
177
        if (dazzletimer == 1)
178
            
scr_battle_sprite_set
scr_battle_sprite_set

function
scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 8; hurt = 0; attacktimer = 0; sprite_index = arg1; image_speed = arg2; image_index = 0; if (arg3 == 0) maxframes = image_number; global.faceaction[myself] = 0; } } }
("kris", spr_krisb_act, 1, 1);
179
        if (dazzletimer == 1)
180
            snd_play_x(snd_bell_bounce_short, 1, 1);
181
        if (dazzletimer == 11)
182
            snd_play_x(snd_bell_bounce_short, 1, 1.1);
183
        if (dazzletimer == 21)
184
            snd_play_x(snd_bell_bounce_short, 1, 1.2);
185
        if (dazzletimer == 23)
186
        {
187
            repeat (6)
188
                instance_create_depth(obj_herokris.x + 40, obj_herokris.y + 20 + irandom(40), obj_herokris.depth + 1, obj_dazzle_particle);
189
        }
190
        if (dazzletimer >= 30)
191
        {
192
            if (global.monsterstatus[myself] == 1)
193
                
scr_mercyadd
scr_mercyadd

function
scr_mercyadd(arg0, arg1)
{ global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; with (obj_dmgwriter) { if (type == 5 && mercytimer < 8) _playsound = 0; } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, 50);
194
            else
195
                
scr_mercyadd
scr_mercyadd

function
scr_mercyadd(arg0, arg1)
{ global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; with (obj_dmgwriter) { if (type == 5 && mercytimer < 8) _playsound = 0; } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, 35);
196
            var offset = 0;
197
            if (object_index == obj_guei_enemy)
198
                offset = 20;
199
            if (global.monsterstatus[myself] == 1)
200
            {
201
                var __tiredwriter = instance_create(global.monsterx[myself], ((global.monstery[myself] - (global.hittarget[global.chartarget[myself]] * 20)) + 20) - offset, obj_dmgwriter);
202
                __tiredwriter.type = 14;
203
            }
204
            global.monsterstatus[myself] = 0;
205
            global.hittarget[global.chartarget[myself]] += 1;
206
            
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; global.faceaction[myself] = 0; } } }
("kris");
207
            dazzletimer = 0;
208
            actcon = 1;
209
        }
210
    }
211
    if (acting == 3 && actcon == 0)
212
    {
213
        msgsetloc(0, 
* Susie EMBEZZLED an item!Wait for inputClose Message
"* Susie EMBEZZLED an item!/%", "obj_mizzle_enemy_slash_Step_0_gml_272_0"
);
214
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
215
        
scr_battle_sprite_set
scr_battle_sprite_set

function
scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 8; hurt = 0; attacktimer = 0; sprite_index = arg1; image_speed = arg2; image_index = 0; if (arg3 == 0) maxframes = image_number; global.faceaction[myself] = 0; } } }
("susie", spr_susie_jump_back, 1, 1);
216
        obj_herosusie.vspeed = -40;
217
        snd_play(snd_jump);
218
        acting = 3.1;
219
    }
220
    if (acting == 3.1 && actcon == 0)
221
    {
222
        timer++;
223
        if (timer == 20)
224
        {
225
            obj_herosusie.x = x + 20;
226
            obj_herosusie.y = cameray() - 100;
227
            obj_herosusie.vspeed = 30;
228
            obj_herosusie.depth = depth - 1;
229
        }
230
        if ((obj_herosusie.y + obj_herosusie.vspeed) > (y - 40) && timer > 20)
231
        {
232
            obj_herosusie.y = y - 40;
233
            obj_herosusie.vspeed = 0;
234
            snd_play(snd_bump);
235
            
scr_battle_sprite_set
scr_battle_sprite_set

function
scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 8; hurt = 0; attacktimer = 0; sprite_index = arg1; image_speed = arg2; image_index = 0; if (arg3 == 0) maxframes = image_number; global.faceaction[myself] = 0; } } }
("susie", spr_susie_kneel_heal_alt_right, 0, 1);
236
            
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
237
            with (obj_herosusie)
238
                
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
239
            timer = 0;
240
            acting = 3.3;
241
        }
242
    }
243
    if (acting == 3.3 && actcon == 0)
244
    {
245
        
scr_itemcheck_pocket
scr_itemcheck_pocket

function
scr_itemcheck_pocket(arg0)
{ haveit = 0; itemcount = 0; for (var __i = 0; __i < global.flag[64 storage_size]; __i += 1) { if (global.pocketitem[__i] == arg0) haveit = 1; if (global.pocketitem[__i] == arg0) itemcount += 1; } return haveit; }
(0);
246
        if (havestolenbefore)
247
        {
248
            snd_play(snd_cantselect);
249
            msgsetloc(0, 
* But, there was nothing to steal!Wait for inputClose Message
"* But, there was nothing to steal!/%", "obj_mizzle_enemy_slash_Step_0_gml_321_0"
);
250
        }
251
        else if (
scr_inventoryspace
scr_inventoryspace

function
scr_inventoryspace()
{ var freespace = 0; var inventoryspace = 12; for (var i = 0; i < inventoryspace; i++) { if (global.item[i] == 0) freespace++; } debug_message("from " + object_get_name(object_index) + ":
scr_inventoryspace(): free inventory slots=" + string(freespace));
return freespace; } function scr_pocketspace() { var pocketspace = 0; for (var i = 0; i < global.flag[64 storage_size]; i++) { if (global.pocketitem[i] == 0) pocketspace++; } debug_message("from " + object_get_name(object_index) + ": scr_pocketspace(): free pocket slots=" + string(pocketspace)); return pocketspace; }
() == 0 && itemcount == 0)
252
        {
253
            snd_play(snd_cantselect);
254
            msgsetloc(0, 
* But, your items are full!Wait for inputClose Message
"* But, your items are full!/%", "obj_mizzle_enemy_slash_Step_0_gml_326_0"
);
255
        }
256
        else if (global.monsterstatus[myself] == 0 && irandom(100) < 50)
257
        {
258
            snd_play(snd_cantselect);
259
            msgsetloc(0, 
* But, she failed!Wait for inputClose Message
"* But, she failed!/%", "obj_mizzle_enemy_slash_Step_0_gml_331_0"
);
260
        }
261
        else
262
        {
263
            snd_play(snd_item);
264
            havestolenbefore = true;
265
            var rand = irandom(100);
266
            if (rand <= 30)
267
            {
268
                msgsetloc(0, 
* Stole 100 Dark Dollars!Wait for inputClose Message
"* Stole 100 Dark Dollars!/%", "obj_mizzle_enemy_slash_Step_0_gml_342_0"
);
269
                
scr_itemget_anytype
scr_itemget_anytype

function
scr_itemget_anytype(arg0, arg1)
{ noroom = 0; if (arg1 == "item")
scr_itemget(arg0);
if (arg1 == "weapon")
scr_weaponget(arg0);
if (arg1 == "armor")
scr_armorget(arg0);
if (arg1 == "key")
scr_keyitemget(arg0);
if (arg1 == "money") global.gold += arg0; }
(100, "money");
270
            }
271
            else if (rand > 30 && rand <= 60)
272
            {
273
                msgsetloc(0, 
* Stole Scarlixir!Wait for inputClose Message
"* Stole Scarlixir!/%", "obj_mizzle_enemy_slash_Step_0_gml_347_0"
);
274
                
scr_itemget_anytype
scr_itemget_anytype

function
scr_itemget_anytype(arg0, arg1)
{ noroom = 0; if (arg1 == "item")
scr_itemget(arg0);
if (arg1 == "weapon")
scr_weaponget(arg0);
if (arg1 == "armor")
scr_armorget(arg0);
if (arg1 == "key")
scr_keyitemget(arg0);
if (arg1 == "money") global.gold += arg0; }
(62, "item");
275
            }
276
            else if (rand > 60 && rand <= 90)
277
            {
278
                msgsetloc(0, 
* Stole Darker Candy!Wait for inputClose Message
"* Stole Darker Candy!/%", "obj_mizzle_enemy_slash_Step_0_gml_352_0"
);
279
                
scr_itemget_anytype
scr_itemget_anytype

function
scr_itemget_anytype(arg0, arg1)
{ noroom = 0; if (arg1 == "item")
scr_itemget(arg0);
if (arg1 == "weapon")
scr_weaponget(arg0);
if (arg1 == "armor")
scr_armorget(arg0);
if (arg1 == "key")
scr_keyitemget(arg0);
if (arg1 == "money") global.gold += arg0; }
(1, "item");
280
            }
281
            else
282
            {
283
                msgsetloc(0, 
* Stole Revive Mint!Wait for inputClose Message
"* Stole Revive Mint!/%", "obj_mizzle_enemy_slash_Step_0_gml_357_0"
);
284
                
scr_itemget_anytype
scr_itemget_anytype

function
scr_itemget_anytype(arg0, arg1)
{ noroom = 0; if (arg1 == "item")
scr_itemget(arg0);
if (arg1 == "weapon")
scr_weaponget(arg0);
if (arg1 == "armor")
scr_armorget(arg0);
if (arg1 == "key")
scr_keyitemget(arg0);
if (arg1 == "money") global.gold += arg0; }
(2, "item");
285
            }
286
        }
287
        
scr_monster_make_tired
scr_monster_make_tired

function
scr_monster_make_tired(arg0)
{ if (global.monsterstatus[arg0] == 0) { __tiredwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] - (global.hittarget[arg0] * 20)) + 20, obj_dmgwriter); __tiredwriter.type = 13; global.hittarget[arg0] += 1; snd_play_x(snd_spellcast, 0.5, 0.9); } global.monstercomment[arg0] = stringsetloc(
(Tired)
"(Tired)", "scr_monster_make_tired_slash_scr_monster_make_tired_gml_1_0"
);
global.monsterstatus[arg0] = 1; }
(myself);
288
        acting = 3.4;
289
        timer = 0;
290
        
scr_mercyadd
scr_mercyadd

function
scr_mercyadd(arg0, arg1)
{ global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; with (obj_dmgwriter) { if (type == 5 && mercytimer < 8) _playsound = 0; } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, 35);
291
    }
292
    if (acting == 3.4 && actcon == 0)
293
    {
294
        timer++;
295
        if (timer == 20)
296
        {
297
            obj_herosusie.vspeed = -30;
298
            
scr_battle_sprite_set
scr_battle_sprite_set

function
scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 8; hurt = 0; attacktimer = 0; sprite_index = arg1; image_speed = arg2; image_index = 0; if (arg3 == 0) maxframes = image_number; global.faceaction[myself] = 0; } } }
("susie", spr_susie_jump_back, 1, 1);
299
            snd_stop(snd_jump);
300
            snd_play(snd_jump);
301
        }
302
        if (timer == 30)
303
        {
304
            obj_herosusie.x = obj_herosusie.xstart;
305
            obj_herosusie.vspeed = 30;
306
        }
307
        if (timer > 30 && (obj_herosusie.y + obj_herosusie.vspeed) > obj_herosusie.ystart)
308
        {
309
            obj_herosusie.vspeed = 0;
310
            obj_herosusie.x = obj_herosusie.xstart;
311
            obj_herosusie.y = obj_herosusie.ystart;
312
            
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; global.faceaction[myself] = 0; } } }
("susie");
313
            with (obj_herosusie)
314
                
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
315
            snd_play(snd_bump);
316
            acting = 3.5;
317
            timer = 0;
318
        }
319
    }
320
    if (acting == 3.5 && actcon == 0 && !i_ex(obj_writer))
321
    {
322
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
323
        acting = 3.6;
324
    }
325
    if (acting == 3.6 && actcon == 0 && !i_ex(obj_writer))
326
    {
327
        acting = 0;
328
        actcon = 1;
329
    }
330
    if (acting == 4 && actcon == 0)
331
    {
332
        msgsetloc(0, 
* Ralsei NUZZLEd MIZZLE!Wait for inputClose Message
"* Ralsei NUZZLEd MIZZLE!/%", "obj_mizzle_enemy_slash_Step_0_gml_413_0"
);
333
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
334
        acting = 4.1;
335
    }
336
    if (acting == 4.1 && actcon == 0)
337
    {
338
        timer++;
339
        if (timer == 1)
340
        {
341
            obj_heroralsei.x = x - 40;
342
            obj_heroralsei.y = y + 20;
343
            obj_heroralsei.depth = depth - 1;
344
            
scr_battle_sprite_set
scr_battle_sprite_set

function
scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 8; hurt = 0; attacktimer = 0; sprite_index = arg1; image_speed = arg2; image_index = 0; if (arg3 == 0) maxframes = image_number; global.faceaction[myself] = 0; } } }
("ralsei", spr_ralsei_nuzzle3, 2, 1);
345
            snd_play_x(snd_magicmarker, 1, 1);
346
        }
347
        if (timer < 31)
348
            obj_heroralsei.x += 0.1;
349
        if (timer > 31)
350
        {
351
            
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; global.faceaction[myself] = 0; } } }
("ralsei");
352
            obj_heroralsei.x = obj_heroralsei.xstart;
353
            obj_heroralsei.y = obj_heroralsei.ystart;
354
            obj_heroralsei.image_xscale = 2;
355
            timer = 0;
356
            acting = 4.2;
357
        }
358
    }
359
    if (acting == 4.2 && actcon == 0 && !i_ex(obj_writer))
360
    {
361
        if (global.monsterstatus[myself] == 0)
362
        {
363
            msgsetloc(0, 
* MIZZLE became TIRED!Wait for inputClose Message
"* MIZZLE became TIRED!/%", "obj_mizzle_enemy_slash_Step_0_gml_449_0"
);
364
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
365
        }
366
        
scr_mercyadd
scr_mercyadd

function
scr_mercyadd(arg0, arg1)
{ global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; with (obj_dmgwriter) { if (type == 5 && mercytimer < 8) _playsound = 0; } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, 35);
367
        
scr_monster_make_tired
scr_monster_make_tired

function
scr_monster_make_tired(arg0)
{ if (global.monsterstatus[arg0] == 0) { __tiredwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] - (global.hittarget[arg0] * 20)) + 20, obj_dmgwriter); __tiredwriter.type = 13; global.hittarget[arg0] += 1; snd_play_x(snd_spellcast, 0.5, 0.9); } global.monstercomment[arg0] = stringsetloc(
(Tired)
"(Tired)", "scr_monster_make_tired_slash_scr_monster_make_tired_gml_1_0"
);
global.monsterstatus[arg0] = 1; }
(myself);
368
        actcon = 1;
369
    }
370
    if (acting == 5 && actcon == 0)
371
    {
372
        msgsetloc(0, 
* Everyone sang a LULLABY!Wait for inputClose Message
"* Everyone sang a LULLABY!/%", "obj_mizzle_enemy_slash_Step_0_gml_459_0"
);
373
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
374
        acting = 5.1;
375
        timer = 0;
376
    }
377
    if (acting == 5.1 && actcon == 0 && !i_ex(obj_writer))
378
    {
379
        timer++;
380
        if (timer == 1)
381
        {
382
            with (obj_heroralsei)
383
                x += 8;
384
            
scr_battle_sprite_set
scr_battle_sprite_set

function
scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 8; hurt = 0; attacktimer = 0; sprite_index = arg1; image_speed = arg2; image_index = 0; if (arg3 == 0) maxframes = image_number; global.faceaction[myself] = 0; } } }
("ralsei", spr_ralsei_sing, 1, 1);
385
            snd_play(snd_ralseising1);
386
        }
387
        if (timer == 61)
388
        {
389
            with (obj_herosusie)
390
            {
391
                x -= 36;
392
                y -= 12;
393
            }
394
            
scr_battle_sprite_set
scr_battle_sprite_set

function
scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 8; hurt = 0; attacktimer = 0; sprite_index = arg1; image_speed = arg2; image_index = 0; if (arg3 == 0) maxframes = image_number; global.faceaction[myself] = 0; } } }
("susie", spr_susie_sing, 1, 1);
395
            snd_play(snd_suslaugh);
396
        }
397
        if (timer == 75)
398
        {
399
            
scr_battle_sprite_set
scr_battle_sprite_set

function
scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 8; hurt = 0; attacktimer = 0; sprite_index = arg1; image_speed = arg2; image_index = 0; if (arg3 == 0) maxframes = image_number; global.faceaction[myself] = 0; } } }
("ralsei", spr_ralsei_shocked_right, 1, 1);
400
            snd_stop(snd_ralseising1);
401
            with (obj_heroralsei)
402
            {
403
                x += 10;
404
                y += 10;
405
                
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
406
            }
407
        }
408
        if (timer > 120)
409
        {
410
            
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; global.faceaction[myself] = 0; } } }
("ralsei");
411
            
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; global.faceaction[myself] = 0; } } }
("susie");
412
            with (obj_herosusie)
413
            {
414
                x = xstart;
415
                y = ystart;
416
            }
417
            with (obj_heroralsei)
418
            {
419
                x = xstart;
420
                y = ystart;
421
            }
422
            timer = 0;
423
            acting = 5.2;
424
        }
425
    }
426
    if (acting == 5.2 && actcon == 0 && !i_ex(obj_writer))
427
    {
428
        var mizzles_asleep = 0;
429
        for (var i = 0; i < instance_number(obj_mizzle_enemy); i++)
430
        {
431
            mizzle[i] = instance_find(obj_mizzle_enemy, i);
432
            if (global.monsterstatus[mizzle[i].myself] == 1)
433
                mizzles_asleep++;
434
        }
435
        if (mizzles_asleep == 0)
436
        {
437
        }
438
        else
439
        {
440
            if (mizzles_asleep > 1)
441
                msgsetloc(0, 
* MIZZLEs woke up!Wait for inputClose Message
"* MIZZLEs woke up!/%", "obj_mizzle_enemy_slash_Step_0_gml_514_0"
);
442
            else
443
                msgsetloc(0, 
* MIZZLE woke up!Wait for inputClose Message
"* MIZZLE woke up!/%", "obj_mizzle_enemy_slash_Step_0_gml_515_0"
);
444
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
445
        }
446
        with (obj_monsterparent)
447
        {
448
            if (global.monsterstatus[myself] == 1)
449
            {
450
                global.monsterstatus[myself] = 0;
451
                global.monstercomment[myself] = "";
452
                var offset = 0;
453
                if (object_index == obj_guei_enemy)
454
                    offset = 20;
455
                var __tiredwriter = instance_create(global.monsterx[myself], ((global.monstery[myself] - (global.hittarget[global.chartarget[myself]] * 20)) + 20) - offset, obj_dmgwriter);
456
                __tiredwriter.type = 14;
457
                global.hittarget[global.chartarget[myself]] += 1;
458
                snd_play_x(snd_spellcast, 0.5, 1.2);
459
                
scr_mercyadd
scr_mercyadd

function
scr_mercyadd(arg0, arg1)
{ global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; with (obj_dmgwriter) { if (type == 5 && mercytimer < 8) _playsound = 0; } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, 50);
460
            }
461
            else
462
            {
463
                
scr_mercyadd
scr_mercyadd

function
scr_mercyadd(arg0, arg1)
{ global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; with (obj_dmgwriter) { if (type == 5 && mercytimer < 8) _playsound = 0; } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, 35);
464
            }
465
        }
466
        actcon = 1;
467
    }
468
    if (actingsus == 1 && actconsus == 1)
469
    {
470
        var rand = choose(0, 1, 2);
471
        if (rand == 0)
472
            msgsetloc(0, 
* Susie gargles loudly!Wait for inputClose Message
"* Susie gargles loudly!/%", "obj_mizzle_enemy_slash_Step_0_gml_542_0"
);
473
        if (rand == 1)
474
            msgsetloc(0, 
* Susie breaks a wet floor sign!Wait for inputClose Message
"* Susie breaks a wet floor sign!/%", "obj_mizzle_enemy_slash_Step_0_gml_543_0"
);
475
        if (rand == 2)
476
            msgsetloc(0, 
* Susie snores while awake!Wait for inputClose Message
"* Susie snores while awake!/%", "obj_mizzle_enemy_slash_Step_0_gml_544_0"
);
477
        
scr_mercyadd
scr_mercyadd

function
scr_mercyadd(arg0, arg1)
{ global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; with (obj_dmgwriter) { if (type == 5 && mercytimer < 8) _playsound = 0; } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, 20);
478
        
scr_simultext
scr_simultext

function
scr_simultext(arg0)
{ __simulorder = 0; if (arg0 == "kris") __simulorder = simulorderkri; if (arg0 == "susie") __simulorder = simulordersus; if (arg0 == "ralsei") __simulorder = simulorderral; if (arg0 == "noelle") __simulorder = simulordernoe; __yoffset = __simulorder * 30; global.typer = 4; battlewriter = instance_create(xx + 30, yy + 376 + __yoffset, obj_writer); }
("susie");
479
        if (simulordersus == 0)
480
            actconsus = 20;
481
        else
482
            actconsus = 0;
483
    }
484
    if (actingral == 1 && actconral == 1)
485
    {
486
        var rand = choose(0, 1, 2);
487
        if (rand == 0)
488
            msgsetloc(0, 
* Ralsei sips politely!Wait for inputClose Message
"* Ralsei sips politely!/%", "obj_mizzle_enemy_slash_Step_0_gml_555_0"
);
489
        if (rand == 1)
490
            msgsetloc(0, 
* Ralsei puts a wet floor sign!Wait for inputClose Message
"* Ralsei puts a wet floor sign!/%", "obj_mizzle_enemy_slash_Step_0_gml_556_0"
);
491
        if (rand == 2)
492
            msgsetloc(0, 
* Ralsei makes toothpaste!!!Wait for inputClose Message
"* Ralsei makes toothpaste!!!/%", "obj_mizzle_enemy_slash_Step_0_gml_557_0"
);
493
        
scr_mercyadd
scr_mercyadd

function
scr_mercyadd(arg0, arg1)
{ global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; with (obj_dmgwriter) { if (type == 5 && mercytimer < 8) _playsound = 0; } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, 25);
494
        
scr_simultext
scr_simultext

function
scr_simultext(arg0)
{ __simulorder = 0; if (arg0 == "kris") __simulorder = simulorderkri; if (arg0 == "susie") __simulorder = simulordersus; if (arg0 == "ralsei") __simulorder = simulorderral; if (arg0 == "noelle") __simulorder = simulordernoe; __yoffset = __simulorder * 30; global.typer = 4; battlewriter = instance_create(xx + 30, yy + 376 + __yoffset, obj_writer); }
("ralsei");
495
        if (simulorderral == 0)
496
            actconral = 20;
497
        else
498
            actconral = 0;
499
    }
500
    if (actcon == 20 || actconsus == 20 || actconral == 20)
501
    {
502
        if (
scr_terminate_writer
scr_terminate_writer

function
scr_terminate_writer()
{ __writerkilled = 0; __writerkillable = 0; __writerended = 0; if (instance_exists(obj_writer)) { obj_writer.__endcheckid = id; with (obj_writer) { if (reachedend == 1) { with (__endcheckid) __writerended++; } } if (__writerended == instance_number(obj_writer)) __writerkillable = 1; } else { __writerkilled = 1; } if (button1_p() && __writerkillable == 1) { with (obj_writer) instance_destroy(); __writerkilled = 1; } return __writerkilled; }
())
503
        {
504
            actconsus = -1;
505
            actconral = -1;
506
            actcon = 1;
507
        }
508
    }
509
    if (actcon == 1 && !instance_exists(obj_writer))
510
        
scr_nextact
scr_nextact

function
scr_nextact()
{ global.acting[0] = 0; global.acting[1] = 0; global.acting[2] = 0; global.actingsingle[global.currentactingchar] = 0; __minstance = global.monsterinstance[global.actingtarget[global.currentactingchar]]; with (__minstance) { acting = 0; actcon = 0; actconsus = 0; actconral = 0; actconnoe = 0; } var singleactcomplete = 0; while (global.currentactingchar < 3) { global.currentactingchar++; if (global.currentactingchar < 3) { if (global.actingsingle[global.currentactingchar] == 1) { __minstance = global.monsterinstance[global.actingtarget[global.currentactingchar]]; if (global.char[global.currentactingchar] == 2) { with (__minstance) actconsus = 1; if (global.actingsimul[global.currentactingchar] == 0) singleactcomplete = 1; break; } if (global.char[global.currentactingchar] == 3) { with (__minstance) actconral = 1; if (global.actingsimul[global.currentactingchar] == 0) singleactcomplete = 1; break; } if (global.char[global.currentactingchar] == 4) { with (__minstance) actconnoe = 1; if (global.actingsimul[global.currentactingchar] == 0) singleactcomplete = 1; break; } } } } if (i_ex(obj_sound_of_justice_enemy) && obj_sound_of_justice_enemy.phase == 1) { global.charturn = 3; global.myfight = 3; global.currentactingchar = 0; if (global.acting[0] == 0)
scr_nextact();
if (global.acting[0] == 1 && global.actingsimul[0] == 1)
scr_act_simul();
exit; } if (global.currentactingchar >= 3) { with (obj_monsterparent) { acting = 0; actingsus = 0; actingral = 0; actingnoe = 0; } global.currentactingchar = 0;
scr_attackphase();
} else if (!singleactcomplete) {
scr_act_simul();
} }
();
511
}
512
if (state == 3)
513
{
514
    
scr_enemyhurt_tired_after_damage
scr_enemyhurt_tired_after_damage

function
scr_enemyhurt_tired_after_damage(arg0)
{ if (global.monsterhp[myself] <= (global.monstermaxhp[myself] * arg0))
scr_monster_make_tired(myself);
}
(0.5);
515
    
scr_enemy_hurt
scr_enemy_hurt

function
scr_enemy_hurt()
{ hurttimer -= 1; if (hurttimer < 0) { state = 0; } else { if (global.monster[myself] == 0)
scr_defeatrun();
hurtshake += 1; if (hurtshake > 1) { if (shakex > 0) shakex -= 1; if (shakex < 0) shakex += 1; shakex = -shakex; hurtshake = 0; } } }
();
516
}
517
518
enum e__VW
519
{
520
    XView,
521
    YView,
522
    WView,
523
    HView,
524
    Angle,
525
    HBorder,
526
    VBorder,
527
    HSpeed,
528
    VSpeed,
529
    Object,
530
    Visible,
531
    XPort,
532
    YPort,
533
    WPort,
534
    HPort,
535
    Camera,
536
    SurfaceID
537
}