Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_watercooler_enemy_Step_0

(view raw script w/o annotations or w/e)
1
if (_init == false)
2
{
3
    if (global.encounterno == 140)
4
    {
5
        amimoonwarmer = true;
6
        global.monstername[myself] = stringset("Moonwarmer");
7
    }
8
    _init = true;
9
}
10
if (global.monster[myself] == 1)
11
{
12
    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)
13
    {
14
        
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; } }
();
15
        if (myattackchoice == 0)
16
            myattackchoice = 1;
17
        else
18
            myattackchoice = 0;
19
        CroakOnX = false;
20
        presscount = 0;
21
        presstimer = 0;
22
        startcroaktimer = false;
23
        if (!instance_exists(obj_darkener))
24
            instance_create(0, 0, obj_darkener);
25
        global.typer = 50;
26
        rr++;
27
        if (amimoonwarmer == false)
28
        {
29
            var random_vowel = choose("a", "e", "i", "o", "u", "u", "oo");
30
            if (global.lang == "ja")
31
                random_vowel = choose("パ", "ピ", "プ", "ぺ");
32
            if (rr == 1)
33
                msgsetloc(0, 
Buble
"Buble", "obj_watercooler_enemy_slash_Step_0_gml_37_0"
);
34
            else
35
                msgsetsubloc(0, "B~1b~2e", random_vowel, choose("i", "l"), "obj_watercooler_enemy_slash_Step_0_gml_38_0");
36
        }
37
        else if (rr == 1)
38
        {
39
            msgsetloc(0, 
Moon
"Moon", "obj_watercooler_enemy_slash_Step_0_gml_42_0"
);
40
        }
41
        else
42
        {
43
            msgset(0, choose("N", "M", "M") + choose("o", "oo", "a", "o", "oo") + choose("n", "m", "no", "mo", "n", "m"));
44
        }
45
        
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 == 12.1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right2; return myblcon; } if (arg2 == 12.2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right3; return myblcon; } if (arg2 == 12.3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right4; return myblcon; } if (arg2 == 12.4) { ...
(x - 10, y + 60, 10);
46
        talked = 1;
47
        talktimer = 0;
48
        rtimer = 0;
49
    }
50
    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"))
51
        
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(); 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(); global.mnfight = 1.5; } } }
(15);
52
    if (global.mnfight == 1.5)
53
    {
54
        if (!instance_exists(obj_growtangle))
55
            instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
56
        if (amimoonwarmer == false)
57
            instance_create(obj_growtangle.x - 10, obj_growtangle.y + 18, obj_heartmarker);
58
        if (!instance_exists(obj_moveheart))
59
            
scr_moveheart
scr_moveheart

function
scr_moveheart()
{ global.inv = 0; return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart); }
();
60
        with (obj_heartmarker)
61
            instance_destroy();
62
        global.mnfight = 2;
63
        
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(200);
64
    }
65
    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)
66
    {
67
        rtimer += 1;
68
        if (rtimer == 12)
69
        {
70
            if (amimoonwarmer == false)
71
            {
72
                global.monsterattackname[myself] = "Rain";
73
                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);
74
                dc.type = 135;
75
                dc.special = 0;
76
                if (turns > 1 && (turns % 2) == 0)
77
                    dc.special = 1;
78
                else if (turns > 1)
79
                    dc.special = 2;
80
            }
81
            else
82
            {
83
                global.monsterattackname[myself] = "Moon";
84
                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);
85
                dc.type = 69;
86
                dc.special = 0;
87
            }
88
            
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(140);
89
            attackanim = true;
90
            turns += 1;
91
            noballoon = false;
92
            bet = false;
93
            fixedbet = false;
94
            cheat = false;
95
            global.typer = 6;
96
            global.fc = 0;
97
            rr = choose(0, 1, 2, 3, 4);
98
            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)))
