Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_leafling_enemy_Step_0

related scripts: Alarm_4Create_0Draw_0Other_12Other_22Step_0

(view raw script w/o annotations or w/e)
1
if (global.monster[myself] == 1)
2
{
3
    if (pinneddown == false)
4
    {
5
        idlesprite = spr_leafling_idle2;
6
        hurtsprite = spr_leafling_hurt;
7
        sparedsprite = spr_leafling_spare2;
8
    }
9
    else
10
    {
11
        idlesprite = spr_leafling_serious_idle;
12
        hurtsprite = spr_leafling_hurt;
13
        sparedsprite = spr_leafling_serious_spare;
14
    }
15
    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)
16
    {
17
        
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; } }
();
18
        setbattlemsg = false;
19
        myattackchoice = choose(0, 1);
20
        myattackpriority = 1;
21
        if (myattackchoice == 2)
22
            myattackpriority = 50;
23
        
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);
24
        if (!instance_exists(obj_darkener))
25
            instance_create(0, 0, obj_darkener);
26
        global.typer = 50;
27
        rr = choose(0, 1, 2, 3, 4);
28
        if (rr == 0)
29
            msgsetloc(0, 
Fly away,
fly away...
"Fly away,&fly away...", "obj_leafling_enemy_slash_Step_0_gml_38_0"
);
30
        if (rr == 1)
31
            msgsetloc(0, 
Let the
breeze take you...
"Let the&breeze take you...", "obj_leafling_enemy_slash_Step_0_gml_39_0"
);
32
        if (rr == 2)
33
            msgsetloc(0, 
Any way
the wind
blows...
"Any way&the wind&blows...", "obj_leafling_enemy_slash_Step_0_gml_40_0"
);
34
        if (rr == 3)
35
            msgsetloc(0, 
Let's float,
float through
the sky...
"Let's float,&float through&the sky... ", "obj_leafling_enemy_slash_Step_0_gml_41_0"
);
36
        if (rr == 4)
37
            msgsetloc(0, 
The world
revolves
with
freedom...
"The world&revolves&with&freedom...", "obj_leafling_enemy_slash_Step_0_gml_42_0"
);
38
        if (pinneddown)
39
        {
40
            rr = choose(0, 1, 2, 3);
41
            if (rr == 0)
42
                msgsetloc(0, 
I'm too
busy for
this.
"I'm too&busy for&this.", "obj_leafling_enemy_slash_Step_0_gml_47_0"
);
43
            if (rr == 1)
44
                msgsetloc(0, 
I'll try
and pencil
it in.
"I'll try&and pencil&it in.", "obj_leafling_enemy_slash_Step_0_gml_48_0"
);
45
            if (rr == 2)
46
                msgsetloc(0, 
Sorry,Delay 11 I
have to
take a
call.
"Sorry^1, I&have to&take a&call.", "obj_leafling_enemy_slash_Step_0_gml_49_0"
);
47
            if (rr == 3)
48
                msgsetloc(0, 
Don't have
time to
talk now.
"Don't have&time to&talk now.", "obj_leafling_enemy_slash_Step_0_gml_50_0"
);
49
        }
50
        
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_v2_left; return myblcon; } if (arg2 == 12) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right; return myblcon; } if (arg2 == 13) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; myblcon.side = 2; return myblcon; } if (arg2 == 14) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; myblcon.side = -1; return myblcon; } if (arg2 == 15) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; ...
(x - 10, y + 40, 10);
51
        talked = 1;
52
        talktimer = 0;
53
        rtimer = 0;
54
    }
55
    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"))
56
        
scr_blconskip
scr_blconskip

function
scr_blconskip(arg0)
{ if (arg0 >= 0) { if (button1_p() && talktimer > arg0) talktimer = talkmax; talktimer++; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); if (i_ex(obj_balloon_queue)) msgset_fromqueue(); else global.mnfight = 1.5; } } else if (arg0 == -1) { if (!instance_exists(obj_writer)) { if (i_ex(obj_balloon_queue)) msgset_fromqueue(); else global.mnfight = 1.5; } } else if (arg0 == -2) { talktimer++; if (talktimer > 15) talktimer = talkmax; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); if (i_ex(obj_balloon_queue)) msgset_fromqueue(); else global.mnfight = 1.5; } } }
(15);
57
    if (global.mnfight == 1.5)
