Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_tasque_manager_enemy_Step_0

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
{
3
    if (global.flag[419 tasque_manager_response] == 1)
4
        global.mercymod[myself] = 100;
5
    if (global.flag[419 tasque_manager_response] == 2)
6
        global.mercymod[myself] = 50;
7
    init = 1;
8
}
9
if (instance_exists(obj_tm_quizzler))
10
    simonsayscon = 1;
11
if (simonsayscon == 1 && !instance_exists(obj_tm_quizzler))
12
{
13
    simonsayscon = 0;
14
    if (hitbysimonsaysattackcount < 2 && quizDifficulty < 3)
15
        quizDifficulty++;
16
    hitbysimonsaysattackcount = 0;
17
}
18
if (global.monster[myself] == 1)
19
{
20
    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)
21
    {
22
        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; } }
();
23
        if (!instance_exists(obj_darkener))
24
            instance_create(0, 0, obj_darkener);
25
        global.typer = 50;
26
        var dialogText = stringsetloc("", "obj_tasque_manager_enemy_slash_Step_0_gml_15_0");
27
        rr = (scr_monsterpop
scr_monsterpop

function scr_monsterpop() { return global.monster[0] + global.monster[1] + global.monster[2]; }
() > 1) ? choose(0, 1, 2, 3) : choose(0, 1, 2);
28
        if (rr == 0)
29
            dialogText = stringsetloc(
Processes! Services!
Performance! Details!
"Processes! Services!&Performance! Details!", "obj_tasque_manager_enemy_slash_Step_0_gml_19_0"
);
30
        if (rr == 1)
31
        {
32
            var randomText = stringsetloc("", "obj_tasque_manager_enemy_slash_Step_0_gml_23_0");
33
            var randomChoice = choose(0, 1, 2, 3);
34
            if (randomChoice == 0)
35
                randomText = stringsetloc(
Wrinkly clothing?
"Wrinkly clothing?", "obj_tasque_manager_enemy_slash_Step_0_gml_27_0"
);
36
            else if (randomChoice == 1)
37
                randomText = stringsetloc(
Slouched back?
"Slouched back?", "obj_tasque_manager_enemy_slash_Step_0_gml_30_0"
);
38
            else if (randomChoice == 2)
39
                randomText = stringsetloc(
Delinquent tendencies?
"Delinquent tendencies?", "obj_tasque_manager_enemy_slash_Step_0_gml_33_0"
);
40
            else if (randomChoice == 3)
41
                randomText = stringsetloc(
Untied shoelaces?
"Untied shoelaces?", "obj_tasque_manager_enemy_slash_Step_0_gml_36_0"
);
42
            dialogText = stringsetsubloc("~1&Let me whip it into shape!", randomText, "obj_tasque_manager_enemy_slash_Step_0_gml_39_0");
43
        }
44
        if (rr == 2)
45
        {
46
            timesOrdered++;
47
            dialogText = (timesOrdered == 2) ? stringsetloc(
Hors d'oeuvre,
Hors d'oeuvre...
I mean, order, order!
"Hors d'oeuvre,&Hors d'oeuvre...&I mean, order, order!", "obj_tasque_manager_enemy_slash_Step_0_gml_46_0"
) : stringsetloc(
Order, order!
"Order, order!", "obj_tasque_manager_enemy_slash_Step_0_gml_46_1"
);
48
        }
49
        if (rr == 3)
50
        {
51
            timesCharged++;
52
            dialogText = (timesCharged > 1) ? stringsetloc(
Kitties!!
"Kitties!!", "obj_tasque_manager_enemy_slash_Step_0_gml_53_0"
) : stringsetloc(
Aren't my kitties just
so well behaved? Watch!
"Aren't my kitties just&so well behaved? Watch!", "obj_tasque_manager_enemy_slash_Step_0_gml_53_1"
);
53
        }
54
        var hasTail = false;
55
        for (var i = 0; i < 4; i++)
56
        {
57
            if (global.chararmor1[i] == 7 || global.chararmor2[i] == 7)
58
                hasTail = true;
59
        }
60
        if (hasTail == true && !tailcheck)
61
        {
62
            tailcheck = true;
63
            dialogText = stringsetloc(
Chaos, chaos!?
No, no! Order, order!
Now get rid of that
silly tail!
"Chaos, chaos!?&No, no! Order, order!&Now get rid of that&silly tail!", "obj_tasque_manager_enemy_slash_Step_0_gml_68_0"
);
64
        }
65
        if (global.charweapon[2] == 7 && !knifecheck)
66
        {
67
            knifecheck = true;
68
            dialogText = stringsetloc(
Chaos, chaos!?
No, no! Order, order!
Now get rid of that
silly Devilsknife!
"Chaos, chaos!?&No, no! Order, order!&Now get rid of that&silly Devilsknife!", "obj_tasque_manager_enemy_slash_Step_0_gml_74_0"
);
69
        }
