Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_bibliox_enemy_Step_0

(view raw script w/o annotations or w/e)
1
if (global.monster[myself] == 1)
2
{
3
    if (!i_ex(obj_dbulletcontroller))
4
    {
5
        if (image_alpha < 1)
6
            image_alpha += 0.1;
7
    }
8
    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)
9
    {
10
        beardcon = 1;
11
        
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; } }
();
12
        myattackchoice = 0;
13
        proofeasy = 0;
14
        myattackpriority = 1;
15
        if (myattackchoice == 2)
16
            myattackpriority = 50;
17
        
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);
18
        if (!instance_exists(obj_darkener))
19
            instance_create(0, 0, obj_darkener);
20
        global.typer = 50;
21
        rr = choose(0, 1, 2, 3, 4, 5);
22
        if (rr == 0)
23
            msgsetloc(0, 
Mumble,
mumble...
"Mumble,&mumble...", "obj_bibliox_enemy_slash_Step_0_gml_33_0_b"
);
24
        if (rr == 1)
25
            msgsetloc(0, 
To by, or
not to by?
"To by, or&not to by?", "obj_bibliox_enemy_slash_Step_0_gml_34_0"
);
26
        if (rr == 2)
27
            msgsetloc(0, 
Lauren Ipsome,
Lauren Ipsome.
"Lauren Ipsome,&Lauren Ipsome.", "obj_bibliox_enemy_slash_Step_0_gml_35_0"
);
28
        if (rr == 3)
29
            msgsetloc(0, 
It was the best
of times, it
was the blurst
of times.
"It was the best&of times, it&was the blurst&of times.", "obj_bibliox_enemy_slash_Step_0_gml_36_0"
);
30
        if (rr == 4)
31
            msgsetloc(0, 
Human soles,
monster soles,
Book soles...
"Human soles,&monster soles,&Book soles...", "obj_bibliox_enemy_slash_Step_0_gml_37_0"
);
32
        if (rr == 5)
33
            msgsetloc(0, 
... whose do we?
Whose do we
decimal...
"... whose do we?&Whose do we&decimal...", "obj_bibliox_enemy_slash_Step_0_gml_38_0"
);
34
        
scr_enemyblcon
scr_enemyblcon

function
scr_enemyblcon(arg0, arg1, arg2)
{ if (arg2 == 0) { mywriter = instance_create(arg0, arg1, obj_writer); return mywriter; } if (arg2 == 1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); return myblcon; } if (arg2 == 2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v; return myblcon; } if (arg2 == 3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; return myblcon; } if (arg2 == 4) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 0; myblcon.image_speed = 0; return myblcon; } if (arg2 == 5) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 1; myblcon.image_speed = 0; return myblcon; } if (arg2 == 6) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_clubs; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 7) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_r; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 8) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_tall; return myblcon; } if (arg2 == 10) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; return myblcon; } if (arg2 == 11) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_z; return myblcon; } }
(x - 0, y + 50, 10);
35
        talked = 1;
36
        talktimer = 0;
37
        rtimer = 0;
38
    }
39
    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"))
40
        
scr_blconskip
scr_blconskip

function
scr_blconskip(arg0)
{ if (arg0 >= 0) { if (button1_p() && talktimer > arg0) talktimer = talkmax; talktimer += 1; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); with (obj_guei_balloon) instance_destroy(); global.mnfight = 1.5; } } else if (arg0 == -1) { if (instance_exists(obj_writer) == false) global.mnfight = 1.5; } else if (arg0 == -2) { talktimer += 1; if (talktimer > 15) talktimer = talkmax; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); with (obj_guei_balloon) instance_destroy(); global.mnfight = 1.5; } } }
(15);
41
    if (global.mnfight == 1.5)
42
    {
43
        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))
44
        {
45
            if (!instance_exists(obj_growtangle))
46
                instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
47
            if (!instance_exists(obj_moveheart))
48
                
scr_moveheart
scr_moveheart

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

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(90);
51
        }
52
    }
53
    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)
54
    {
55
        rtimer += 1;
56
        if (rtimer == 12)
57
        {
58
            global.monsterattackname[myself] = "book attack";
59
            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);
60
            dc.type = 140;
61
            dc.damage = 80;
62
            
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(200);
63
            turns += 1;
64
            global.typer = 6;
65
            global.fc = 0;
66
            rr = choose(0, 1, 2, 3, 4);
67
            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)))
