Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shadowman_enemy_Step_0

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
{
3
    init = 1;
4
    if (i_ex(obj_tenna_board4_enemy))
5
    {
6
        global.actactor[0][0] = 4;
7
        global.actactor[0][1] = 4;
8
        
scr_spellmenu_setup
scr_spellmenu_setup

function
scr_spellmenu_setup()
{ var __actnamecheck = 0; var __monstertype = global.monstertype[0]; for (__i = 1; __i < 3; __i++) { if (global.monster[__i] == 1 && global.monstertype[__i] != __monstertype) __actnamecheck = 1; } for (__i = 0; __i < 3; __i++) { for (__fj = 0; __fj < 6; __fj++) { global.battlespell[__i][__fj] = 0; if (global.char[__i] == 1) { if (global.canact[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcost[0][__fj]; global.battlespellname[__i][__fj] = global.actname[0][__fj]; global.battlespelldesc[__i][__fj] = global.actdesc[0][__fj]; global.battlespelltarget[__i][__fj] = 0; global.battlespellspecial[__i][__fj] = 1; } } if (global.char[__i] == 2) { if (global.canactsus[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostsus[0][__fj]; global.battlespellname[__i][__fj] = global.actnamesus[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
S-Action
"S-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1053_0"
);
if (__actnamecheck && global.chapter == 3 && i_ex(obj_elnina_lanino_controller)) global.battlespellname[__i][__fj] = stringsetloc(
ILoveTV
"ILoveTV", "scr_spellmenu_setup_slash_scr_spellmenu_setup_gml_39_0"
);
global.battlespelldesc[__i][__fj] = global.actdescsus[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 2; } } if (global.char[__i] == 3) { if (global.canactral[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostral[0][__fj]; global.battlespellname[__i][__fj] = global.actnameral[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
R-Action
"R-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1057_0"
);
if (__actnamecheck && global.chapter == 3 && i_ex(obj_elnina_lanino_controller)) global.battlespellname[__i][__fj] = stringsetloc(
ILoveTV
"ILoveTV", "scr_spellmenu_setup_slash_scr_spellmenu_setup_gml_54_0"
);
global.battlespelldesc[__i][__fj] = global.actdescral[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 3; } } if (global.char[__i] == 4) { if (global.canactnoe[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostnoe[0][__fj]; global.battlespellname[__i][__fj] = global.actnamenoe[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
N-Action
"N-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1061_0"
);
global.battlespelldesc[__i][__fj] = global.actdescnoe[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 4; } } } }
scr_spellinfo_all();
for (__i = 0; __i < 3; __i++) { for (__fj = 0; __fj < 12; __fj++) { __ib = global.battleactcount[__i] + __fj; global.battlespell[__i][__ib] = global.spell[global.char[__i]][__fj]; global.battlespellcost[__i][__ib] = global.spellcost[global.char[__i]][__fj]; global.battlespellname[__i][__ib] = global.spellnameb[global.char[__i]][__fj]; global.battlespelldesc[__i][__ib] = global.spelldescb[global.char[__i]][__fj]; global.battlespelltarget[__i][__ib] = global.spelltarget[global.char[__i]][__fj]; } } }
();
9
    }
10
}
11
if (global.monster[myself] == 0 && krisdancing)
12
{
13
    
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; maxframes = 0; global.faceaction[myself] = 0; } } }
("kris");
14
    krisdancing = false;
15
}
16
if (global.monster[myself] == 0 && susiedancing)
17
{
18
    
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; maxframes = 0; global.faceaction[myself] = 0; } } }
("susie");
19
    susiedancing = false;
20
}
21
if (global.monster[myself] == 0 && ralseidancing)
22
{
23
    
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; maxframes = 0; global.faceaction[myself] = 0; } } }
("ralsei");
24
    ralseidancing = false;
25
}
26
if (global.monster[myself] == 1)
27
{
28
    var rouxlswait = false;
29
    if (i_ex(obj_rouxls_ch3_enemy) && obj_rouxls_ch3_enemy.dancecon > 0)
30
        rouxlswait = true;
31
    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 && rouxlswait == false)
32
    {
33
        
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; } }
();
34
        myattackchoice = choose(1, 2);
35
        turn++;
36
        if (instance_number(obj_monsterparent) == 1 || i_ex(obj_tenna_board4_enemy))
37
            myattackchoice = 2;
38
        if (turn > 4 && irandom(200) < 2)
39
            myattackchoice = 3;
40
        myattackpriority = 1;
41
        if (myattackchoice == 2)
42
            myattackpriority = 50;
43
        
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);
44
        if (!instance_exists(obj_darkener))
45
            instance_create(0, 0, obj_darkener);
46
        talked = 1;
47
        talktimer = 0;
48
        rtimer = 0;
49
    }