70
        if (violenceused == 1 && violenceusedcon == 0)
71
        {
72
            dialogText = stringsetloc(
How dare you
touch my pretty kitty!
"How dare you&touch my pretty kitty!", "obj_tasque_manager_enemy_slash_Step_0_gml_106_0"
);
73
            violenceusedcon = 1;
74
        }
75
        else if (violenceused == 1 && violenceusedcon == 1)
76
        {
77
            var a = choose(0, 1);
78
            if (a == 0)
79
                dialogText = stringsetloc(
How dare you!
"How dare you!", "obj_tasque_manager_enemy_slash_Step_0_gml_112_0"
);
80
            if (a == 1)
81
                dialogText = stringsetloc(
You've been a
bad dog...
"You've been a&bad dog...", "obj_tasque_manager_enemy_slash_Step_0_gml_113_0"
);
82
        }
83
        msgset(0, dialogText);
84
        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_clubs; 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_clubs; 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; } }
(x - 10, global.monstery[myself], 10);
85
        talked = 1;
86
        talktimer = 0;
87
    }
88
    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"))
89
    {
90
        rtimer = 0;
91
        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 = 2; } } else if (arg0 == -1) { if (instance_exists(obj_writer) == false) global.mnfight = 2; } else if (arg0 == -2) { talktimer += 1; if (talktimer > 15) talktimer = talkmax; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); global.mnfight = 2; } } }
(15);
92
        if (scr_isphase
scr_isphase

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

function scr_moveheart() { global.inv = 0; if (global.chapter == 2 && instance_exists(obj_gigaqueen_enemy)) return instance_create(o_boxingcontroller.x + 4, o_boxingcontroller.y - 120, obj_moveheart); else return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart); }
();
96
            if (!instance_exists(obj_growtangle))
97
                instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
98
        }
99
    }
100
    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)
101
    {
102
        if (rtimer == 0)
103
        {
104
            if (overrideAttack)
105
                rr = 1;
106
            else
107
                rr = 0;
108
            if (rr == 1)
109
                obj_growtangle.target_angle = 45;
110
        }
111
        if (rtimer == 2 && scr_monsterpop
scr_monsterpop

function scr_monsterpop() { return global.monster[0] + global.monster[1] + global.monster[2]; }
() > 1)
112
        {
113
            if (rr == 1)
114
            {
115
                with (obj_tasque_enemy)
116
                    rr = (obj_tasque_manager_enemy.quizDifficulty > 1 && obj_tasque_manager_enemy.quizDifficulty != 4) ? 2 : -1;
117
            }
118
        }
119
        if (global.encounterno == 89)
120
            rr = 1;
121
        rtimer += 1;
122
        if (rtimer == 15)
123
        {
124
            if (rr == 0)
125
            {
126
                global.monsterattackname[myself] = "WhipAttack";
127
                dc = scr_bulletspawner
scr_bulletspawner

function scr_bulletspawner(arg0, arg1, arg2) { __dc = instance_create(arg0, arg1, arg2); __dc.creator = myself; __dc.target = mytarget; __dc.damage = global.monsterat[myself] * 5; return __dc; }
(x, y, obj_dbulletcontroller);
128
                dc.type = 20;
129
                dc.element = 6;
130
            }
131
            else if (rr == 1)
132
            {
133
                lastQuizLetter = -1;
134
                global.monsterattackname[myself] = "QuizAttack";
135
                dc = scr_bulletspawner
scr_bulletspawner

function scr_bulletspawner(arg0, arg1, arg2) { __dc = instance_create(arg0, arg1, arg2); __dc.creator = myself; __dc.target = mytarget; __dc.damage = global.monsterat[myself] * 5; return __dc; }
(x, y, obj_dbulletcontroller);
136
                dc.type = 32;
137
                dc.element = 6;
138
                if (global.encounterno == 89)
139
                {
140
                    dc.special = 1;
141
                    dc.difficulty = 4;
142
                }
143
                else
144
                {
145
                    dc.difficulty = quizDifficulty;
146
                }
147
            }
148
            scr_turntimer
scr_turntimer

function scr_turntimer(arg0) { if (global.turntimer < arg0) global.turntimer = arg0; }
(140);
149
            overrideAttack = 0;
150
            turns += 1;
151
            global.typer = 6;
152
            global.fc = 0;
153
            rr = choose(0, 1, 2, 3, 4);
154
            var battleText = stringsetloc("", "obj_tasque_manager_enemy_slash_Step_0_gml_161_0");
155
            if (rr == 0)
156
                battleText = stringsetloc(
* Tasque Manager makes a list of her outfits for the next year. She only has one outfit.
"* Tasque Manager makes a list of her outfits for the next year. She only has one outfit.", "obj_tasque_manager_enemy_slash_Step_0_gml_164_0"
);
157
            else if (rr == 1)
158
                battleText = stringsetloc(
* Tasque Manager is writing "manage tasks" next to every entry in her daily planner.
"* Tasque Manager is writing \"manage tasks\" next to every entry in her daily planner.", "obj_tasque_manager_enemy_slash_Step_0_gml_167_0"
);
159
            else if (rr == 2)
160
                battleText = stringsetloc(
* Tasque Manager is straightening her whip with a hair straightener.
"* Tasque Manager is straightening her whip with a hair straightener.", "obj_tasque_manager_enemy_slash_Step_0_gml_170_0"
);
161
            else if (rr == 3)
162
                battleText = stringsetloc(
* Tasque Manager is making herself take priority over everything.
"* Tasque Manager is making herself take priority over everything.", "obj_tasque_manager_enemy_slash_Step_0_gml_173_0"
);
163
            else if (rr == 4)
164
                battleText = stringsetloc(
* Smells like live wiring.
"* Smells like live wiring.", "obj_tasque_manager_enemy_slash_Step_0_gml_176_0"
);
165
            if (global.monsterstatus[myself] == 1)
166
                battleText = stringsetloc(
* Tasque Manager has reached her
meticulously scheduled bedtime.
"* Tasque Manager has reached her&meticulously scheduled bedtime.", "obj_tasque_manager_enemy_slash_Step_0_gml_181_0"
);
167
            if (global.mercymod[myself] >= global.mercymax[myself])
168
                battleText = stringsetloc(
* Tasque Manager has found things
to be sufficiently organized.
"* Tasque Manager has found things&to be sufficiently organized.", "obj_tasque_manager_enemy_slash_Step_0_gml_186_0"
);
169
            global.battlemsg[0] = battleText;
170
            attacked = 1;
171
        }
172
        else
173
        {
174
            scr_turntimer
scr_turntimer

function scr_turntimer(arg0) { if (global.turntimer < arg0) global.turntimer = arg0; }
(120);
175
        }
176
        if (global.encounterno == 89)
177
            scr_turntimer
scr_turntimer

function scr_turntimer(arg0) { if (global.turntimer < arg0) global.turntimer = arg0; }
(99999);
178
    }