58
    {
59
        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))
60
        {
61
            if (!instance_exists(obj_growtangle))
62
                instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
63
            if (!instance_exists(obj_moveheart))
64
                
scr_moveheart
scr_moveheart

function
scr_moveheart()
{ global.inv = 0; return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart); }
();
65
            global.mnfight = 2;
66
            
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(90);
67
        }
68
    }
69
    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)
70
    {
71
        rtimer += 1;
72
        if (rtimer == 12)
73
        {
74
            if (myattackchoice == 0)
75
            {
76
                global.monsterattackname[myself] = "PetalBurst";
77
                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);
78
                dc.type = 142;
79
            }
80
            else if (myattackchoice == 1)
81
            {
82
                global.monsterattackname[myself] = "PetalWind";
83
                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);
84
                dc.type = 143;
85
                with (obj_leafling_enemy)
86
                {
87
                    if (pinneddown)
88
                    {
89
                        with (obj_dbulletcontroller)
90
                        {
91
                            if (type == 143)
92
                                made = true;
93
                        }
94
                    }
95
                    if (blowaway)
96
                    {
97
                        with (obj_dbulletcontroller)
98
                        {
99
                            if (type == 143)
100
                                made = false;
101
                        }
102
                    }
103
                }
104
            }
105
            
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(240);
106
            blowaway = false;
107
            turns += 1;
108
            attacked = 1;
109
        }
110
    }
111
    if (global.mnfight == 2 && global.turntimer <= 1)
112
    {
113
        if (setbattlemsg == false)
114
        {
115
            global.typer = 6;
116
            global.fc = 0;
117
            rr = choose(0, 1, 2, 3);
118
            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)))
119
            {
120
                if (rr == 0)
121
                    global.battlemsg[0] = stringsetloc(
* Leafling dances freely on the wind.
"* Leafling dances freely on the wind.", "obj_leafling_enemy_slash_Step_0_gml_140_0"
);
122
                if (rr == 1)
123
                    global.battlemsg[0] = stringsetloc(
* Leafling sings in dandelion language.
"* Leafling sings in dandelion language.", "obj_leafling_enemy_slash_Step_0_gml_141_0"
);
124
                if (rr == 2)
125
                    global.battlemsg[0] = stringsetloc(
* Leafling flies into a scenery object and gets stuck for a while.
"* Leafling flies into a scenery object and gets stuck for a while.", "obj_leafling_enemy_slash_Step_0_gml_142_0"
);
126
                if (rr == 3)
127
                    global.battlemsg[0] = stringsetloc(
* Leafling plays with ribbons of sunshine.
"* Leafling plays with ribbons of sunshine.", "obj_leafling_enemy_slash_Step_0_gml_143_0"
);
128
                if (irandom(100) < 3)
129
                    global.battlemsg[0] = stringsetloc(
* Smells like sunshine and green.
"* Smells like sunshine and green.", "obj_leafling_enemy_slash_Step_0_gml_144_0"
);
130
            }
131
            if (global.monsterstatus[myself] == 1)
132
            {
133
                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))
134
                    global.battlemsg[0] = stringsetloc(
* Leafling seems to be breathing oxygen and not CO2.
"* Leafling seems to be breathing oxygen and not CO2.", "obj_leafling_enemy_slash_Step_0_gml_169_0"
);
135
            }
136
            if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 4))
137
            {
138
                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; } }
(101))
139
                    global.battlemsg[0] = stringsetloc(
* Leafling looks shriveled.
"* Leafling looks shriveled.", "obj_leafling_enemy_slash_Step_0_gml_159_0"
);
140
            }
141
            if (global.mercymod[myself] >= 100)
142
            {
143
                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; } }
(102))
144
                    global.battlemsg[0] = stringsetloc(
* Leafling seems ready to be spared.
"* Leafling seems ready to be spared.", "obj_leafling_enemy_slash_Step_0_gml_164_0"
);
145
            }
146
            if (pinneddown)
147
            {
148
                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; } }