50
    if (talked == 1 && 
scr_isphase
scr_isphase

function
scr_isphase(arg0)
{ __isphase = 0; if (arg0 == "menu" && global.myfight == 0) __isphase = 1; if (arg0 == "acting" && global.myfight == 3) __isphase = 1; if (arg0 == "victory" && global.myfight == 7) __isphase = 1; if (arg0 == "attack" || arg0 == "fight") { if (global.myfight == 1) __isphase = 1; } if (arg0 == "spell" || arg0 == "item") { if (global.myfight == 4) __isphase = 1; } if (arg0 == "enemytalk" || arg0 == "balloon") { if (global.mnfight == 1) __isphase = 1; } if (arg0 == "enemyattack" || arg0 == "bullets") { if (global.mnfight == 2) __isphase = 1; } return __isphase; }
("enemytalk") && !i_ex(obj_rouxls_ch3_enemy))
51
    {
52
        if (!i_ex(obj_battleblcon) && talktimer == 1)
53
        {
54
            global.mnfight = 1.5;
55
            talktimer = talkmax;
56
        }
57
        
scr_blconskip
scr_blconskip

function
scr_blconskip(arg0)
{ if (arg0 >= 0) { if (button1_p() && talktimer > arg0) talktimer = talkmax; talktimer += 1; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); global.mnfight = 1.5; } } else if (arg0 == -1) { if (instance_exists(obj_writer) == false) global.mnfight = 1.5; } else if (arg0 == -2) { talktimer += 1; if (talktimer > 15) talktimer = talkmax; if (talktimer >= talkmax) { with (obj_writer) instance_destroy(); global.mnfight = 1.5; } } }
(15);
58
    }
59
    if (global.mnfight == 1.5)
60
    {
61
        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))
62
        {
63
            if (!instance_exists(obj_growtangle))
64
                instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
65
            var sax_count = 0;
66
            for (var i = 0; i < instance_number(obj_shadowman_enemy); i++)
67
            {
68
                enemy[i] = instance_find(obj_shadowman_enemy, i);
69
                if (enemy[i].myattackchoice == 1)
70
                    sax_count++;
71
            }
72
            if (sax_count > 1 && !i_ex(obj_rouxls_ch3_enemy))
73
            {
74
                obj_growtangle.maxxscale = 1;
75
                obj_growtangle.maxyscale = 2;
76
                obj_growtangle.x += 20;
77
            }
78
            if (!instance_exists(obj_moveheart))
79
                
scr_moveheart
scr_moveheart

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

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(90);
82
        }
83
    }
84
    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)
85
    {
86
        rtimer += 1;
87
        if (rtimer == 12)
88
        {
89
            if (skipattack == true)
90
                myattackchoice = -1;
91
            if (i_ex(obj_zapper_enemy))
92
                myattackchoice = 1;
93
            if (i_ex(obj_shutta_enemy))
94
                myattackchoice = 2;
95
            if (myattackchoice == 0)
96
            {
97
                global.monsterattackname[myself] = "trumpet";
98
                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);
99
                dc.type = 60;
100
            }
101
            else if (myattackchoice == 1)
102
            {
103
                global.monsterattackname[myself] = "saxophone";
104
                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);
105
                dc.type = 61;
106
            }
107
            else if (myattackchoice == 2)
108
            {
109
                target = 0;
110
                global.monsterattackname[myself] = "tommy gun";
111
                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);
112
                dc.type = 62;
113
            }
114
            else if (myattackchoice == 3)
115
            {
116
                global.monsterattackname[myself] = "censored bullet pattern";
117
                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);
118
                dc.type = 999;
119
                instance_create(x, y, obj_shadowman_caption);
120
            }
121
            
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(200);
122
            if (myattackchoice == 3)
123
                global.turntimer = 70;
124
            turns += 1;
125
            if (!i_ex(obj_rouxls_ch3_enemy) && !i_ex(obj_tenna_board4_enemy))
126
            {
127
                global.typer = 6;
128
                global.fc = 0;
129
                rr = choose(0, 1, 2, 3);
130
                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)))
131
                {
132
                    if (rr == 0)
133
                        global.battlemsg[0] = stringsetloc(
* Shadowguy plays the blues, blues, blues.
"* Shadowguy plays the blues, blues, blues.", "obj_shadowman_enemy_slash_Step_0_gml_151_0"
);
134
                    if (rr == 1)
135
                        global.battlemsg[0] = stringsetloc(
* Shadowguy snaps their fingers rhythmically.
"* Shadowguy snaps their fingers rhythmically.", "obj_shadowman_enemy_slash_Step_0_gml_152_0"
);
136
                    if (rr == 2)
137
                        global.battlemsg[0] = stringsetloc(
* Shadowguy rolls up their socks... secretly.
"* Shadowguy rolls up their socks... secretly.", "obj_shadowman_enemy_slash_Step_0_gml_153_0"
);
138
                    if (rr == 3)
139
                        global.battlemsg[0] = stringsetloc(
* Shadowguy's got the moves and the groove
"* Shadowguy's got the moves and the groove", "obj_shadowman_enemy_slash_Step_0_gml_154_0"
);
140
                }
141
                if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 3))
142
                {
143
                    if (
scr_messagepriority
scr_messagepriority

function
scr_messagepriority(arg0)
{ if (i_ex(obj_battlecontroller)) { if (obj_battlecontroller.messagepriority < arg0) { obj_battlecontroller.messagepriority = arg0; return true; } else { return false; } } else { return false; } }
(100 + random(2)))
144
                        global.battlemsg[0] = stringsetloc(
* Shadowguy's blues look bluer and bluer.
"* Shadowguy's blues look bluer and bluer.", "obj_shadowman_enemy_slash_Step_0_gml_160_0"
);
145
                }
146
                if (global.monsterstatus[myself] == 1)
147
                {
148
                    if (
scr_messagepriority
scr_messagepriority

function
scr_messagepriority(arg0)
{ if (i_ex(obj_battlecontroller)) { if (obj_battlecontroller.messagepriority < arg0) { obj_battlecontroller.messagepriority = arg0; return true; } else { return false; } } else { return false; } }
(100 + random(2)))
149
                        global.battlemsg[0] = stringsetloc(
* Shadowguy is on the midnight train to Dreamsville.
"* Shadowguy is on the midnight train to Dreamsville.", "obj_shadowman_enemy_slash_Step_0_gml_166_0"
);
150
                }