179
}
180
if (global.myfight == 3)
181
{
182
    xx = __view_get(e__VW.XView, 0);
183
    yy = __view_get(e__VW.YView, 0);
184
    if (acting == 1 && actcon == 0)
185
    {
186
        actcon = 1;
187
        msgsetloc(0, 
* TASQUE MANAGER - Obsessed with order, and abhors Chaos. Whip it good!Wait for inputClose Message
"* TASQUE MANAGER - Obsessed with order, and abhors Chaos. Whip it good!/%", "obj_tasque_manager_enemy_slash_Step_0_gml_205_0"
);
188
        scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
189
    }
190
    if (acting == 2 && actcon == 0)
191
    {
192
        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_wan_tail, 0, 0);
193
        var simultext;
194
        if (violenceused == 1)
195
        {
196
            simultext = stringsetloc(
* (Your act failed...)Wait for inputClose Message
"* (Your act failed...)/%", "obj_tasque_manager_enemy_slash_Step_0_gml_254_0"
);
197
            actcon = 1;
198
        }
199
        else
200
        {
201
            if (global.hp[1] <= 0 && global.hp[2] <= 0)
202
                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; if (i_ex(obj_dmgwriter)) { with (obj_dmgwriter) { if (type == 5) _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);
203
            else
204
                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; if (i_ex(obj_dmgwriter)) { with (obj_dmgwriter) { if (type == 5) _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);
205
            overrideAttack = 1;
206
            if (simultotal == 1)
207
                simultext = stringsetloc(
* (You asked Tasque Manager to show you order. She obliges!)Wait for inputClose Message
"* (You asked Tasque Manager to show you order. She obliges!)/%", "obj_tasque_manager_enemy_slash_Step_0_gml_263_0"
);
208
            else
209
                simultext = stringsetloc(
* (You asked for order!)Wait for inputClose Message
"* (You asked for order!)/%", "obj_tasque_manager_enemy_slash_Step_0_gml_264_0"
);
210
        }
211
        msgset(0, simultext);
212
        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); }
("kris");
213
        actcon = (simulorderkri == 0) ? 20 : -1;
214
    }
215
    if (acting == 3 && actcon == 0)
216
    {
217
        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_wan_tail, 0, 0);
218
        if (violenceused == 1)