68
            {
69
                var substring = string(myself);
70
                if (rr == 0)
71
                    global.battlemsg[0] = stringsetloc(
* Bibliox rearranges bookmarks in his beard.
"* Bibliox rearranges bookmarks in his beard.", "obj_bibliox_enemy_slash_Step_0_gml_90_0"
);
72
                if (rr == 1)
73
                    global.battlemsg[0] = stringsetloc(
* Bibliox conjures letters in the air.
"* Bibliox conjures letters in the air.", "obj_bibliox_enemy_slash_Step_0_gml_91_0"
);
74
                if (rr == 2)
75
                    global.battlemsg[0] = stringsetloc(
* Bibliox augurs with alphabet soup.
"* Bibliox augurs with alphabet soup.", "obj_bibliox_enemy_slash_Step_0_gml_92_0"
);
76
                if (rr == 3)
77
                    global.battlemsg[0] = stringsetloc(
* Bibliox mumbles a hymn... but, the lyrics were mistaken.
"* Bibliox mumbles a hymn... but, the lyrics were mistaken.", "obj_bibliox_enemy_slash_Step_0_gml_93_0"
);
78
                if (rr == 4)
79
                    global.battlemsg[0] = stringsetloc(
* Bibliox is mumbling and bumbling.
"* Bibliox is mumbling and bumbling.", "obj_bibliox_enemy_slash_Step_0_gml_94_0"
);
80
                if (irandom(100) < 3)
81
                    global.battlemsg[0] = stringsetloc(
* Smells like parchment.
"* Smells like parchment.", "obj_bibliox_enemy_slash_Step_0_gml_95_0"
);
82
            }
83
            if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 3))
84
            {
85
                if (
scr_messagepriority
scr_messagepriority

function
scr_messagepriority(arg0)
{ if (i_ex(obj_battlecontroller)) { if (obj_battlecontroller.messagepriority < arg0) { obj_battlecontroller.messagepriority = arg0; return true; } else { return false; } } else { return false; } }
(100 + random(2)))
86
                    global.battlemsg[0] = stringsetloc(
* Bibliox looks ragged.
"* Bibliox looks ragged.", "obj_bibliox_enemy_slash_Step_0_gml_100_0"
);
87
            }
88
            if (global.mercymod[myself] >= 100)
89
            {
90
                if (
scr_messagepriority
scr_messagepriority

function
scr_messagepriority(arg0)
{ if (i_ex(obj_battlecontroller)) { if (obj_battlecontroller.messagepriority < arg0) { obj_battlecontroller.messagepriority = arg0; return true; } else { return false; } } else { return false; } }
(100 + random(2)))
91
                    global.battlemsg[0] = stringsetloc(
* Bibliox's beard flaps happily.
"* Bibliox's beard flaps happily.", "obj_bibliox_enemy_slash_Step_0_gml_105_0"
);
92
            }
93
            if (global.monsterstatus[myself] == 1)
94
            {
95
                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 + random(2)))
96
                    global.battlemsg[0] = stringsetloc(
* Bibliox can't keep its pages open.
"* Bibliox can't keep its pages open.", "obj_bibliox_enemy_slash_Step_0_gml_110_0"
);
97
            }
98
            attacked = 1;
99
        }
100
    }
101
    if (global.mnfight == 2 && global.turntimer <= 1)
102
        beardcon = 0;
103
}
104
if (global.myfight == 3)
105
{
106
    xx = __view_get(e__VW.XView, 0);
107
    yy = __view_get(e__VW.YView, 0);
108
    if (acting == 1 && actcon == 0)
109
    {
110
        actcon = 1;
111
        msgsetloc(0, 
* BIBLIOX - A worldly wizard that cast spells by spelling.Wait for input
"* BIBLIOX - A worldly wizard that cast spells by spelling./", "obj_bibliox_enemy_slash_Step_0_gml_135_0"
);
112
        msgnextloc(
* Unfortunately prone to typos.Wait for inputClose Message
"* Unfortunately prone to typos./%", "obj_bibliox_enemy_slash_Step_0_gml_136_0"
);
113
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
114
    }
115
    if ((acting == 2 && actcon == 0) || (acting == 3 && actcon == 0))
116
    {
117
        msgsetsubloc(0, 
* Select the right spelling!
"* Select the right spelling!", "obj_bibliox_enemy_slash_Step_0_gml_142_0"
);
118
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
119
        with (obj_writer)
120
            pos = 100;
121
        if (acting == 3)
122
            proofeasy = 1;
123
        acting = 2.5;
124
    }
125
    if (acting == 2.5)
126
    {
127
        timerb++;
128
        if (timerb == 6)
129
        {
130
            timerb = 0;
131
            controller = instance_create(x, y, obj_proofread_controller_new);
132
            controller.creatorid = id;
133
            if (proofeasy == 1)
134
                controller.easyproof = 1;
135
            acting = 20;
136
        }
137
    }
138
    if (acting == 20 && !i_ex(obj_proofread_controller_new))
139
    {
140
        timerb++;
141
        if (((button3_p() || button1_p()) && timerb > 17) || !i_ex(obj_writer))
142
        {
143
            with (obj_writer)
144
                instance_destroy();
145
            timerb = 0;
146
            actcon = 1;
147
        }
148
    }
149
    if (actingsus == 1 && actconsus == 1)
150
    {
151
        var s_act_text = stringsetloc(
* Susie attempted to read!Wait for input
"* Susie attempted to read!/", "obj_bibliox_enemy_slash_Step_0_gml_167_0"
);
152
        if (sactcount == 0 && simultotal == 1)
153
        {
154
            
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "gerson" || _speaker == "ger" || _speaker == "gers") global.typer = 85; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; ...
("noone");
155
            msgset(0, s_act_text);
156
            msgnextloc(
* ... But there were no pictures!Wait for input
"* ... But there were no pictures!/", "obj_bibliox_enemy_slash_Step_0_gml_173_0"
);
157
            msgnextloc(
* ... Susie fell asleep!!!Wait for input
"* ... Susie fell asleep!!!/", "obj_bibliox_enemy_slash_Step_0_gml_174_0"
);
158
            
scr_anyface_next
scr_anyface_next

function
scr_anyface_next(arg0, arg1)
{ global.msgno++;
scr_anyface(arg0, global.msgno, arg1);
}
("ralsei", "L");
159
            msgnextloc(
Face K* Susie?Wait for inputClose Message
"\\EK* Susie?/%", "obj_bibliox_enemy_slash_Step_0_gml_176_0"
);
160
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
161
        }
162
        else
163
        {
164
            msgset(0, s_act_text + "%");
165
            
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");
166
        }
167
        
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, 15);
168
        if (simulordersus == 0)