(102))
149
                {
150
                    if (rr == 0)
151
                        global.battlemsg[0] = stringsetloc(
* Leafling stays staring at its newspaper.
"* Leafling stays staring at its newspaper.", "obj_leafling_enemy_slash_Step_0_gml_149_0"
);
152
                    if (rr == 1)
153
                        global.battlemsg[0] = stringsetloc(
* Leafling checks for work notifications on the weekend.
"* Leafling checks for work notifications on the weekend.", "obj_leafling_enemy_slash_Step_0_gml_150_0"
);
154
                    if (rr == 2)
155
                        global.battlemsg[0] = stringsetloc(
* Leafling doesn't take a lunch break.
"* Leafling doesn't take a lunch break.", "obj_leafling_enemy_slash_Step_0_gml_151_0"
);
156
                    if (rr == 3)
157
                        global.battlemsg[0] = stringsetloc(
* Leafling grunts that it's going to be late.
"* Leafling grunts that it's going to be late.", "obj_leafling_enemy_slash_Step_0_gml_152_0"
);
158
                    if (irandom(100) < 3)
159
                        global.battlemsg[0] = stringsetloc(
* Smells like burnt leaves.
"* Smells like burnt leaves.", "obj_leafling_enemy_slash_Step_0_gml_153_0"
);
160
                }
161
            }
162
            setbattlemsg = true;
163
        }
164
    }
165
}
166
if (global.myfight == 3)
167
{
168
    xx = __view_get(e__VW.XView, 0);
169
    yy = __view_get(e__VW.YView, 0);
170
    if (acting == 1 && actcon == 0)
171
    {
172
        actcon = 1;
173
        msgsetloc(0, 
* Leafling - An irresponsibly carefree leaf.Delay 11 It doesn't realize it creates its own wind.Wait for inputClose Message
"* Leafling - An irresponsibly carefree leaf^1. It doesn't realize it creates its own wind./%", "obj_leafling_enemy_slash_Step_0_gml_188_0"
);
174
        if (pinneddown)
175
            msgsetloc(0, 
* Leafling - A responsible leaf.Delay 11 The air feels stagnant around it.Wait for inputClose Message
"* Leafling - A responsible leaf^1. The air feels stagnant around it./%", "obj_leafling_enemy_slash_Step_0_gml_189_0"
);
176
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
177
    }
178
    if (acting == 2 && actcon == 0)
179
    {
180
        
scr_act_charsprite
scr_act_charsprite

function
scr_act_charsprite(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; } __returnvalue = _charactsprite[_charnum]; if (i_ex(_charinstance)) { with (_charinstance) { image_alpha = 0; state = 0; global.faceaction[myself] = 0; } _charactsprite[_charnum] =
scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum]) { depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1) image_speed = arg2; a =
scr_afterimage();
a.hspeed = 2.5; a.depth = depth + 1; b =
scr_afterimage();
b.image_alpha = 0.6; b.hspeed = 5; b.depth = depth + 2; } __returnvalue = _charactsprite[_charnum]; } return __returnvalue; } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
("kris", spr_krisb_pirouette, 1, 1);
181
        
scr_act_charsprite
scr_act_charsprite

function
scr_act_charsprite(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; } __returnvalue = _charactsprite[_charnum]; if (i_ex(_charinstance)) { with (_charinstance) { image_alpha = 0; state = 0; global.faceaction[myself] = 0; } _charactsprite[_charnum] =
scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum]) { depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1) image_speed = arg2; a =
scr_afterimage();
a.hspeed = 2.5; a.depth = depth + 1; b =
scr_afterimage();
b.image_alpha = 0.6; b.hspeed = 5; b.depth = depth + 2; } __returnvalue = _charactsprite[_charnum]; } return __returnvalue; } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
("susie", spr_susieb_looksup, 1, 1);
182
        msgsetloc(0, 
* Kris spun extremely fast!Wait for inputClose Message
"* Kris spun extremely fast!/%", "obj_leafling_enemy_slash_Step_0_gml_198_0"
);
183
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
184
        acting = 2.1;
185
        with (obj_leafling_enemy)
186
        {
187
            inst = instance_create(x + 20, y + 72, obj_turbospin_sprite);
188
            inst.sprite_index = spr_leafling_spin;
189
            if (global.mercymod[myself] >= 100)
190
                inst.sprite_index = spr_leafling_spin_spared;
191
            inst.image_index = 0;
192
            inst.image_xscale = 2;
193
            inst.image_yscale = 2;
194
            state = 9;
195
        }
196
    }
197
    if (acting == 2.1)