151
                if (global.mercymod[myself] >= 100)
152
                {
153
                    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)))
154
                        global.battlemsg[0] = stringsetloc(
* Shadowguy look seriously jazzed.
"* Shadowguy look seriously jazzed.", "obj_shadowman_enemy_slash_Step_0_gml_172_0"
);
155
                }
156
                if (irandom(100) < 4)
157
                    global.battlemsg[0] = stringsetloc(
* Smells like old saxophone reeds.
"* Smells like old saxophone reeds.", "obj_shadowman_enemy_slash_Step_0_gml_175_0"
);
158
            }
159
            attacked = 1;
160
        }
161
    }
162
    if (gainmercyovertime == 0)
163
    {
164
        with (obj_regularbullet)
165
            target = 0;
166
    }
167
    if ((global.mnfight == 2 && (savekrishp > global.hp[1] || savesusiehp > global.hp[2] || saveralseihp > global.hp[3]) && gainmercyovertime == 0) || (global.mnfight == 2 && global.turntimer <= 1 && gainmercyovertime == 0))
168
    {
169
        gainmercyovertime = 1;
170
        gainmercytimer = 0;
171
        
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; maxframes = 0; global.faceaction[myself] = 0; } } }
("kris");
172
        krisdancing = false;
173
        timberb = 15;
174
    }
175
    if (timberb > 0)
176
    {
177
        timberb--;
178
        with (__mercydmgwriter)
179
        {
180
            killtimer = 0;
181
            killactive = 0;
182
            kill = 0;
183
        }
184
    }
185
    if (global.mnfight == 2 && global.turntimer <= 1 && !i_ex(obj_rouxls_ch3_enemy))
186
    {
187
        myattackchoice = 0;
188
        with (obj_shadowman_caption)
189
            instance_destroy();
190
        
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; maxframes = 0; global.faceaction[myself] = 0; } } }
("kris");
191
        krisdancing = false;
192
        
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; maxframes = 0; global.faceaction[myself] = 0; } } }
("susie");
193
        susiedancing = false;
194
        
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; maxframes = 0; global.faceaction[myself] = 0; } } }
("ralsei");
195
        ralseidancing = false;
196
    }
197
    if (global.mnfight > 0 && !i_ex(obj_rouxls_ch3_enemy))
198
    {
199
        if (idlesprite == spr_shadowman_sax_b)
200
            idlesprite = spr_shadowman_idle_b;
201
        with (obj_herosusie)
202
        {
203
            if (sprite_index == spr_susie_dance)
204
            {
205
                susiedancing = false;
206
                
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; maxframes = 0; global.faceaction[myself] = 0; } } }
("susie");
207
                obj_herosusie.x = obj_herosusie.xstart;
208
                obj_herosusie.y = obj_herosusie.ystart;
209
            }
210
        }
211
        with (obj_heroralsei)
212
        {
213
            if (sprite_index == spr_ralsei_dance)
214
            {
215
                ralseidancing = false;
216
                
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; maxframes = 0; global.faceaction[myself] = 0; } } }
("ralsei");
217
            }
218
        }
219
    }
220
    if (gainmercyovertime == 0 && savekrishp <= global.hp[1] && savesusiehp <= global.hp[2] && saveralseihp <= global.hp[3])
221
    {
222
        if (global.mnfight == 2 && global.turntimer > 1 && i_ex(obj_dmgwriter_boogie))
223
        {
224
            gainmercytimer++;
225
            if ((obj_dmgwriter_boogie.damage == 5 && gainmercytimer >= 30) || (obj_dmgwriter_boogie.damage > 5 && gainmercytimer >= 1))
226
            {
227
                if (obj_dmgwriter_boogie.damage < 100)
228
                {
229
                    obj_dmgwriter_boogie.damage += 1;
230
                    obj_dmgwriter_boogie.init = 0;
231
                    global.mercymod[myself] += 1;
232
                }
233
                gainmercytimer = 0;
234
            }
235
        }
236
        with (obj_dmgwriter_boogie)
237
        {
238
            killtimer = 0;
239
            killactive = 0;
240
            kill = 0;
241
        }
242
    }
243
}
244
if (global.myfight == 3)
245
{
246
    xx = __view_get(e__VW.XView, 0);
247
    yy = __view_get(e__VW.YView, 0);
248
    if (acting == 1 && actcon == 0)
249
    {
250
        actcon = 1;
251
        global.writerimg[0] = spr_sharp_note_symbol;
252
        global.writerimg[1] = spr_flat_note_symbol;
253
        if (!i_ex(obj_tenna_board4_enemy))
254
            msgsetloc(0, 
* SHADOWGUY - AT \I0 DF \I1
* Battling's just a side gig. Playing on stage is the dream!Wait for inputClose Message
"* SHADOWGUY - AT \\I0 DF \\I1&* Battling's just a side gig. Playing on stage is the dream!/%", "obj_shadowman_enemy_slash_Step_0_gml_263_0"
);
255
        else
256
            msgsetloc(0, 
* SHADOWGUY - AT \I0 DF \I1
* The "Sharpshoot" act can shoot many things!Wait for inputClose Message
"* SHADOWGUY - AT \\I0 DF \\I1&* The \"Sharpshoot\" act can shoot many things!/%", "obj_shadowman_enemy_slash_Step_0_gml_264_0"
);
257
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
258
    }
259
    if (acting == 2 && actcon == 0)
260
    {
261
        con = 1;
262
        global.mercymod[myself] += 5;
263
        if (global.mercymod[myself] < 0)
264
            global.mercymod[myself] = 0;
265
        if (global.mercymod[myself] >= 100)
266
            global.mercymod[myself] = 100;
267
        snd_play_x(snd_mercyadd, 0.8, 1.4);
268
        __mercydmgwriter = instance_create_depth(global.monsterx[myself], global.monstery[myself] + 40, depth - 99999, obj_dmgwriter_boogie);
269
        __mercydmgwriter.damage = 5;
270
        __mercydmgwriter.type = 5;
271
        global.hittarget[myself]++;
272
        
scr_battle_sprite_set
scr_battle_sprite_set

function
scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 8; hurt = 0; attacktimer = 0; sprite_index = arg1; image_speed = arg2; image_index = 0; if (arg3 == 0) maxframes = image_number; global.faceaction[myself] = 0; } } }
("kris", spr_kris_dance, 0.25, true);
273
        
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");
274
        idlesprite = spr_shadowman_sax_b;