99
            {
100
                if (amimoonwarmer == false)
101
                {
102
                    if (rr == 0)
103
                        global.battlemsg[0] = stringsetloc(
* The watercooler shows no mercy.
"* The watercooler shows no mercy.", "obj_watercooler_enemy_slash_Step_0_gml_113_0"
);
104
                    if (rr == 1)
105
                        global.battlemsg[0] = stringsetloc(
* The watercooler doesn't do anything in particular.
"* The watercooler doesn't do anything in particular.", "obj_watercooler_enemy_slash_Step_0_gml_114_0"
);
106
                    if (rr == 2)
107
                        global.battlemsg[0] = stringsetloc(
* The watercooler leaves an icy silence.
"* The watercooler leaves an icy silence.", "obj_watercooler_enemy_slash_Step_0_gml_115_0"
);
108
                    if (rr == 3)
109
                        global.battlemsg[0] = stringsetloc(
* The watercooler cools water, coolly.
"* The watercooler cools water, coolly.", "obj_watercooler_enemy_slash_Step_0_gml_116_0"
);
110
                }
111
                else
112
                {
113
                    if (rr == 0)
114
                        global.battlemsg[0] = stringsetloc(
* The moonwarmer shows no mercy.
"* The moonwarmer shows no mercy.", "obj_watercooler_enemy_slash_Step_0_gml_120_0"
);
115
                    if (rr == 1)
116
                        global.battlemsg[0] = stringsetloc(
* The moonwarmer doesn't do anything in particular.
"* The moonwarmer doesn't do anything in particular.", "obj_watercooler_enemy_slash_Step_0_gml_121_0"
);
117
                    if (rr == 2)
118
                        global.battlemsg[0] = stringsetloc(
* The moonwarmer leaves a hot silence.
"* The moonwarmer leaves a hot silence.", "obj_watercooler_enemy_slash_Step_0_gml_122_0"
);
119
                    if (rr == 3)
120
                        global.battlemsg[0] = stringsetloc(
* The moonwarmer warms moons, warmly.
"* The moonwarmer warms moons, warmly.", "obj_watercooler_enemy_slash_Step_0_gml_123_0"
);
121
                }
122
                if (irandom(100) < 3)
123
                    global.battlemsg[0] = stringsetloc(
* Smells like the faucet.
"* Smells like the faucet.", "obj_watercooler_enemy_slash_Step_0_gml_125_0"
);
124
            }
125
            if (amimoonwarmer == false)
126
            {
127
                if (global.monsterstatus[myself] == 1 && 
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)))
128
                    global.battlemsg[0] = stringsetloc(
* The watercooler's bubbles rest on the surface.
"* The watercooler's bubbles rest on the surface.", "obj_watercooler_enemy_slash_Step_0_gml_130_0"
);
129
                if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 3) && 
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)))
130
                    global.battlemsg[0] = stringsetloc(
* The watercooler looks like it needs a refill.
"* The watercooler looks like it needs a refill.", "obj_watercooler_enemy_slash_Step_0_gml_131_0"
);
131
                if (global.mercymod[myself] >= global.mercymax[myself] && 
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)))
132
                    global.battlemsg[0] = stringsetloc(
* The watercooler's water blushes a cranberry pink.
"* The watercooler's water blushes a cranberry pink.", "obj_watercooler_enemy_slash_Step_0_gml_132_0"
);
133
            }
134
            else
135
            {
136
                if (global.monsterstatus[myself] == 1 && 
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)))
137
                    global.battlemsg[0] = stringsetloc(
* The moonwarmer's bubbles rest on the surface.
"* The moonwarmer's bubbles rest on the surface.", "obj_watercooler_enemy_slash_Step_0_gml_136_0"
);
138
                if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 3) && 
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)))
139
                    global.battlemsg[0] = stringsetloc(
* The moonwarmer looks like it needs a refill.
"* The moonwarmer looks like it needs a refill.", "obj_watercooler_enemy_slash_Step_0_gml_137_0"
);
140
                if (global.mercymod[myself] >= global.mercymax[myself] && 
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)))
141
                    global.battlemsg[0] = stringsetloc(
* The moonwarmer's water blushes a cranberry pink.
"* The moonwarmer's water blushes a cranberry pink.", "obj_watercooler_enemy_slash_Step_0_gml_138_0"
);
142
            }