198
    {
199
        spinsfxtimer++;
200
        if (spinsfxtimer >= 12)
201
        {
202
            snd_stop(snd_pirouette);
203
            snd_play_x(snd_pirouette, 0.4, 1.4);
204
            spinsfxtimer = 0;
205
        }
206
    }
207
    if (acting == 2.1 && actcon == 0 && !i_ex(obj_writer))
208
    {
209
        msgsetloc(0, 
Stop it!!Delay 11 You're
making me dizzy!!Wait for inputClose Message
"Stop it!^1! You're&making me dizzy!!/%", "obj_leafling_enemy_slash_Step_0_gml_230_0"
);
210
        global.typer = 75;
211
        
scr_heroblcon
scr_heroblcon

function
scr_heroblcon(arg0)
{ var heroobj = -69420; switch (arg0) { case 1: case "kris": case "kr": heroobj = obj_herokris; break; case 2: case "susie": case "su": heroobj = obj_herosusie; break; case 3: case "ralsei": case "ra": heroobj = obj_heroralsei; break; case 4: case "noelle": case "no": heroobj = obj_heronoelle; break; default: heroobj = -69420; break; } if (i_ex(heroobj)) { var heroballoon =
scr_enemyblcon(heroobj.x + 100, heroobj.y + 40, 10);
heroballoon.side = -1; return heroballoon; } else { return false; } }
("susie");
212
        
scr_act_charsprite_end
scr_act_charsprite_end

function
scr_act_charsprite_end()
{ for (i = 0; i < 10; i++) { with (_charactsprite[i]) instance_destroy(); } with (obj_heroparent) { if (image_alpha == 0) { image_alpha = 1; acttimer = 0; state = 0; global.faceaction[myself] = 0; } } }
();
213
        with (obj_herosusie)
214
            x -= 46;
215
        with (obj_herosusie)
216
            y += 6;
217
        
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; if (arg3 == -1) maxframes = -1; global.faceaction[myself] = 0; } } }
("susie", spr_dizzy_susie, 0.16666666666666666, 1);
218
        acting = 2.2;
219
        spinsfxtimer = 0;
220
    }
221
    if (acting == 2.2 && actcon == 0)
222
    {
223
        talktimer++;
224
        if ((button3_h() && talktimer > 15) || !instance_exists(obj_writer))
225
        {
226
            with (obj_writer)
227
                instance_destroy();
228
            acting = 0;
229
            actcon = 1;
230
            with (obj_herosusie)
231
                x = xstart;
232
            with (obj_herosusie)
233
                y = ystart;
234
            
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");
235
            with (obj_leafling_enemy)
236
                state = 0;
237
            with (obj_turbospin_sprite)
238
                instance_destroy();
239
            with (obj_monsterparent)
240
                
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]++; return __mercydmgwriter; }
(myself, 100);
241
        }
242
    }
243
    if (acting == 3 && actcon == 0)
244
    {
245
        
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; if (arg3 == -1) maxframes = -1; global.faceaction[myself] = 0; } } }
("susie", spr_susie_jump_back, 1, 1);
246
        obj_herosusie.vspeed = -40;
247
        snd_play(snd_jump);
248
        acting = 3.01;
249
    }
250
    if (acting == 3.01 && actcon == 0)
251
    {
252
        timer++;
253
        if (timer == 20)
254
        {
255
            obj_herosusie.x = x - 6;
256
            obj_herosusie.y = cameray() - 100;
257
            obj_herosusie.vspeed = 30;
258
            obj_herosusie.depth = depth - 1;
259
        }
260
        if ((obj_herosusie.y + obj_herosusie.vspeed) > (y - 30) && timer > 20)
261
        {
262
            obj_herosusie.y = y - 30;
263
            obj_herosusie.vspeed = 0;
264
            snd_play(snd_bump);
265
            
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; if (arg3 == -1) maxframes = -1; global.faceaction[myself] = 0; } } }
("susie", spr_susie_kneel_heal_alt_right, 0, 1);
266
            
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); }
();
267
            with (obj_herosusie)
268
                
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); }
();
269
            msgsetloc(0, 
* Susie reminded Leafling of its responsibilities!Wait for inputClose Message
"* Susie reminded Leafling of its responsibilities!/%", "obj_leafling_enemy_slash_Step_0_gml_296_0"
);
270
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
271
            state = 10;