275
        msgsetloc(0, 
* Kris boogies past bullets!
* SHADOWGUY gains mercy until you get hit!Wait for inputClose Message
"* Kris boogies past bullets!&* SHADOWGUY gains mercy until you get hit!/%", "obj_shadowman_enemy_slash_Step_0_gml_289_0"
);
276
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
277
        gainmercyovertime = 0;
278
        savekrishp = global.hp[1];
279
        savesusiehp = global.hp[2];
280
        saveralseihp = global.hp[3];
281
        krisdancing = true;
282
    }
283
    if (acting == 3 && actcon == 0)
284
    {
285
        actype = 1;
286
        if (forceacttype == 1)
287
            actype = forceacttype;
288
        if (i_ex(obj_tenna_board4_enemy) || i_ex(obj_shutta_enemy) || global.encounterno == 132)
289
            actype = 0;
290
        if (actype == 0)
291
            msgsetloc(0, 
* Everyone gets ready to knock the enemies' hats off!Wait for inputClose Message
"* Everyone gets ready to knock the enemies' hats off!/%", "obj_shadowman_enemy_slash_Step_0_gml_303_0"
);
292
        if (actype == 1)
293
            msgsetloc(0, 
* Everyone gets ready to knock the enemies' socks off!Wait for inputClose Message
"* Everyone gets ready to knock the enemies' socks off!/%", "obj_shadowman_enemy_slash_Step_0_gml_304_0"
);
294
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
295
        obj_herokris.x -= 8;
296
        obj_herokris.y -= 12;
297
        obj_herosusie.x -= 8;
298
        obj_herosusie.y -= 6;
299
        obj_heroralsei.x -= 4;
300
        
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; if (arg2 > 0 && arg3 == 2)
scr_animate(0, sprite_get_number(arg1) - 1, arg2);
if (arg2 > 0 && arg3 > 2) {
scr_animate(0, sprite_get_number(arg1) - 1, arg2);
__animator.delay = arg3; } 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_ralsei_zoosuit, 0, 0);
301
        
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; if (arg2 > 0 && arg3 == 2)
scr_animate(0, sprite_get_number(arg1) - 1, arg2);
if (arg2 > 0 && arg3 > 2) {
scr_animate(0, sprite_get_number(arg1) - 1, arg2);
__animator.delay = arg3; } 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_zoosuit, 0, 0);
302
        
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; if (arg2 > 0 && arg3 == 2)
scr_animate(0, sprite_get_number(arg1) - 1, arg2);
if (arg2 > 0 && arg3 > 2) {
scr_animate(0, sprite_get_number(arg1) - 1, arg2);
__animator.delay = arg3; } 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_kris_zoosuit, 0, 0);
303
        snd_play(snd_boost);
304
        with (obj_tenna_board4_gacha)
305
            sharpshoot = true;
306
        acting = 3.1;
307
    }
308
    if (acting == 3.1 && actcon == 0 && !i_ex(obj_writer))