219
        {
220
            msgsetloc(0, 
* (You talked to Tasque Manager, but no effect...)Wait for inputClose Message
"* (You talked to Tasque Manager, but no effect...)/%", "obj_tasque_manager_enemy_slash_Step_0_gml_277_0"
);
221
            actcon = 1;
222
        }
223
        else
224
        {
225
            overrideAttack = 1;
226
            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; if (i_ex(obj_dmgwriter)) { with (obj_dmgwriter) { if (type == 5) _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);
227
            msgsetloc(0, 
* (Everyone asked Tasque Manager to show you order. She obliges!)Wait for inputClose Message
"* (Everyone asked Tasque Manager to show you order. She obliges!)/%", "obj_tasque_manager_enemy_slash_Step_0_gml_282_0"
);
228
            actcon = 1;
229
        }
230
        scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
231
    }
232
    if (actingsus == 1 && actconsus == 1)
233
    {
234
        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_susie_wan_sign, 0, 0);
235
        var simultext;
236
        if (violenceused == 1)
237
        {
238
            simultext = stringsetloc(
* S-Action failed!Wait for inputClose Message
"* S-Action failed!/%", "obj_tasque_manager_enemy_slash_Step_0_gml_293_0"
);
239
        }
240
        else
241
        {
242
            if (global.hp[0] <= 0 && global.hp[2] <= 0)
243
                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; if (i_ex(obj_dmgwriter)) { with (obj_dmgwriter) { if (type == 5) _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);
244
            else
245
                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; if (i_ex(obj_dmgwriter)) { with (obj_dmgwriter) { if (type == 5) _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);
246
            var a = choose(0, 1);
247
            if (a == 0)
248
                simultext = stringsetloc(
* Susie barked madly!Wait for inputClose Message
"* Susie barked madly!/%", "obj_tasque_manager_enemy_slash_Step_0_gml_301_0"
);
249
            if (a == 1)
250
                simultext = stringsetloc(
* Susie's mouth froths!Wait for inputClose Message
"* Susie's mouth froths!/%", "obj_tasque_manager_enemy_slash_Step_0_gml_302_0"
);
251
        }
252
        msgset(0, simultext);
253
        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");
254
        actconsus = (simulordersus == 0) ? 20 : 0;
255
    }
256
    if (actingral == 1 && actconral == 1)
257
    {
258
        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 }
("ralsei", spr_ralseib_wan, 0, 0);
259
        var simultext;
260
        if (violenceused == 1)
261
        {
262
            simultext = stringsetloc(
* R-Action failed!Wait for inputClose Message
"* R-Action failed!/%", "obj_tasque_manager_enemy_slash_Step_0_gml_314_0"
);
263
        }
264
        else
265
        {
266
            if (global.hp[0] <= 0 && global.hp[1] <= 0)
267
                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; if (i_ex(obj_dmgwriter)) { with (obj_dmgwriter) { if (type == 5) _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);
268
            else
269
                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; if (i_ex(obj_dmgwriter)) { with (obj_dmgwriter) { if (type == 5) _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);
270
            var a = choose(0, 1);
271
            if (a == 0)
272
                simultext = stringsetloc(
* Ralsei fell in line!Wait for inputClose Message
"* Ralsei fell in line!/%", "obj_tasque_manager_enemy_slash_Step_0_gml_322_0"
);
273
            if (a == 1)
274
                simultext = stringsetloc(
* Ralsei listened closely!Wait for inputClose Message
"* Ralsei listened closely!/%", "obj_tasque_manager_enemy_slash_Step_0_gml_323_0"
);
275
        }
276
        msgset(0, simultext);
277
        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");
278
        actconral = (simulorderral == 0) ? 20 : 0;
279
    }
280
    if (actcon == 1 && !instance_exists(obj_writer))
281
    {
282
        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; } } }
();
283
        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(); } }
();
284
    }
285
    if (actcon == 20 || actconsus == 20 || actconral == 20)
286
    {
287
        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; } } }
();
288
        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; }
())
289
        {
290
            actconsus = -1;
291
            actconral = -1;
292
            actcon = 1;
293
        }
294
    }
295
}
296
else if (obj_herokris.image_alpha == 0 || (instance_exists(obj_herosusie) && obj_herosusie.image_alpha == 0) || (instance_exists(obj_heroralsei) && obj_heroralsei.image_alpha == 0))
297
{
298
    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; } } }
();
299
}
300
if (scr_debug
scr_debug

function scr_debug() { return 0; }
())
301
{
302
}
303
304
enum e__VW
305
{
306
    XView,
307
    YView,
308
    WView,
309
    HView,
310
    Angle,
311
    HBorder,
312
    VBorder,
313
    HSpeed,
314
    VSpeed,
315
    Object,
316
    Visible,
317
    XPort,
318
    YPort,
319
    WPort,
320
    HPort,
321
    Camera,
322
    SurfaceID
323
}