Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_yellow_enemy_Step_0

related scripts: Alarm_4CleanUp_0Create_0Draw_0Other_11Other_22Step_0

(view raw script w/o annotations or w/e)
1
if (global.monster[myself] == 1)
2
{
3
    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)
4
    {
5
        
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; } }
();
6
        setbattlemsg = false;
7
        event_user(1);
8
        myattackpriority = 0;
9
        
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);
10
        if (!instance_exists(obj_darkener))
11
            instance_create(0, 0, obj_darkener);
12
        talk_var = choose(0, 1, 2, 3);
13
        if ((fail_counter > 1 || (fail_counter && trial_counter == 3)) && just_failed)
14
        {
15
            switch (trial_counter)
16
            {
17
                case 0:
18
                    talk_var = 4;
19
                    break;
20
                case 1:
21
                    talk_var = 5;
22
                    break;
23
                case 2:
24
                    talk_var = 6;
25
                    break;
26
                case 3:
27
                    talk_var = 7;
28
                    break;
29
            }
30
        }
31
        if (fail_counter == 0 && just_succeeded)
32
        {
33
            switch (trial_counter)
34
            {
35
                case 1:
36
                    talk_var = 8;
37
                    break;
38
                case 2:
39
                    talk_var = 9;
40
                    break;
41
                case 3:
42
                    talk_var = 10;
43
                    break;
44
            }
45
        }
46
        just_failed = false;
47
        just_succeeded = false;
48
        if (talk_var == 0)
49
            msgset_add(stringsetloc(
Got it?
We're puttin' you
in a cent...Wait for inputClose Message
"Got it?&We're puttin' you&in a cent.../%", "obj_yellow_enemy_slash_Step_0_gml_97_0"
), x - 20, y + 55, 10, 50);
50
        if (talk_var == 1)
51
            msgset_add(stringsetloc(
But they's a
pretty good shot.Wait for inputClose Message
"But they's a&pretty good shot./%", "obj_yellow_enemy_slash_Step_0_gml_98_0"
), x - 20, y + 55, 10, 50);
52
        if (talk_var == 2)
53
            msgset_add(stringsetloc(
And finally put
it behind bars.Wait for inputClose Message
"And finally put&it behind bars./%", "obj_yellow_enemy_slash_Step_0_gml_99_0"
), x - 20, y + 55, 10, 50);
54
        if (talk_var == 3)
55
            msgset_add(stringsetloc(
Blue's a revolver?
Guess I do
like gun's...Wait for inputClose Message
"Blue's a revolver?&Guess I do&like gun's.../%", "obj_yellow_enemy_slash_Step_0_gml_100_0"
), x - 20, y + 55, 10, 50);
56
        if (talk_var == 4)
57
            msgset_add(stringsetloc(
Who's nerdy
enough to
have that?Wait for inputClose Message
"Who's nerdy&enough to&have that?/%", "obj_yellow_enemy_slash_Step_0_gml_103_0"
), x - 20, y + 55, 10, 50);
58
        if (talk_var == 5)
59
            msgset_add(stringsetloc(
It does smell
mighty yummy...Wait for inputClose Message
"It does smell&mighty yummy.../%", "obj_yellow_enemy_slash_Step_0_gml_104_0"
), x - 20, y + 55, 10, 50);
60
        if (talk_var == 6)
61
            msgset_add(stringsetloc(
By the way, did
I miss a bloods
scene?Wait for inputClose Message
"By the way, did&I miss a bloods&scene?/%", "obj_yellow_enemy_slash_Step_0_gml_105_0"
), x - 20, y + 55, 10, 50);
62
        if (talk_var == 7)
63
            msgset_add(stringsetloc(
I know you's
sickened
criminells did it!
Admit it!Wait for inputClose Message
"I know you's&sickened&criminells did it!&Admit it!/%", "obj_yellow_enemy_slash_Step_0_gml_106_0"
), x - 20, y + 55, 10, 50);
64
        if (talk_var == 8)