309
    {
310
        msgsetsubloc(0, "* Press directions to aim and ~1 to shoot!", 
scr_get_input_name
scr_get_input_name

function
scr_get_input_name(arg0)
{ var _control = "[?]"; if (global.is_console || obj_gamecontroller.gamepad_active) { _control = global.input_g[arg0]; if (_control == gp_padr) return "\\*D "; if (_control == gp_padl) return "\\*A "; if (_control == gp_padu) return "\\*W "; if (_control == gp_padd) return "\\*S "; if (_control == global.button0) return "\\*Z "; if (_control == global.button1) return "\\*X "; if (_control == global.button2) return "\\*C "; } var left_bracket = (global.lang == "en") ? "[" : "["; var right_bracket = (global.lang == "en") ? "]" : "]"; _control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket; if (!is_string(_control)) _control = "[?]"; else return _control; }
(6), "obj_shadowman_enemy_slash_Step_0_gml_325_0");
311
        if (scr_is_switch_os())
312
        {
313
            if (global.lang == "ja")
314
                msgsetsub(0, "* 方向ボタンで 狙いを定めて\n  ~1で発射!", 
scr_get_input_name
scr_get_input_name

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

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
317
        with (obj_writer)
318
            pos = 100;
319
        acting = 30;
320
        sharpshootlength = 0;
321
        instance_create(x, y, obj_shadowman_sharpshoot_cursor);
322
        with (obj_monsterparent)
323
        {
324
            darken = 1;
325
            
scr_rememberxy
scr_rememberxy

function
scr_rememberxy()
{ ___myrememberx = x; ___myremembery = y; }
();
326
            if (object_index == obj_shadowman_enemy && image_alpha != 0)
327
            {
328
                target = instance_create(x, y + 50, obj_shadowman_sharpshoot_target);
329
                target.parentid = id;
330
                if (global.mercymod[myself] >= 100)
331
                    target.spare = true;
332
                if (other.actype == 0)
333
                {
334
                    target.type = 0;
335
                    target.sprite_index = spr_shadowman_idle_hat;
336
                }
337
                else
338
                {
339
                    target.type = 1;
340
                    target.sprite_index = spr_shadowman_idle_socks;
341
                }
342
            }
343
            else if (object_index == obj_tenna_board4_enemy && image_alpha != 0)
344
            {
345
                target = instance_create(x, y + 50, obj_shadowman_sharpshoot_target);
346
                target.parentid = id;
347
                target.type = 3;
348
                if (global.mercymod[myself] >= 100)
349
                    target.spare = true;
350
            }
351
            else if (object_index == obj_zapper_enemy && image_alpha != 0)
352
            {
353
                target = instance_create(x + 40, y + 60, obj_shadowman_sharpshoot_target);
354
                target.parentid = id;
355
                target.type = 6;
356
                target.sprite_index = spr_zapper_sharpshoot;
357
                if (global.mercymod[myself] >= 100)
358
                    target.spare = true;
359
            }
360
            else if (object_index == obj_pippins_enemy && image_alpha != 0)
361
            {
362
                target = instance_create(x + 40, y + 60, obj_shadowman_sharpshoot_target);
363
                target.parentid = id;
364
                target.type = 7;
365
                target.sprite_index = spr_pippins_sharpshoot;
366
                if (global.mercymod[myself] >= 100)
367
                    target.spare = true;
368
            }
369
            else if (object_index == obj_shutta_enemy && image_alpha != 0)
370
            {
371
                target = instance_create(x + 40, y + 60, obj_shadowman_sharpshoot_target);
372
                target.parentid = id;
373
                target.type = 8;
374
                target.sprite_index = spr_shutta_sharpshoot;
375
                if (global.mercymod[myself] >= 100)
376
                    target.spare = true;
377
            }
378
            else if (image_alpha != 0)
379
            {
380
                target = instance_create(x + 40, y + 60, obj_shadowman_sharpshoot_target);
381
                target.parentid = id;
382
                target.type = 2;
383
                if (global.mercymod[myself] >= 100)
384
                    target.spare = true;
385
            }
386
        }
387
    }
388
    if (acting == 30)
389
    {
390
        sharpshoottimer++;
391
        if (sharpshoottimer >= 14)
392
        {
393
            obj_herokris.state = 8;
394
            obj_herokris.image_speed = 0;
395
            obj_herokris.image_index = 7;
396
        }
397
        with (obj_monsterparent)
398
        {
399
            y = ystart + (sin(other.sharpshoottimer / 15) * 50);
400
            if (object_index == obj_shadowman_enemy)
401
            {
402
                hspeed = sin(fsiner / 12) * 2;
403
                vspeed = cos(fsiner / 12) * 2;
404
            }
405
        }
406
        if (sharpshootlength > 0)
407
            sharpshootlength++;
408
        if (i_ex(obj_shadowman_sharpshoot_heart) && sharpshootlength == 0)
409
            sharpshootlength = 1;
410
        var _endact = true;
411
        for (var i = 0; i < instance_number(obj_monsterparent); i++)
412
        {
413
            enemy[i] = instance_find(obj_monsterparent, i);
414
            if (enemy[i].image_alpha != 0)
415
                _endact = false;
416
        }
417
        if (!i_ex(obj_shadowman_sharpshoot_cursor) || sharpshootlength >= 180 || _endact)
418
        {
419
            with (obj_monsterparent)
420
            {
421
                hspeed = 0;
422
                vspeed = 0;
423
                if (object_index == obj_shadowman_enemy && board4sharpshootscene == true)
424
                    
scr_move_to_point_over_time
scr_move_to_point_over_time

function
scr_move_to_point_over_time(arg0, arg1, arg2)
{ _mmm = instance_create(x, y, obj_move_to_point); _mmm.target = id; _mmm.movex = arg0; _mmm.movey = arg1; _mmm.movemax = arg2; return _mmm; }
(___myrememberx - 50, ___myremembery + 0, 10);
425
                else
426
                    
scr_move_to_point_over_time
scr_move_to_point_over_time

function
scr_move_to_point_over_time(arg0, arg1, arg2)
{ _mmm = instance_create(x, y, obj_move_to_point); _mmm.target = id; _mmm.movex = arg0; _mmm.movey = arg1; _mmm.movemax = arg2; return _mmm; }
(___myrememberx, ___myremembery, 10);
427
                darken = 0;
428
                if (sharpshootmercy > 0 && id.object_index != obj_tenna_board4_enemy && other.board4sharpshootscene == false)
429
                {
430
                    
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, sharpshootmercy);
431
                    sharpshootmercy = 0;
432
                }
433
            }
434
            with (obj_writer)
435
                instance_destroy();
436
            acting = 31;
437
            alarm[4]
 = 50;
gml_Object_obj_shadowman_enemy_Alarm_4.gml

con += 1;
438
            with (obj_shadowman_sharpshoot_cursor)
439
                stopshooting = true;
440
            with (obj_shadowman_sharpshoot_target)
441
                fadein = false;
442
            with (obj_shadowman_sharpshoot_target)
443
                stopshooting = true;
444
            for (var i = 0; i < 10; i++)
445
            {
446
                with (_charactsprite[i])
447
                    instance_destroy();
448
            }
449
            with (obj_heroparent)
450
            {
451
                image_alpha = 1;
452
                acttimer = 0;
453
                state = 0;
454
                global.faceaction[myself] = 0;
455
            }
456
            obj_herokris.x += 8;
457
            obj_herokris.y += 12;
458
            obj_herosusie.x += 8;
459
            obj_herosusie.y += 6;
460
            obj_heroralsei.x += 4;
461
            with (obj_tenna_board4_gacha)
462
                sharpshoot = false;
463
        }
464
    }
465
    if (con == 0 && acting == 31 && alarm[4]
 == 40)
gml_Object_obj_shadowman_enemy_Alarm_4.gml

con += 1;
466
    {
467
        with (obj_shadowman_enemy)
468
        {
469
            if (idlesprite == spr_shadowman_idle_bunny && image_alpha != 0)
470
            {
471
                snd_play(snd_slidewhistle);
472
                hat = instance_create(x, cameray(), obj_shadowman_enemy_hat);
473
                hat.parentid = id;
474
            }
475
        }
476
        if (!i_ex(obj_shadowman_enemy_hat))
477
            alarm[4]
 = 1;
gml_Object_obj_shadowman_enemy_Alarm_4.gml

con += 1;
478
    }
479
    if (con == 1 && !i_ex(obj_shadowman_enemy_hat))
480
    {
481
        if (!i_ex(obj_shadowman_enemy_hat))
482
        {
483
            con = 0;
484
            actcon = 1;
485
            sharpshoottimer = 0;
486
            with (obj_shadowman_sharpshoot_target)
487
                instance_destroy();
488
            if (board4sharpshootscene == true)
489
            {
490
                actcon = 0;
491
                acting = 32;
492
            }
493
        }
494
    }
495
    if (acting == 32)
496
    {
497
        obj_tenna_board4_enemy.tenna_actor.sprite_index = spr_tenna_hooray;
498
        obj_tenna_board4_enemy.tenna_actor.image_index = 2;
499
        talktimer = 0;
500
        acting = 33;
501
    }
502
    if (acting == 33)
503
    {
504
        idlesprite = spr_shadowman_serious_r;
505
        sparedsprite = spr_shadowman_serious_r;
506
        state = 4;
507
        talktimer++;
508
        if (talktimer == 1)
509
        {
510
            with (obj_actor_tenna)
511
                shakeamt = 5;
512
        }
513
        if (talktimer == 5)
514
        {
515
            with (obj_actor_tenna)
516
                shakeamt = 0;
517
            snd_play(snd_damage);
518
            with (obj_writer)
519
                instance_destroy();
520
            global.typer = 81;
521
            msgsetloc(0, 
H-Hey!!!
"H-Hey!!!", "obj_shadowman_enemy_slash_Step_0_gml_473_0"
);
522
            
scr_enemyblcon
scr_enemyblcon

function
scr_enemyblcon(arg0, arg1, arg2)
{ if (arg2 == 0) { mywriter = instance_create(arg0, arg1, obj_writer); return mywriter; } if (arg2 == 1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); return myblcon; } if (arg2 == 2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v; return myblcon; } if (arg2 == 3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; return myblcon; } if (arg2 == 4) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 0; myblcon.image_speed = 0; return myblcon; } if (arg2 == 5) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 1; myblcon.image_speed = 0; return myblcon; } if (arg2 == 6) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_clubs; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 7) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_r; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 8) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_tall; return myblcon; } if (arg2 == 10) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; return myblcon; } if (arg2 == 11) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_left; return myblcon; } if (arg2 == 12) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right; return myblcon; } if (arg2 == 12.1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right2; return myblcon; } if (arg2 == 12.2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right3; return myblcon; } if (arg2 == 12.3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right4; return myblcon; } if (arg2 == 12.4) { ...
(obj_tenna_board4_enemy.tenna_actor.x - 56, obj_tenna_board4_enemy.tenna_actor.y - 40, 10);
523
            myblcon.depth = depth - 10;
524
        }