143
            attacked = 1;
144
        }
145
    }
146
    if (global.mnfight == 2 && global.turntimer > 1)
147
    {
148
    }
149
}
150
if (global.myfight == 3)
151
{
152
    xx = __view_get(e__VW.XView, 0);
153
    yy = __view_get(e__VW.YView, 0);
154
    if (acting == 1 && actcon == 0)
155
    {
156
        actcon = 1;
157
        if (amimoonwarmer == false)
158
            msgsetloc(0, 
* You CHECKed the watercooler...
* The water was confirmed to be cool.Wait for inputClose Message
"* You CHECKed the watercooler...&* The water was confirmed to be \\cBcool\\c0./%", "obj_watercooler_enemy_slash_Step_0_gml_166_0"
);
159
        else
160
            msgsetloc(0, 
* You CHECKed the moonwarmer...
* The warms was confirmed to be moon.Wait for inputClose Message
"* You CHECKed the moonwarmer...&* The warms was confirmed to be \\cYmoon\\c0./%", "obj_watercooler_enemy_slash_Step_0_gml_167_0"
);
161
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
162
    }
163
    if (acting == 2 && actcon == 0)
164
    {
165
        global.flag[1119 cooler_beg_count]++;
166
        if (global.flag[1119 cooler_beg_count] == 1)
167
        {
168
            if (amimoonwarmer == false)
169
                msgsetloc(0, 
* You begged for mercy...
* ... but the watercooler showed none.Wait for input
"* You begged for mercy...&* ... but the watercooler showed none./", "obj_watercooler_enemy_slash_Step_0_gml_178_0"
);
170
            else
171
                msgsetloc(0, 
* You begged for mercy...
* ... but the moonwarmer showed none.Wait for input
"* You begged for mercy...&* ... but the moonwarmer showed none./", "obj_watercooler_enemy_slash_Step_0_gml_179_0"
);
172
            msgnextloc(
* You thought of some better, different ACTs to try next, instead.Wait for inputClose Message
"* You thought of some better, different ACTs to try next, instead./%", "obj_watercooler_enemy_slash_Step_0_gml_180_0"
);
173
        }
174
        else if (global.flag[1119 cooler_beg_count] == 2)
175
        {
176
            if (amimoonwarmer == false)
177
                msgsetloc(0, 
* You begged for mercy...
* ... but the watercooler showed none.Wait for input
"* You begged for mercy...&* ... but the watercooler showed none./", "obj_watercooler_enemy_slash_Step_0_gml_184_0"
);
178
            else
179
                msgsetloc(0, 
* You begged for mercy...
* ... but the moonwarmer showed none.Wait for input
"* You begged for mercy...&* ... but the moonwarmer showed none./", "obj_watercooler_enemy_slash_Step_0_gml_185_0"
);
180
            msgnextloc(
* This is probably because your NAME isn't YELLOW.Wait for inputClose Message
"* This is probably because your NAME isn't YELLOW./%", "obj_watercooler_enemy_slash_Step_0_gml_186_0"
);
181
        }
182
        else
183
        {
184
            msgsetloc(0, 
* You begged for mercy...
* This doesn't do anything.Wait for inputClose Message
"* You begged for mercy...&* This doesn't do anything./%", "obj_watercooler_enemy_slash_Step_0_gml_190_0"
);
185
        }
186
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
187
        global.canact[myself][2] = 1;
188
        global.actactor[myself][2] = 4;
189
        global.actname[myself][2] = stringsetloc(
ActCool
"ActCool", "obj_watercooler_enemy_slash_Step_0_gml_207_0"
);
190
        if (amimoonwarmer)
191
            global.actname[myself][2] = stringsetloc(
ActWarmer
"ActWarmer", "obj_watercooler_enemy_slash_Step_0_gml_208_0"
);
192
        global.actdesc[myself][2] = "";
193
        global.canact[myself][3] = 1;
194
        global.actactor[myself][3] = 1;
195
        global.actname[myself][3] = stringsetloc(
Flirt
"Flirt", "obj_watercooler_enemy_slash_Step_0_gml_213_0"
);
196
        global.actdesc[myself][3] = "";
197
        
scr_spellmenu_setup
scr_spellmenu_setup

function
scr_spellmenu_setup()
{ var __actnamecheck = 0; var __monstertype = global.monstertype[0]; for (__i = 1; __i < 3; __i++) { if (global.monster[__i] == 1 && global.monstertype[__i] != __monstertype) __actnamecheck = 1; } for (__i = 0; __i < 3; __i++) { for (__fj = 0; __fj < 6; __fj++) { global.battlespell[__i][__fj] = 0; if (global.char[__i] == 1) { if (global.canact[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcost[0][__fj]; global.battlespellname[__i][__fj] = global.actname[0][__fj]; global.battlespelldesc[__i][__fj] = global.actdesc[0][__fj]; global.battlespelltarget[__i][__fj] = 0; global.battlespellspecial[__i][__fj] = 1; } } if (global.char[__i] == 2) { if (global.canactsus[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostsus[0][__fj]; global.battlespellname[__i][__fj] = global.actnamesus[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
S-Action
"S-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1053_0"
);
if (__actnamecheck && global.chapter == 3 && i_ex(obj_elnina_lanino_controller)) global.battlespellname[__i][__fj] = stringsetloc(
ILoveTV
"ILoveTV", "scr_spellmenu_setup_slash_scr_spellmenu_setup_gml_39_0"
);
global.battlespelldesc[__i][__fj] = global.actdescsus[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 2; } } if (global.char[__i] == 3) { if (global.canactral[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostral[0][__fj]; global.battlespellname[__i][__fj] = global.actnameral[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
R-Action
"R-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1057_0"
);
if (__actnamecheck && global.chapter == 3 && i_ex(obj_elnina_lanino_controller)) global.battlespellname[__i][__fj] = stringsetloc(
ILoveTV
"ILoveTV", "scr_spellmenu_setup_slash_scr_spellmenu_setup_gml_54_0"
);
global.battlespelldesc[__i][__fj] = global.actdescral[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 3; } } if (global.char[__i] == 4) { if (global.canactnoe[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostnoe[0][__fj]; global.battlespellname[__i][__fj] = global.actnamenoe[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
N-Action
"N-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1061_0"
);
global.battlespelldesc[__i][__fj] = global.actdescnoe[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 4; } } } }
scr_spellinfo_all();
for (__i = 0; __i < 3; __i++) { for (__fj = 0; __fj < 12; __fj++) { __ib = global.battleactcount[__i] + __fj; global.battlespell[__i][__ib] = global.spell[global.char[__i]][__fj]; global.battlespellcost[__i][__ib] = global.spellcost[global.char[__i]][__fj]; global.battlespellname[__i][__ib] = global.spellnameb[global.char[__i]][__fj]; global.battlespelldesc[__i][__ib] = global.spelldescb[global.char[__i]][__fj]; global.battlespelltarget[__i][__ib] = global.spelltarget[global.char[__i]][__fj]; } } }
();
198
        acting = 0;
199
        actcon = 1;
200
    }
201
    if (acting == 3 && actcon == 0)
202
    {
203
        obj_herokris.x = x - 70;
204
        obj_herokris.y = y - 50;
205
        obj_herosusie.x = x - 130;
206
        obj_herosusie.y = y;
207
        obj_heroralsei.x = x - 80;
208
        obj_heroralsei.y = y + 50;
209
        
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_kris_zoosuit_cup, 0, true);
210
        
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_zoosuit_cup, 0, true);
211
        
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_zoosuit_cup, 0, true);
212
        msgsetloc(0, 
* Everyone chatted around the watercooler.Wait for inputClose Message
"* Everyone chatted around the watercooler./%", "obj_watercooler_enemy_slash_Step_0_gml_226_0"
);
213
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
214
        acting = 3.1;
215
    }
216
    if (acting == 3.1 && actcon == 0 && !i_ex(obj_writer))
217
    {
218
        msgsetloc(0, 
* The watercooler felt included!Wait for inputClose Message
"* The watercooler felt included!/%", "obj_watercooler_enemy_slash_Step_0_gml_234_0"
);
219
        acting = 3.2;
220
        
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);
221
    }
222
    if (acting == 3.2 && actcon == 0 && !i_ex(obj_writer))
223
    {
224
        alarm[5]
 = 1;
gml_Object_obj_watercooler_enemy_Alarm_5.gml

actcon = 1;
225
        acting = 0;
226
        obj_herokris.x = obj_herokris.xstart;
227
        obj_herokris.y = obj_herokris.ystart;
228
        obj_herosusie.x = obj_herosusie.xstart;
229
        obj_herosusie.y = obj_herosusie.ystart;
230
        obj_heroralsei.x = obj_heroralsei.xstart;
231
        obj_heroralsei.y = obj_heroralsei.ystart;
232
        
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; maxframes = 0; global.faceaction[myself] = 0; } } }
("kris");
233
        
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; maxframes = 0; global.faceaction[myself] = 0; } } }
("susie");
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; maxframes = 0; global.faceaction[myself] = 0; } } }
("ralsei");
235
        with (obj_heroparent)