65
            msgset_add(stringsetloc(
"Playin' Smash"
ain't ever right.Wait for inputClose Message
"\"Playin' Smash\"&ain't ever right./%", "obj_yellow_enemy_slash_Step_0_gml_108_0"
), x - 20, y + 55, 10, 50);
66
        if (talk_var == 9)
67
            msgset_add(stringsetloc(
Well... I did
wanna taste that
shirt.Wait for inputClose Message
"Well... I did&wanna taste that&shirt./%", "obj_yellow_enemy_slash_Step_0_gml_109_0"
), x - 20, y + 55, 10, 50);
68
        if (talk_var == 10)
69
            msgset_add(stringsetloc(
Huh! Didn't
know holes
was food...Wait for inputClose Message
"Huh! Didn't&know holes&was food.../%", "obj_yellow_enemy_slash_Step_0_gml_110_0"
), x - 20, y + 55, 10, 50);
70
        yellow_balloon();
71
    }
72
    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"))
73
        
scr_blconskip
scr_blconskip

function
scr_blconskip(arg0)
{ if (arg0 >= 0) { if (button1_p() && talktimer > arg0) talktimer = talkmax; talktimer++; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); if (i_ex(obj_balloon_queue)) msgset_fromqueue(); else global.mnfight = 1.5; } } else if (arg0 == -1) { if (!instance_exists(obj_writer)) { if (i_ex(obj_balloon_queue)) msgset_fromqueue(); else global.mnfight = 1.5; } } else if (arg0 == -2) { talktimer++; if (talktimer > 15) talktimer = talkmax; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); if (i_ex(obj_balloon_queue)) msgset_fromqueue(); else global.mnfight = 1.5; } } }
(15);
74
    if (global.mnfight == 1.5)
75
    {
76
        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))
77
        {
78
            instance_exists(obj_growtangle);
79
            instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
80
            if (!instance_exists(obj_moveheart))
81
                
scr_moveheart
scr_moveheart

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

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(90);
84
        }
85
    }
86
    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)
87
    {
88
        rtimer++;
89
        if (fight_type == "blue&yellow")
90
        {
91
            if (rtimer == 12)
92
            {
93
                turns++;
94
                global.typer = 6;
95
                global.fc = 0;
96
                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; } }
(999))
97
                {
98
                    var substring = string(myself);
99
                    global.battlemsg[0] = stringsetsubloc(
* Smells like flowers.
"* Smells like flowers.", substring, "obj_yellow_enemy_slash_Step_0_gml_156_0"
);
100
                    if (global.actcost[myself][1] == 2497.5)
101
                        global.battlemsg[0] = stringsetsubloc(
* You feel a strange lack of EVIDENCE.
"* You feel a strange lack of EVIDENCE.", substring, "obj_yellow_enemy_slash_Step_0_gml_160_0"
);
102
                    if (global.actcost[myself][1] != 2497.5 && global.tension >= 100)
103
                        global.battlemsg[0] = stringsetsubloc(
* The trial is ready!
* Use Yellow's JUSTICE act to begin!
"* The trial is ready!&* Use Yellow's JUSTICE act to begin!", substring, "obj_yellow_enemy_slash_Step_0_gml_164_0"
);
104
                    if (fail_counter > 1)
105
                    {
106
                        switch (trial_counter)
107
                        {
108
                            case 0:
109
                                global.battlemsg[0] = stringsetsubloc(
* Seth glances nervously at books...
"* Seth glances nervously at books...", substring, "obj_yellow_enemy_slash_Step_0_gml_171_0"
);
110
                                break;
111
                            case 1:
112
                                global.battlemsg[0] = stringsetsubloc(
* Green conspiciously oils the popcorn pan...
"* Green conspiciously oils the popcorn pan...", substring, "obj_yellow_enemy_slash_Step_0_gml_175_0"
);
113
                                break;
114
                            case 2:
115
                                global.battlemsg[0] = stringsetsubloc(
* Aqua laughs obviously about how red her ribbon is.
"* Aqua laughs obviously about how red her ribbon is.", substring, "obj_yellow_enemy_slash_Step_0_gml_179_0"
);
116
                                break;
117
                            case 3:
118
                                global.battlemsg[0] = stringsetsubloc(
* Blue looks wistfully at the string and sighs.
"* Blue looks wistfully at the string and sighs.", substring, "obj_yellow_enemy_slash_Step_0_gml_183_0"
);
119
                                break;
120
                        }
121
                    }
122
                }