525
        if (talktimer == 30)
526
        {
527
            talktimer = 0;
528
            acting = 34;
529
        }
530
    }
531
    if (acting == 34)
532
    {
533
        talktimer++;
534
        if (((button3_p() || button1_p()) && talktimer > 15) || !i_ex(obj_writer))
535
        {
536
            obj_tenna_board4_enemy.tenna_actor.sprite_index = spr_tenna_evil;
537
            with (obj_writer)
538
                instance_destroy();
539
            global.typer = 81;
540
            msgsetloc(0, 
How could you let
them use that act!?
"How could you let&them use that act!?", "obj_shadowman_enemy_slash_Step_0_gml_490_0"
);
541
            with (
scr_enemyblcon
scr_enemyblcon

function
scr_enemyblcon(arg0, arg1, arg2)
{ if (arg2 == 0) { mywriter = instance_create(arg0, arg1, obj_writer); return mywriter; } if (arg2 == 1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); return myblcon; } if (arg2 == 2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v; return myblcon; } if (arg2 == 3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; return myblcon; } if (arg2 == 4) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 0; myblcon.image_speed = 0; return myblcon; } if (arg2 == 5) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 1; myblcon.image_speed = 0; return myblcon; } if (arg2 == 6) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_clubs; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 7) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_r; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 8) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_tall; return myblcon; } if (arg2 == 10) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; return myblcon; } if (arg2 == 11) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_left; return myblcon; } if (arg2 == 12) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right; return myblcon; } if (arg2 == 12.1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right2; return myblcon; } if (arg2 == 12.2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right3; return myblcon; } if (arg2 == 12.3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right4; return myblcon; } if (arg2 == 12.4) { ...
(obj_tenna_board4_enemy.tenna_actor.x - 56, obj_tenna_board4_enemy.tenna_actor.y - 40, 10))
542
            {
543
            }