236
            thissprite = idlesprite;
237
    }
238
    if (acting == 4 && actcon == 0)
239
    {
240
        var rand = choose(0, 1, 2);
241
        if (room == room_dw_teevie_watercooler || room == room_dw_teevie_large_02 || room == room_dw_b3bs_zapper_b)
242
            global.flag[1144 cooler_2_flirt] = 1;
243
        if (amimoonwarmer == false)
244
        {
245
            if (rand == 0)
246
                msgsetloc(0, 
* You told the watercooler it should actually be called a watercoolest.Wait for inputClose Message
"* You told the watercooler it should actually be called a watercoolest./%", "obj_watercooler_enemy_slash_Step_0_gml_264_0"
);
247
            if (rand == 1)
248
                msgsetloc(0, 
* You took a slow sip of water and then asked if it cooled it itself.Wait for inputClose Message
"* You took a slow sip of water and then asked if it cooled it itself./%", "obj_watercooler_enemy_slash_Step_0_gml_265_0"
);
249
            if (rand == 2)
250
                msgsetsubloc(0, "* You asked the watercooler, ~1water~2 they doing later./%", "\"", "\"", "obj_watercooler_enemy_slash_Step_0_gml_266_0");
251
        }
252
        else
253
        {
254
            if (rand == 0)
255
                msgsetloc(0, 
* You told the moonwarmer it should actually be called a moonwarmest...?Wait for inputClose Message
"* You told the moonwarmer it should actually be called a moonwarmest...?/%", "obj_watercooler_enemy_slash_Step_0_gml_270_0"
);
256
            if (rand == 1)
257
                msgsetloc(0, 
* You took a slow sip of warms and asked if it ever mooned...?Wait for inputClose Message
"* You took a slow sip of warms and asked if it ever mooned...?/%", "obj_watercooler_enemy_slash_Step_0_gml_271_0"
);
258
            if (rand == 2)
259
                msgsetsubloc(0, "* You asked the moonwarmer,~1hotter~2they doing later...?/%", "\"", "\"", "obj_watercooler_enemy_slash_Step_0_gml_272_0");
260
        }
261
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
262
        acting = 4.1;
263
        if (global.hp[2] < 1 && global.hp[3] < 1)
264
            
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, 14);
265
        else