272
            if (pinneddown)
273
                state = 11;
274
            timer = 0;
275
            acting = 3.1;
276
        }
277
    }
278
    if (acting == 3.1 && actcon == 0 && !i_ex(obj_writer))
279
    {
280
        var rand = choose(0, 1, 2);
281
        if (rand == 0)
282
            msgsetloc(0, 
Hey,Delay 11 you gotta do
your group project
or whatever!Wait for inputClose Message
"Hey^1, you gotta do&your group project&or whatever!/%", "obj_leafling_enemy_slash_Step_0_gml_310_0"
);
283
        if (rand == 1)
284
            msgsetloc(0, 
Hurry!Delay 11 Your,Delay 11 uh,Delay 11 date
is waiting for you!Wait for inputClose Message
"Hurry^1! Your^1, uh^1, date&is waiting for you!/%", "obj_leafling_enemy_slash_Step_0_gml_311_0"
);
285
        if (rand == 2)
286
            msgsetloc(0, 
The pizza place just
trashed dough and
it's still hot!Wait for inputClose Message
"The pizza place just&trashed dough and&it's still hot!/%", "obj_leafling_enemy_slash_Step_0_gml_312_0"
);
287
        global.typer = 75;
288
        
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_v2_left; return myblcon; } if (arg2 == 12) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right; return myblcon; } if (arg2 == 13) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; myblcon.side = 2; return myblcon; } if (arg2 == 14) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; myblcon.side = -1; return myblcon; } if (arg2 == 15) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; ...
(x - 10, y + 20, 10);
289
        
scr_guardpeek
scr_guardpeek

function
scr_guardpeek(arg0)
{ if (global.faceaction[arg0.myself] == 4) { var _peeker = 0; if (arg0 == obj_heroralsei) { obj_heroralsei.image_alpha = 0; _peeker =
scr_battle_marker(obj_heroralsei.x, obj_heroralsei.y, spr_ralsei_defend_peek);
_peeker.depth = obj_heroralsei.depth; _peeker.sourceobject = obj_heroralsei; _peeker.endanimation = spr_ralsei_redefend; } else if (arg0 == obj_herosusie) { obj_herosusie.image_alpha = 0; _peeker =
scr_battle_marker(obj_herosusie.x, obj_herosusie.y, spr_susie_defend_peek);
_peeker.depth = obj_herosusie.depth; _peeker.sourceobject = obj_herosusie; } return _peeker; } }
(obj_herosusie);
290
        acting = 3.15;
291
    }
292
    if (acting == 3.15 && actcon == 0 && !i_ex(obj_writer))
293
    {
294
        if (!pinneddown)
295
            msgsetloc(0, 
* Leafling became responsible...Delay 11 the wind no longer blows.Wait for inputClose Message
"* Leafling became responsible..^1. the wind no longer blows./%", "obj_leafling_enemy_slash_Step_0_gml_324_0"
);
296
        else
297
            msgsetloc(0, 
* ...Delay 11 but,Delay 11 it was already responsible.Wait for inputClose Message
"* ..^1. but^1, it was already responsible./%", "obj_leafling_enemy_slash_Step_0_gml_325_0"
);
298
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
299
        state = 11;
300
        
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]++; return __mercydmgwriter; }
(myself, 50);
301
        with (obj_monsterparent)
302
            
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);
303
        acting = 3.2;
304
    }
305
    if (acting == 3.2 && actcon == 0 && !i_ex(obj_writer))
306
    {
307
        timer++;
308
        if (timer == 1)
309
        {
310
            obj_herosusie.vspeed = -30;
311
            
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; if (arg3 == -1) maxframes = -1; global.faceaction[myself] = 0; } } }
("susie", spr_susie_jump_back, 1, 1);
312
            snd_stop(snd_jump);
313
            snd_play(snd_jump);
314
            shrinktimer = 3;
315
            state = 12;
316
            pinneddown = true;
317
        }
318
        if (timer == 11)
319
        {
320
            obj_herosusie.x = obj_herosusie.xstart;
321
            obj_herosusie.vspeed = 30;
322
        }
323
        if (timer > 11 && (obj_herosusie.y + obj_herosusie.vspeed) > obj_herosusie.ystart)