544
            myblcon.depth = depth - 10;
545
            talktimer = 0;
546
            acting = 35;
547
        }
548
    }
549
    if (acting == 35)
550
    {
551
        talktimer++;
552
        if (((button3_p() || button1_p()) && talktimer > 15) || !i_ex(obj_writer))
553
        {
554
            with (obj_writer)
555
                instance_destroy();
556
            global.typer = 81;
557
            msgsetloc(0, 
You're!!! Fired!!!
"You're!!! Fired!!!", "obj_shadowman_enemy_slash_Step_0_gml_504_0"
);
558
            with (
scr_enemyblcon
scr_enemyblcon

function
scr_enemyblcon(arg0, arg1, arg2)
{ if (arg2 == 0) { mywriter = instance_create(arg0, arg1, obj_writer); return mywriter; } if (arg2 == 1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); return myblcon; } if (arg2 == 2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v; return myblcon; } if (arg2 == 3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; return myblcon; } if (arg2 == 4) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 0; myblcon.image_speed = 0; return myblcon; } if (arg2 == 5) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 1; myblcon.image_speed = 0; return myblcon; } if (arg2 == 6) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_clubs; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 7) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_r; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 8) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_tall; return myblcon; } if (arg2 == 10) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; return myblcon; } if (arg2 == 11) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_left; return myblcon; } if (arg2 == 12) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right; return myblcon; } if (arg2 == 12.1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right2; return myblcon; } if (arg2 == 12.2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right3; return myblcon; } if (arg2 == 12.3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right4; return myblcon; } if (arg2 == 12.4) { ...
(obj_tenna_board4_enemy.tenna_actor.x - 56, obj_tenna_board4_enemy.tenna_actor.y - 40, 10))
559
            {
560
            }
561
            myblcon.depth = depth - 10;
562
            obj_tenna_board4_enemy.tenna_actor.sprite_index = spr_tenna_point_up_b;
563
            talktimer = 0;
564
            acting = 36;
565
        }
566
    }
567
    if (acting == 36)
568
    {
569
        talktimer++;
570
        if (talktimer == 1)
571
        {
572
            snd_play(snd_wing);
573
            
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
574
            idlesprite = spr_shadowman_sad;
575
            sparedsprite = spr_shadowman_sad;
576
        }
577
        if (talktimer == 31)
578
        {
579
            with (obj_shadowman_enemy)
580
                hspeed = 12;
581
            talktimer = 0;
582
            acting = 37;
583
        }
584
    }
585
    if (acting == 37)
586
    {
587
        talktimer++;
588
        if (((button3_p() || button1_p()) && talktimer > 15) || !i_ex(obj_writer))
589
        {
590
            obj_tenna_board4_enemy.tenna_actor.mad = false;
591
            with (obj_writer)
592
                instance_destroy();
593
            global.typer = 81;
594
            msgsetloc(0, 
Alright, no more
of THAT guy!
"Alright, no more&of THAT guy!", "obj_shadowman_enemy_slash_Step_0_gml_538_0"
);
595
            with (
scr_enemyblcon
scr_enemyblcon

function
scr_enemyblcon(arg0, arg1, arg2)
{ if (arg2 == 0) { mywriter = instance_create(arg0, arg1, obj_writer); return mywriter; } if (arg2 == 1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); return myblcon; } if (arg2 == 2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v; return myblcon; } if (arg2 == 3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; return myblcon; } if (arg2 == 4) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 0; myblcon.image_speed = 0; return myblcon; } if (arg2 == 5) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 1; myblcon.image_speed = 0; return myblcon; } if (arg2 == 6) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_clubs; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 7) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_r; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 8) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_tall; return myblcon; } if (arg2 == 10) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; return myblcon; } if (arg2 == 11) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_left; return myblcon; } if (arg2 == 12) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right; return myblcon; } if (arg2 == 12.1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right2; return myblcon; } if (arg2 == 12.2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right3; return myblcon; } if (arg2 == 12.3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right4; return myblcon; } if (arg2 == 12.4) { ...
(obj_tenna_board4_enemy.tenna_actor.x - 56, obj_tenna_board4_enemy.tenna_actor.y - 40, 10))
596
            {
597
            }
598
            myblcon.depth = depth - 10;
599
            with (obj_tenna_board4_enemy)
600
                tietimer = 1;
601
            talktimer = 0;
602
            acting = 38;
603
        }
604
        with (obj_tenna_board4_enemy)
605
            battleresult = 1;
606
    }
607
    if (acting == 38)