266
            
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, 10);
267
    }
268
    if (acting == 4.1 && actcon == 0 && !i_ex(obj_writer))
269
    {
270
        msgsetloc(0, 
* The water turns pink for a second.Wait for inputClose Message
"* The water turns pink for a second./%", "obj_watercooler_enemy_slash_Step_0_gml_285_0"
);
271
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
272
        snd_play(snd_bell_bounce_short);
273
        pinkflashtimer = 30;
274
        
scr_oflash
scr_oflash

function
scr_oflash(arg0 = false)
{ var _oflash = instance_create_depth(x, y, depth - 1, obj_oflash); _oflash.image_xscale = image_xscale; _oflash.image_yscale = image_yscale; _oflash.image_speed = 0; _oflash.image_index = image_index; _oflash.sprite_index = sprite_index; _oflash.target = id; _oflash.follow = arg0; return _oflash; }
();
275
        acting = 0;
276
        actcon = 1;
277
    }
278
    if (actingsus == 1 && actconsus == 1)
279
    {
280
        var _text = "_";
281
        var rand = choose(0, 1, 2);
282
        if (rand == 0)
283
            _text = stringsetloc(
* Susie face-crushes a cup!!
"* Susie face-crushes a cup!!", "obj_watercooler_enemy_slash_Step_0_gml_313_0"
);
284
        if (rand == 1)
285
            _text = stringsetloc(
* Susie puts cups on Ralsei!
"* Susie puts cups on Ralsei!", "obj_watercooler_enemy_slash_Step_0_gml_314_0"
);
286
        if (rand == 2)
287
            _text = stringsetloc(
* Susie puts cups on Kris's eyes!
"* Susie puts cups on Kris's eyes!", "obj_watercooler_enemy_slash_Step_0_gml_315_0"
);
288
        if (simultotal == 1)
289
        {
290
            msgset(0, _text + "/%");
291
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
292
            with (obj_face)
293
                instance_destroy();
294
            actconsus = 20;
295
        }
296
        else
297
        {
298
            msgset(0, _text);
299
            
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");
300
            if (simulordersus == 0)
301
                actconsus = 20;
302
            else
303
                actconsus = 0;
304
        }
305
        actingsus = 0;
306
        if (global.hp[1] < 1 && global.hp[3] < 1)
307
            
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, 10);
308
        else