123
                attacked = 1;
124
            }
125
        }
126
    }
127
}
128
if (global.myfight == 3)
129
{
130
    xx = __view_get(e__VW.XView, 0);
131
    yy = __view_get(e__VW.YView, 0);
132
    if (acting == 1 && actcon == 0)
133
    {
134
        global.writerimg[0] = spr_yellow_check1;
135
        global.writerimg[1] = spr_yellow_check2;
136
        global.writerimg[2] = spr_blue_check1;
137
        global.writerimg[3] = spr_blue_check2;
138
        msgsetloc(0, 
* YELLOW - AT \I0 DF \I1
A cowboy with his own peculiar
brand of justice.Wait for input
"* YELLOW - AT \\I0 DF \\I1&A cowboy with his own peculiar&brand of justice./", "obj_yellow_enemy_slash_Step_0_gml_210_0"
);
139
        msgnextloc(
* BLUE - AT \I2 DF \I3
A dancer who believes love to
be integral to life.Wait for inputClose Message
"* BLUE - AT \\I2 DF \\I3&A dancer who believes love to&be integral to life./%", "obj_yellow_enemy_slash_Step_0_gml_211_0"
);
140
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
141
        actcon = 1;
142
    }
143
    if (acting == 2 && actcon == 0)
144
    {
145
        if (trial_done[trial_counter])
146
            actcon = 0.1;
147
        else
148
            actcon = 0.05;
149
        msgsetloc(0, 
* You began the trial!Wait for inputClose Message
"* You began the trial!/%", "obj_yellow_enemy_slash_Step_0_gml_226_0"
);
150
        if (outfit)
151
            
scr_battle_sprite_set
scr_battle_sprite_set

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

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

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

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

function
scr_battle_sprite_actflash(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) {
scr_oflash();
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; } } }
("kris");
158
        
scr_battle_sprite_actflash
scr_battle_sprite_actflash

function
scr_battle_sprite_actflash(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) {
scr_oflash();
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; } } }
("susie");
159
        
scr_battle_sprite_actflash
scr_battle_sprite_actflash

function
scr_battle_sprite_actflash(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) {
scr_oflash();
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; } } }
("ralsei");
160
        
scr_battletext
scr_battletext

function
scr_battletext()
{ xx = camerax(); yy = cameray(); if (global.fc != 0) battlewriter = instance_create(xx + 30, yy + 376, obj_writer); if (global.fc == 0) battlewriter = instance_create(xx + 30, yy + 376, obj_writer); myface = instance_create(xx + 26, yy + 380, obj_face); with (battlewriter) { dialoguer = 1; facer = 1; if (global.fc == 0 && originalcharline == 33) charline = 26; } return battlewriter; }
();
161
        with (instance_create(0, 0, obj_yellow_trial_manager))
162
        {
163
            trial_id = other.trial_counter;
164
            if (other.evidence_obtained[0])
165
                ds_list_add(evidence_list, variable_struct_get(other.trial_evid, other.evidence_key[0]));
166
            if (other.evidence_obtained[4])
167
                ds_list_add(evidence_list, variable_struct_get(other.trial_evid, other.evidence_key[4]));
168
            if (other.evidence_obtained[2])
169
                ds_list_add(evidence_list, variable_struct_get(other.trial_evid, other.evidence_key[2]));
170
            if (other.evidence_obtained[1])
171
                ds_list_add(evidence_list, variable_struct_get(other.trial_evid, other.evidence_key[1]));
172
            if (other.evidence_obtained[5])
173
                ds_list_add(evidence_list, variable_struct_get(other.trial_evid, other.evidence_key[5]));
174
            if (other.evidence_obtained[3])
175
                ds_list_add(evidence_list, variable_struct_get(other.trial_evid, other.evidence_key[3]));
176
            if (other.evidence_obtained[6])
177
                ds_list_add(evidence_list, variable_struct_get(other.trial_evid, other.evidence_key[6]));
178
            if (ds_list_size(evidence_list) == 0)
179
                ds_list_add(evidence_list, other.trial_evid.annoyingdog);
180
            if (
scr_keyitemcheck
scr_keyitemcheck

function
scr_keyitemcheck(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 12; i += 1) { if (global.keyitem[i] == arg0) haveit = 1; if (global.keyitem[i] == arg0) itemcount += 1; } return haveit; }
(2))
181
                ds_list_add(evidence_list, other.trial_evid.egg);