324
        {
325
            obj_herosusie.vspeed = 0;
326
            obj_herosusie.x = obj_herosusie.xstart;
327
            obj_herosusie.y = obj_herosusie.ystart;
328
            
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");
329
            with (obj_herosusie)
330
                
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); }
();
331
            snd_play(snd_bump);
332
            acting = 0;
333
            timer = 0;
334
            actcon = 1;
335
        }
336
    }
337
    if (acting == 4 && actcon == 0)
338
    {
339
        msgsetsubloc(0, 
* Argument â„–11 repeatedly to blow away!
"* ~1 repeatedly to blow away!",
scr_get_input_name
scr_get_input_name

function
scr_get_input_name(arg0)
{ var _control = "[?]"; if (global.is_console || obj_gamecontroller.gamepad_active) { _control = global.input_g[arg0]; if (_control == gp_padr) return "\\*D "; if (_control == gp_padl) return "\\*A "; if (_control == gp_padu) return "\\*W "; if (_control == gp_padd) return "\\*S "; if (_control == global.button0) return "\\*Z "; if (_control == global.button1) return "\\*X "; if (_control == global.button2) return "\\*C "; } var left_bracket = (global.lang == "en") ? "[" : "["; var right_bracket = (global.lang == "en") ? "]" : "]"; _control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket; if (!is_string(_control)) _control = "[?]"; else return _control; }
(4),
scr_get_input_name
scr_get_input_name

function
scr_get_input_name(arg0)
{ var _control = "[?]"; if (global.is_console || obj_gamecontroller.gamepad_active) { _control = global.input_g[arg0]; if (_control == gp_padr) return "\\*D "; if (_control == gp_padl) return "\\*A "; if (_control == gp_padu) return "\\*W "; if (_control == gp_padd) return "\\*S "; if (_control == global.button0) return "\\*Z "; if (_control == global.button1) return "\\*X "; if (_control == global.button2) return "\\*C "; } var left_bracket = (global.lang == "en") ? "[" : "["; var right_bracket = (global.lang == "en") ? "]" : "]"; _control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket; if (!is_string(_control)) _control = "[?]"; else return _control; }
(6), "obj_leafling_enemy_slash_Step_0_gml_372_0"
);
340
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
341
        with (obj_writer)
342
        {
343
            rate = 33;
344
            pos = 60;
345
        }
346
        acting = 101;
347
        actcon = 0;
348
    }
349
    if (acting == 101 && actcon == 0)
350
    {
351
        if (progress > 0)
352
            progress -= 0.5;
353
        if (button1_p() == 1)
354
            presscount_1++;
355
        if (button1_p() == 1 && presscount_1 < 5)
356
        {
357
            snd_stop(snd_whistlebreath);
358
            snd_play_x(snd_whistlebreath, 1, 1 + (presstimer / 100));
359
            progress += 10;
360
            starttimer = true;
361
            blown = 1;
362
            blowanimtimer = 20;
363
            onoff = 0;
364
            shakeamt = 5;
365
            repeat (6)
366
                event_user(2);
367
        }
368
        presstimer++;
369
        if (presstimer == 30)
370
        {
371
            presstimer = 0;
372
            presscount_1 = 0;
373
        }
374
        if (progress >= 100)
375
            progress = 100;
376
        if (starttimer == true)
377
            acttimer++;
378
        if (acttimer >= acttimermax || progress >= 100)
379
        {
380
            starttimer = false;
381
            acting = 4.4;
382
            blown = 0;
383
            acttimer = 0;
384
            with (obj_writer)
385
                instance_destroy();
386
        }
387
    }
388
    if (acting == 4.4 && actcon == 0)