309
            
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, 6);
310
    }
311
    if (actingral == 1 && actconral == 1)
312
    {
313
        var _text = "_";
314
        var rand = choose(0, 1, 2);
315
        if (rand == 0)
316
            _text = stringsetloc(
* Ralsei absorbs trace calcium!
"* Ralsei absorbs trace calcium!", "obj_watercooler_enemy_slash_Step_0_gml_341_0"
);
317
        if (rand == 1)
318
            _text = stringsetloc(
* Ralsei cleans Susie's spill!!
"* Ralsei cleans Susie's spill!!", "obj_watercooler_enemy_slash_Step_0_gml_342_0"
);
319
        if (rand == 2)
320
            _text = stringsetloc(
* Ralsei labels everyone's cups!!
"* Ralsei labels everyone's cups!!", "obj_watercooler_enemy_slash_Step_0_gml_343_0"
);
321
        if (simultotal == 1)
322
        {
323
            msgset(0, _text + "/%");
324
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
325
            with (obj_face)
326
                instance_destroy();
327
            actconral = 20;
328
        }
329
        else
330
        {
331
            msgset(0, _text);
332
            
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");
333
            if (simulorderral == 0)
334
                actconral = 20;
335
            else
336
                actconral = 0;
337
        }
338
        actingral = 0;
339
        if (global.hp[1] < 1 && global.hp[2] < 1)
340
            
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, 10);
341
        else
342
            
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, 6);
343
    }
344
    if (actcon == 20 || actconsus == 20 || actconral == 20)
345
    {
346
        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; }
())
347
        {
348
            actconsus = -1;
349
            actconral = -1;
350
            actcon = 1;
351
        }
352
    }
353
    if (actcon == 1 && !instance_exists(obj_writer))
354
        
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();
} }
();
355
}
356
if (state == 3)
357
{
358
    
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);
359
    
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; } } }
();
360
}
361
362
enum e__VW
363
{
364
    XView,
365
    YView,
366
    WView,
367
    HView,
368
    Angle,
369
    HBorder,
370
    VBorder,
371
    HSpeed,
372
    VSpeed,
373
    Object,
374
    Visible,
375
    XPort,
376
    YPort,
377
    WPort,
378
    HPort,
379
    Camera,
380
    SurfaceID
381
}