182
            global.faceaction[0] = 6;
183
            global.faceaction[1] = 6;
184
            global.faceaction[2] = 6;
185
            global.charaction[0] = 6;
186
            global.charaction[1] = 6;
187
            global.charaction[2] = 6;
188
        }
189
    }
190
    if (actcon == 0.05)
191
    {
192
        if (!i_ex(obj_writer))
193
        {
194
            trial_done[trial_counter] = true;
195
            switch (trial_counter)
196
            {
197
                case 0:
198
                    var flor_x = camerax() + (camerawidth() * 0.5) + 25;
199
                    var flor_y = (cameray() + (cameraheight() * 0.45)) - 25;
200
                    msgset_add_func(function()
201
                    {
202
                        with (instance_create(camerax() + (camerawidth() * 0.5), cameray() + (cameraheight() * 0.45), obj_marker))
203
                        {
204
                            
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
();
205
                            sprite_index = spr_floradin_postflattened;
206
                            image_speed = 0;
207
                            depth = 100;
208
                            victim_marker = true;
209
                        }
210
                        with (instance_create(camerax() + (camerawidth() * 0.5), cameray() + (cameraheight() * 0.45), obj_marker))
211
                        {
212
                            
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
();
213
                            x -= 6;
214
                            y += 46;
215
                            image_xscale *= -1;
216
                            sprite_index = spr_trial_podium;
217
                            image_speed = 0;
218
                            depth = 99;
219
                            victim_marker = true;
220
                        }
221
                    });
222
                    msgset_add(stringsetloc(
State yer case, victum!Wait for inputClose Message
"State yer case, victum!/%", "obj_yellow_enemy_slash_Step_0_gml_304_0"
), x - 25, y + 25, 10, 50);
223
                    msgset_add(stringsetloc(
I was crushed flat&Delay 33amp;without permission.Wait for inputClose Message
"I was crushed flat^3&without permission./%", "obj_yellow_enemy_slash_Step_0_gml_305_0"
), flor_x, flor_y, 13, 50);
224
                    msgset_add(stringsetloc(
It's cool though.Wait for inputClose Message
"It's cool though./%", "obj_yellow_enemy_slash_Step_0_gml_306_0"
), flor_x, flor_y, 13, 50, function()
225
                    {
226
                    });
227
                    msgset_add(stringsetloc(
COOL AND ILLEGAL!!!&Delay 33amp;What criminells could
do such a crime!!&Delay 22amp;Find 'em!!Wait for inputClose Message
"COOL AND ILLEGAL!!!^3&What criminells could&do such a crime!!^2&Find 'em!!/%", "obj_yellow_enemy_slash_Step_0_gml_308_0"
), x - 20, y + 55, 10, 50, function()
228
                    {
229
                        with (obj_marker)
230
                        {
231
                            if (variable_instance_exists(id, "victim_marker"))
232
                                instance_destroy();
233
                        }
234
                    });
235
                    break;
236
                case 1:
237
                    msgset_add(stringsetloc(
I'll be victum
this time!Wait for inputClose Message
"I'll be victum&this time!/%", "obj_yellow_enemy_slash_Step_0_gml_316_0"
), x - 20, y + 55, 10, 50);
238
                    msgset_add(stringsetloc(
My favoritest
yellerest shirt
done was
vandalismed!Wait for inputClose Message
"My favoritest&yellerest shirt&done was&vandalismed!/%", "obj_yellow_enemy_slash_Step_0_gml_317_0"
), x - 20, y + 55, 10, 50);
239
                    msgset_add(stringsetloc(
Half of it's
all black and
smelly!Wait for inputClose Message
"Half of it's&all black and&smelly!/%", "obj_yellow_enemy_slash_Step_0_gml_318_0"
), x - 20, y + 55, 10, 50);
240
                    msgset_add(stringsetloc(
What kinda sick
criminell messes
with a man's shirt!?&Delay 22amp;Find 'em!Wait for inputClose Message
"What kinda sick&criminell messes&with a man's shirt!?^2&Find 'em!/%", "obj_yellow_enemy_slash_Step_0_gml_319_0"
), x - 20, y + 55, 10, 50);
241
                    break;
242
                case 2:
243
                    msgset_add_func(function()
244
                    {
245
                        with (instance_create(camerax() + (camerawidth() * 0.5), cameray() + (cameraheight() * 0.45), obj_marker))
246
                        {
247
                            y -= 30;
248
                            
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
();
249
                            sprite_index = spr_enemy_green_walk;
250
                            image_speed = 0;
251
                            depth = 100;
252
                            victim_marker = true;
253
                        }
254
                        with (instance_create(camerax() + (camerawidth() * 0.5), cameray() + (cameraheight() * 0.45), obj_marker))
255
                        {
256
                            
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
();
257
                            x -= 6;
258
                            y += 46;
259
                            image_xscale *= -1;
260
                            sprite_index = spr_trial_podium;
261
                            image_speed = 0;
262
                            depth = 99;
263
                            victim_marker = true;
264
                        }
265
                    });
266
                    msgset_add(stringsetloc(
Green, state yer
case!!Wait for inputClose Message
"Green, state yer&case!!/%", "obj_yellow_enemy_slash_Step_0_gml_347_0"
), x - 20, y + 25, 10, 50);
267
                    msgset_add_func(function()
268
                    {
269
                        talked = -1;
270
                        
scr_var_delay
scr_var_delay

function
scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_var_delayed(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_delay_var(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_delay_var_until(arg0, arg1, arg2) { scr_script_delayed_until(scr_var, arg2, arg0, arg1); }
("talked", 1, 10);
271
                    });
272
                    msgset_add("/%", -99999, -99999, 0, 36, function()
273
                    {
274
                        with (obj_marker)
275
                        {
276
                            if (sprite_index == spr_enemy_green_walk)
277
                            {
278
                                sprite_index = spr_green_sign_big;
279
                                if (global.lang == "ja")
280
                                    sprite_index = spr_green_sign_big_jp;
281
                                image_index = 0;
282
                                image_speed = 0;
283
                            }
284
                        }
285
                        talked = -1;
286
                        
scr_var_delay
scr_var_delay

function
scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_var_delayed(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_delay_var(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_delay_var_until(arg0, arg1, arg2) { scr_script_delayed_until(scr_var, arg2, arg0, arg1); }
("talked", 1, 45);
287
                    });
288
                    msgset_add(stringsetloc(
A stealer, huh!?&Delay 22amp;You better find 'em!!Wait for inputClose Message
"A stealer, huh!?^2&You better find 'em!!/%", "obj_yellow_enemy_slash_Step_0_gml_364_0"
), x - 20, y + 55, 10, 50, function()
289
                    {
290
                        with (obj_marker)
291
                        {
292
                            if (variable_instance_exists(id, "victim_marker"))
293
                                instance_destroy();
294
                        }
295
                    });
296
                    break;
297
                case 3:
298
                    msgset_add(stringsetloc(
What!? Delay 11I'm victum again!?&Delay 11amp;My secretest petals done
was STOLENED?!Wait for inputClose Message
"What!?^1 I'm victum again!?^1&My secretest petals done&was STOLENED?!/%", "obj_yellow_enemy_slash_Step_0_gml_372_0"
), x - 20, y + 40, 10, 50, function()
299
                    {
300
                        idlesprite = spr_yellow_shock_left;
301
                    });
302
                    msgset_add(stringsetloc(
How could that be!?
I done never told
nobody 'bout those!Wait for inputClose Message
"How could that be!?&I done never told&nobody 'bout those!/%", "obj_yellow_enemy_slash_Step_0_gml_375_0"
), x - 20, y + 40, 10, 50, function()
303
                    {
304
                        idlesprite = spr_yellow_embarassed;
305
                    });
306
                    msgset_add(stringsetloc(
Those was for someone
SPECIAL... rrrggghhh!!Wait for inputClose Message
"Those was for someone&SPECIAL... rrrggghhh!!/%", "obj_yellow_enemy_slash_Step_0_gml_378_0"
), x - 20, y + 40, 10, 50, function()
307
                    {
308
                        idlesprite = spr_yellow_hat_down;
309
                    });
310
                    msgset_add(stringsetloc(
I'll NEVER FORGIVE
who did this!!&Delay 11amp;NEVER!!Wait for inputClose Message
"I'll NEVER FORGIVE&who did this!!^1&NEVER!!/%", "obj_yellow_enemy_slash_Step_0_gml_381_0"
), x - 20, y + 40, 10, 50);
311
                    break;
312
            }
313
            msgset_add_func(function()
314
            {
315
                idlesprite = spr_yellow_idle;
316
                actcon = 0.1;
317
            });
318
            yellow_balloon();
319
            actcon = 0.075;
320
        }
321
    }
322
    if (actcon == 0.075)
323
    {
324
        if (talked == 1 && cantalk)
325
            yellow_balloon_control();
326
    }
327
    if (actcon == 0.1)
328
    {
329
        if (!i_ex(obj_writer))
330
        {
331
            actcon = 0.2;
332
            with (obj_yellow_trial_manager)
333
                begin_trial();
334
        }
335
    }
336
    if (actcon == 20 || actconsus == 20 || actconral == 20)
337
    {
338
        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; }
())
339
        {
340
            actconsus = -1;
341
            actconral = -1;
342
            actcon = 1;
343
        }
344
    }
345
    if (actcon == 1 && !instance_exists(obj_writer))
346
        
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();
} }
();
347
}
348
if (state == 3)
349
    
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; } } }
();
350
if (blockcon == 1)
351
{
352
    blocktimer++;
353
    if (blocktimer == 30)
354
    {
355
        x = xstart;
356
        y = ystart;
357
        hurtsprite = spr_yellow_dumbfounded;
358
        global.monsterx[myself] = obj_yellow_enemy.x;
359
        global.monstery[myself] = obj_yellow_enemy.y;
360
        blockcon = 0;
361
        blocktimer = 0;
362
        state = 0;
363
    }
364
}
365
if (healingraincon == 1)
366
{
367
    with (obj_writer)
368
        instance_destroy();
369
    msgsetloc(0, 
* BLUE cast HEALING RAIN on YELLOW!Wait for inputClose Message
"* BLUE cast HEALING RAIN on YELLOW!/%", "obj_yellow_enemy_slash_Step_0_gml_445_0"
);
370
    
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
371
    healingraincon = 2;
372
    idlesprite = spr_yellow_looksup;
373
    instance_create(obj_blue_enemy.x, obj_blue_enemy.y, obj_healing_rain);
374
}
375
if (healingraincon == 2)
376
{
377
    global.turntimer = 999;
378
    if (!instance_exists(obj_writer) && !i_ex(obj_healing_rain))
379
    {
380
        idlesprite = spr_yellow_idle;
381
        healingraincon = 0;
382
        healingraintimer = 0;
383
        global.turntimer = 2;
384
        global.fc = 0;
385
    }
386
}
387
388
enum e__VW
389
{
390
    XView,
391
    YView,
392
    WView,
393
    HView,
394
    Angle,
395
    HBorder,
396
    VBorder,
397
    HSpeed,
398
    VSpeed,
399
    Object,
400
    Visible,
401
    XPort,
402
    YPort,
403
    WPort,
404
    HPort,
405
    Camera,
406
    SurfaceID
407
}