389
    {
390
        if (progress < 100)
391
        {
392
            msgsetloc(0, 
* You ran out of time!Wait for inputClose Message
"* You ran out of time!/%", "obj_leafling_enemy_slash_Step_0_gml_426_0"
);
393
        }
394
        else
395
        {
396
            blowaway = true;
397
            if (pinneddown == false)
398
            {
399
                msgsetloc(0, 
* It floated on the wind carefree!Wait for inputClose Message
"* It floated on the wind carefree!/%", "obj_leafling_enemy_slash_Step_0_gml_432_0"
);
400
            }
401
            else
402
            {
403
                msgsetloc(0, 
* It floated on the wind carefree once again!Wait for inputClose Message
"* It floated on the wind carefree once again!/%", "obj_leafling_enemy_slash_Step_0_gml_437_0"
);
404
                pinneddown = false;
405
                marker = instance_create(x, y, obj_marker);
406
                with (marker)
407
                {
408
                    sprite_index = spr_leafling_hat_briefcase;
409
                    hspeed = 6;
410
                    image_xscale = 2;
411
                    image_yscale = 2;
412
                    vspeed = -4;
413
                    gravity = 0.3;
414
                    gravity_direction = 270;
415
                    
scr_script_delayed
scr_script_delayed

function
scr_script_delayed()
{ var __scriptdelay = instance_create(0, 0, obj_script_delayed); __scriptdelay.script = argument[0]; __scriptdelay.alarm[0] = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; } function scr_script_delayed_until() { var __scriptdelay = instance_create(0, 0, obj_script_delayed_function); __scriptdelay.script = argument[0]; __scriptdelay.condition = argument[1]; __scriptdelay.target = id; for (var __i = 0; __i < (argument_count - 2); __i++) __scriptdelay.script_arg[__i] = argument[__i + 2]; __scriptdelay.arg_count = argument_count - 2; return __scriptdelay; } function delay_function(arg0, arg1) { return
scr_script_delayed(arg0, arg1);
}
(instance_destroy, 25);
416
                }
417
            }
418
            
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]++; return __mercydmgwriter; }
(myself, 70);
419
        }
420
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
421
        acting = 0;
422
        actcon = 1;
423
        progress = 0;
424
    }
425
    if (actingsus == 1 && actconsus == 1)
426
    {
427
        var rand = choose(0, 1, 2);
428
        if (rand == 0)
429
            msgsetloc(0, 
* Susie blows on a dandelion!
"* Susie blows on a dandelion!", "obj_leafling_enemy_slash_Step_0_gml_468_0"
);
430
        if (rand == 1)
431
            msgsetloc(0, 
* Susie slacks off!
"* Susie slacks off!", "obj_leafling_enemy_slash_Step_0_gml_469_0"
);
432
        if (rand == 2)
433
            msgsetloc(0, 
* Susie takes the wind face on!
"* Susie takes the wind face on!", "obj_leafling_enemy_slash_Step_0_gml_470_0"
);
434
        
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");
435
        
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]++; return __mercydmgwriter; }
(myself, 35);
436
        global.flag[1888] = 1;
437
        if (simulordersus == 0)
438
            actconsus = 20;
439
        else
440
            actconsus = 0;
441
    }
442
    if (actingral == 1 && actconral == 1)
443
    {
444
        var rand = choose(0, 1, 2);
445
        if (rand == 0)
446
            msgsetloc(0, 
* Ralsei counts petals daintily!
"* Ralsei counts petals daintily!", "obj_leafling_enemy_slash_Step_0_gml_482_0"
);
447
        if (rand == 1)
448
            msgsetloc(0, 
* Ralsei floats fuzzily!
"* Ralsei floats fuzzily!", "obj_leafling_enemy_slash_Step_0_gml_483_0"
);
449
        if (rand == 2)
450
            msgsetloc(0, 
* Ralsei puts soil in his hat!
"* Ralsei puts soil in his hat!", "obj_leafling_enemy_slash_Step_0_gml_484_0"
);
451
        
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");
452
        
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]++; return __mercydmgwriter; }
(myself, 35);
453
        global.flag[1888] = 1;
454
        if (simulorderral == 0)
455
            actconral = 20;
456
        else
457
            actconral = 0;
458
    }
459
    if (actcon == 20 || actconsus == 20 || actconral == 20)
460
    {
461
        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; }
())
462
        {
463
            actconsus = -1;
464
            actconral = -1;
465
            actcon = 1;
466
        }
467
    }
468
    if (actcon == 1 && !instance_exists(obj_writer))
469
        
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 (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();
} }
();
470
}
471
if (state == 3)
472
{
473
    
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);
474
    
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; } } }
();
475
}
476
477
enum e__VW
478
{
479
    XView,
480
    YView,
481
    WView,
482
    HView,
483
    Angle,
484
    HBorder,
485
    VBorder,
486
    HSpeed,
487
    VSpeed,
488
    Object,
489
    Visible,
490
    XPort,
491
    YPort,
492
    WPort,
493
    HPort,
494
    Camera,
495
    SurfaceID
496
}