169
            actconsus = 20;
170
        else
171
            actconsus = 0;
172
        with (obj_bibliox_enemy)
173
            sactcount++;
174
    }
175
    if (actingral == 1 && actconral == 1)
176
    {
177
        msgsetloc(0, 
* Ralsei wore reading glasses!Wait for inputClose Message
"* Ralsei wore reading glasses!/%", "obj_bibliox_enemy_slash_Step_0_gml_193_0"
);
178
        
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, 30);
179
        
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");
180
        if (simulorderral == 0)
181
            actconral = 20;
182
        else
183
            actconral = 0;
184
    }
185
    if (actcon == 20 || actconsus == 20 || actconral == 20)
186
    {
187
        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; }
())
188
        {
189
            actconsus = -1;
190
            actconral = -1;
191
            actcon = 1;
192
        }
193
    }
194
    if (actcon == 1 && !instance_exists(obj_writer))
195
        
scr_nextact
scr_nextact

function
scr_nextact()
{ global.acting[0] = 0; global.acting[1] = 0; global.acting[2] = 0; global.actingsingle[global.currentactingchar] = 0; __minstance = global.monsterinstance[global.actingtarget[global.currentactingchar]]; with (__minstance) { acting = 0; actcon = 0; actconsus = 0; actconral = 0; actconnoe = 0; } var singleactcomplete = 0; while (global.currentactingchar < 3) { global.currentactingchar++; if (global.currentactingchar < 3) { if (global.actingsingle[global.currentactingchar] == 1) { __minstance = global.monsterinstance[global.actingtarget[global.currentactingchar]]; if (global.char[global.currentactingchar] == 2) { with (__minstance) actconsus = 1; if (global.actingsimul[global.currentactingchar] == 0) singleactcomplete = 1; break; } if (global.char[global.currentactingchar] == 3) { with (__minstance) actconral = 1; if (global.actingsimul[global.currentactingchar] == 0) singleactcomplete = 1; break; } if (global.char[global.currentactingchar] == 4) { with (__minstance) actconnoe = 1; if (global.actingsimul[global.currentactingchar] == 0) singleactcomplete = 1; break; } } } } if (i_ex(obj_sound_of_justice_enemy) && obj_sound_of_justice_enemy.phase == 1) { global.charturn = 3; global.myfight = 3; global.currentactingchar = 0; if (global.acting[0] == 0)
scr_nextact();
if (global.acting[0] == 1 && global.actingsimul[0] == 1)
scr_act_simul();
exit; } if (global.currentactingchar >= 3) { with (obj_monsterparent) { acting = 0; actingsus = 0; actingral = 0; actingnoe = 0; } global.currentactingchar = 0;
scr_attackphase();
} else if (!singleactcomplete) {
scr_act_simul();
} }
();
196
}
197
if (state == 3)
198
{
199
    
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);
200
    
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; } } }
();
201
}
202
203
enum e__VW
204
{
205
    XView,
206
    YView,
207
    WView,
208
    HView,
209
    Angle,
210
    HBorder,
211
    VBorder,
212
    HSpeed,
213
    VSpeed,
214
    Object,
215
    Visible,
216
    XPort,
217
    YPort,
218
    WPort,
219
    HPort,
220
    Camera,
221
    SurfaceID
222
}