608
    {
609
        talktimer++;
610
        if (((button3_p() || button1_p()) && talktimer > 15) || !i_ex(obj_writer))
611
        {
612
            with (obj_writer)
613
                instance_destroy();
614
            with (obj_battlecontroller)
615
                skipvictory = 1;
616
            talktimer = 0;
617
            
scr_wincombat
scr_wincombat

function
scr_wincombat()
{ if (global.flag[60 dojo_next_encounter] == 0 || global.flag[36 dojo_failure] == 1) { global.myfight = 7; global.mnfight = -1; with (obj_battlecontroller) victory = 1; for (i = 0; i < 3; i += 1) { if (global.monster[i] == 1 && i_ex(global.monsterinstance[i])) { with (global.monsterinstance[i])
scr_monsterdefeat();
} } } else { for (i = 0; i < 3; i += 1) { if (global.monster[i] == 1 && i_ex(global.monsterinstance[i])) { with (global.monsterinstance[i])
scr_monsterdefeat();
} } global.encounterno = global.flag[60 dojo_next_encounter];
scr_encountersetup(global.encounterno);
global.flag[60 dojo_next_encounter] = 0; for (__j = 0; __j < 3; __j++) { if (global.monstertype[__j] != 0(None)) { _newmonster =
scr_monster_add(global.monstertype[__j], global.monsterinstancetype[__j]);
global.monsterinstance[_newmonster].x = camerax() + 800; global.monsterinstance[_newmonster].y = global.monstermakey[__j]; with (global.monsterinstance[_newmonster])
scr_move_to_point_over_time(global.monstermakex[myself], global.monstermakey[myself], 10);
} } global.myfight = 5; myfightreturntimer = 15; global.mnfight = -1; } }
();
618
            with (obj_tenna_board4_enemy)
619
            {
620
                tietimer = 0;
621
                tenna_actor.sprite_index = spr_tenna_pose_podium;
622
            }
623
        }
624
    }
625
    if (actingsus == 1 && actconsus == 1)
626
    {
627
        susiedancing = true;
628
        
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);
629
        if (simulordersus == 0)
630
            actconsus = 20;
631
        else
632
            actconsus = 0;
633
        
scr_battle_sprite_set
scr_battle_sprite_set

function
scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 8; hurt = 0; attacktimer = 0; sprite_index = arg1; image_speed = arg2; image_index = 0; if (arg3 == 0) maxframes = image_number; global.faceaction[myself] = 0; } } }
("susie", spr_susie_dance, 0.25, true);
634
        
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");
635
        idlesprite = spr_shadowman_sax_b;
636
        msgsetloc(0, 
* Susie danced!Wait for inputClose Message
"* Susie danced!/%", "obj_shadowman_enemy_slash_Step_0_gml_575_0"
);
637
        if (global.monsterstatus[myself] != 1)
638
            
scr_monster_make_tired
scr_monster_make_tired

function
scr_monster_make_tired(arg0)
{ if (image_alpha > 0) { if (global.monsterstatus[arg0] == 0) { __tiredwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] - (global.hittarget[arg0] * 20)) + 20, obj_dmgwriter); __tiredwriter.type = 13; global.hittarget[arg0] += 1; snd_play_x(snd_spellcast, 0.5, 0.9); } global.monstercomment[arg0] = stringsetloc(
(Tired)
"(Tired)", "scr_monster_make_tired_slash_scr_monster_make_tired_gml_1_0"
);
global.monsterstatus[arg0] = 1; } }
(myself);
639
        
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");
640
    }
641
    if (actingral == 1 && actconral == 1)
642
    {
643
        ralseidancing = true;
644
        
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);
645
        if (simulorderral == 0)
646
            actconral = 20;
647
        else
648
            actconral = 0;
649
        
scr_battle_sprite_set
scr_battle_sprite_set

function
scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 8; hurt = 0; attacktimer = 0; sprite_index = arg1; image_speed = arg2; image_index = 0; if (arg3 == 0) maxframes = image_number; global.faceaction[myself] = 0; } } }
("ralsei", spr_ralsei_dance, 0.25, true);
650
        
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");
651
        idlesprite = spr_shadowman_sax_b;
652
        msgsetloc(0, 
* Ralsei danced!Wait for inputClose Message
"* Ralsei danced!/%", "obj_shadowman_enemy_slash_Step_0_gml_593_0"
);
653
        if (global.monsterstatus[myself] != 1)
654
            
scr_monster_make_tired
scr_monster_make_tired

function
scr_monster_make_tired(arg0)
{ if (image_alpha > 0) { if (global.monsterstatus[arg0] == 0) { __tiredwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] - (global.hittarget[arg0] * 20)) + 20, obj_dmgwriter); __tiredwriter.type = 13; global.hittarget[arg0] += 1; snd_play_x(snd_spellcast, 0.5, 0.9); } global.monstercomment[arg0] = stringsetloc(
(Tired)
"(Tired)", "scr_monster_make_tired_slash_scr_monster_make_tired_gml_1_0"
);
global.monsterstatus[arg0] = 1; } }
(myself);
655
        
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");
656
    }
657
    if (actcon == 20 || actconsus == 20 || actconral == 20)
658
    {
659
        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; }
())
660
        {
661
            actconsus = -1;
662
            actconral = -1;
663
            actcon = 1;
664
        }
665
    }
666
    if (actcon == 1 && !instance_exists(obj_writer))
667
        
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();
} }
();
668
}
669
if (state == 3)
670
{
671
    
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);
672
    
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; } } }
();
673
}
674
675
enum e__VW
676
{
677
    XView,
678
    YView,
679
    WView,
680
    HView,
681
    Angle,
682
    HBorder,
683
    VBorder,
684
    HSpeed,
685
    VSpeed,
686
    Object,
687
    Visible,
688
    XPort,
689
    YPort,
690
    WPort,
691
    HPort,
692
    Camera,
693
    SurfaceID
694
}