Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_shinobeetle_enemy_Step_0

related scripts: Alarm_4Create_0Draw_0Other_22Step_0

(view raw script w/o annotations or w/e)
1
if (global.mercymod[myself] < 0)
2
    global.mercymod[myself] = 0;
3
if (global.monster[myself] == 1)
4
{
5
    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 && global.monsterhp[myself] < global.monstermaxhp[myself] && i_ex(obj_seth_shinobeetle_controller) && obj_seth_shinobeetle_controller.scon == 0)
6
    {
7
        with (obj_seth_shinobeetle_controller)
8
            scon = 1;
9
    }
10
    if (i_ex(obj_seth_shinobeetle_controller) && obj_seth_shinobeetle_controller.scon > 0)
11
    {
12
    }
13
    else 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)
14
    {
15
        
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; } }
();
16
        setbattlemsg = false;
17
        myattackchoice = choose(0);
18
        myattackpriority = 1;
19
        if (myattackchoice == 2)
20
            myattackpriority = 50;
21
        
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);
22
        if (!instance_exists(obj_darkener))
23
            instance_create(0, 0, obj_darkener);
24
        global.typer = 50;
25
        rr = choose(0, 1, 2, 3);
26
        var _secondballoon = false;
27
        if (i_ex(obj_seth_shinobeetle_controller) && global.mercymod[myself] >= 100)
28
            convince_max_mercy_count++;
29
        if (i_ex(obj_seth_shinobeetle_controller) && puppydogeyes == 1)
30
        {
31
            puppydogeyes = 2;
32
            msgsetloc(0, 
Are you
really going
to let
that work!?Wait for inputClose Message
"Are you&really going&to let&that work!?/%", "obj_shinobeetle_enemy_slash_Step_0_gml_38_0"
);
33
            
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 == 13) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; myblcon.side = 2; return myblcon; } if (arg2 == 14) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; myblcon.side = -1; return myblcon; } if (arg2 == 15) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; ...
(obj_seth_shinobeetle_controller.x + 29, obj_seth_shinobeetle_controller.y - 16, 13);
34
            global.mnfight = 1.5;
35
        }
36
        else if (i_ex(obj_seth_shinobeetle_controller) && global.mercymod[myself] >= 100 && convince_max_mercy_count >= 2)
37
        {
38
            msgsetloc(0, 
Heh,Delay 11 they don't
realize they can
ACT and SPARE
on the same turn!Wait for inputClose Message
"Heh^1, they don't&realize they can&ACT and SPARE&on the same turn!/%", "obj_shinobeetle_enemy_slash_Step_0_gml_44_0"
);
39
            
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 == 13) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; myblcon.side = 2; return myblcon; } if (arg2 == 14) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; myblcon.side = -1; return myblcon; } if (arg2 == 15) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; ...
(obj_seth_shinobeetle_controller.x + 29, obj_seth_shinobeetle_controller.y - 16, 13);
40
            _secondballoon = true;
41
        }
42
        else if (i_ex(obj_seth_shinobeetle_controller) && global.mercymod[myself] > 0)
43
        {
44
            msgsetloc(0, 
Don't worry,
I'm right
behind you!Wait for inputClose Message
"Don't worry,&I'm right&behind you!/%", "obj_shinobeetle_enemy_slash_Step_0_gml_50_0"
);
45
            
scr_enemyblcon
scr_enemyblcon

function
scr_enemyblcon(arg0, arg1, arg2)
{ if (arg2 == 0) { mywriter = instance_create(arg0, arg1, obj_writer); return mywriter; } if (arg2 == 1) { myblcon = instance_create(arg0, arg1, obj_battleblcon); return myblcon; } if (arg2 == 2) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v; return myblcon; } if (arg2 == 3) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; return myblcon; } if (arg2 == 4) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 0; myblcon.image_speed = 0; return myblcon; } if (arg2 == 5) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.image_index = 1; myblcon.image_speed = 0; return myblcon; } if (arg2 == 6) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_clubs; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 7) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_r; myblcon.image_index = 2; myblcon.image_speed = 0; return myblcon; } if (arg2 == 8) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long_tall; return myblcon; } if (arg2 == 10) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; return myblcon; } if (arg2 == 11) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_left; return myblcon; } if (arg2 == 12) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_v2_right; return myblcon; } if (arg2 == 13) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; myblcon.side = 2; return myblcon; } if (arg2 == 14) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; myblcon.side = -1; return myblcon; } if (arg2 == 15) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; ...
(obj_seth_shinobeetle_controller.x + 29, obj_seth_shinobeetle_controller.y - 16, 13);
46
            global.mnfight = 1.5;
47
        }
48
        else if (
scr_monsterpop
scr_monsterpop

function
scr_monsterpop()
{ return global.monster[0] + global.monster[1] + global.monster[2]; }
() > 1 || i_ex(obj_seth_shinobeetle_controller))
49
        {
50
            if (rr == 0)
51
                msgsetloc(0, 
The sound
of reeds,
helter and
skelter.
"The sound&of reeds,&helter and&skelter.", "obj_shinobeetle_enemy_slash_Step_0_gml_56_0"
);
52
            if (rr == 1)
53
                msgsetloc(0, 
Blackbirds,
calling to
the dead
of night.
"Blackbirds,&calling to&the dead&of night.", "obj_shinobeetle_enemy_slash_Step_0_gml_57_0"
);
54
            if (rr == 2)
55
                msgsetloc(0, 
Rice,
where a
wedding
had been.
"Rice,&where a&wedding&had been.", "obj_shinobeetle_enemy_slash_Step_0_gml_58_0"
);
56
            if (rr == 3)
57
                msgsetloc(0, 
Love me...
DO!!!!
"Love me...&DO!!!!", "obj_shinobeetle_enemy_slash_Step_0_gml_59_0"
);
58
            
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 == 13) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; myblcon.side = 2; return myblcon; } if (arg2 == 14) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; myblcon.side = -1; return myblcon; } if (arg2 == 15) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; ...
(x - 0, y + 70, 10);
59
        }
60
        else
61
        {
62
            if (first_turn_alone == false)
63
            {
64
                rr = choose(0, 1, 2);
65
                if (rr == 0)
66
                    msgsetloc(0, 
Oh,Delay 11 am I alone?
Can I quit being
a ninja now?
"Oh^1, am I alone?&Can I quit being&a ninja now?", "obj_shinobeetle_enemy_slash_Step_0_gml_68_0"
);
67
                if (rr == 1)
68
                    msgsetloc(0, 
Ah,Delay 11 I'm by
myself?Delay 11 That's
a relief!
"Ah^1, I'm by&myself^1? That's&a relief!", "obj_shinobeetle_enemy_slash_Step_0_gml_69_0"
);
69
                if (rr == 2)
70
                    msgsetloc(0, 
Phew,Delay 11 it's just
me?Delay 11 Time to think
for yourself!
"Phew^1, it's just&me^1? Time to think&for yourself!", "obj_shinobeetle_enemy_slash_Step_0_gml_70_0"
);
71
                first_turn_alone = true;
72
            }
73
            else
74
            {
75
                rr = choose(0, 1, 2);
76
                if (rr == 0)
77
                    msgsetloc(0, 
Peace
and
love!
"Peace&and&love!", "obj_shinobeetle_enemy_slash_Step_0_gml_78_0"
);
78
                if (rr == 1)
79
                    msgsetloc(0, 
Could I get
a little help
from my friends?
"Could I get&a little help&from my friends?", "obj_shinobeetle_enemy_slash_Step_0_gml_79_0"
);
80
                if (rr == 2)
81
                    msgsetloc(0, 
I'm happy
just to dance
with you!
"I'm happy&just to dance&with you!", "obj_shinobeetle_enemy_slash_Step_0_gml_80_0"
);
82
            }
83
            
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 == 13) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; myblcon.side = 2; return myblcon; } if (arg2 == 14) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; myblcon.side = -1; return myblcon; } if (arg2 == 15) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; ...
(x - 0, y + 70, 10);
84
        }
85
        if (i_ex(obj_seth_shinobeetle_controller))
86
        {
87
            if (global.mercymod[myself] > 0)
88
            {
89
                snd_play_x(snd_mercyadd, 0.8, 1);
90
                __mercydmgwriter = instance_create(global.monsterx[myself], (global.monstery[myself] + 20) - instance_number(obj_dmgwriter) - (instance_number(obj_dmgwriter) * 20), obj_dmgwriter);
91
                __mercydmgwriter.damage = -20;
92
                __mercydmgwriter.type = 5;
93
                global.mercymod[myself] -= 20;
94
            }
95
        }
96
        talked = 1;
97
        if (_secondballoon == true)
98
            talked = 0.6;
99
        talktimer = 0;
100
        rtimer = 0;
101
    }
102
    if (talked == 0.6 && !i_ex(obj_writer))
103
    {
104
        msgsetloc(0, 
Shinobeetle!
We've got this!
Keep it up!!Wait for inputClose Message
"Shinobeetle!&We've got this!&Keep it up!!/%", "obj_shinobeetle_enemy_slash_Step_0_gml_107_0"
);
105
        
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 == 13) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; myblcon.side = 2; return myblcon; } if (arg2 == 14) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; myblcon.auto_length = 1; myblcon.side = -1; return myblcon; } if (arg2 == 15) { myblcon = instance_create(arg0, arg1, obj_battleblcon); myblcon.sprite_index = spr_battleblcon_long; ...
(obj_seth_shinobeetle_controller.x + 29, obj_seth_shinobeetle_controller.y - 16, 13);
106
        talked = 1;
107
        global.mnfight = 1.5;
108
    }
109
    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"))
110
        
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);
111
    if (global.mnfight == 1.5 && !i_ex(obj_writer))
112
    {
113
        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))
114
        {
115
            if (!instance_exists(obj_growtangle))
116
                instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
117
            if (!instance_exists(obj_moveheart))
118
                
scr_moveheart
scr_moveheart

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

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(90);
121
        }
122
    }
123
    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)
124
    {
125
        rtimer += 1;
126
        if (rtimer == 12)
127
        {
128
            if (i_ex(obj_seth_shinobeetle_controller))
129
            {
130
                global.monsterattackname[myself] = "jumpingshuriken";
131
                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);
132
                dc.type = 146;
133
                
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(200);
134
                global.monsterattackname[myself] = "SupportFire";
135
                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);
136
                dc.type = 313;
137
            }
138
            else
139
            {
140
                var _usemigosp = false;
141
                for (var i = 0; i < instance_number(obj_shinobeetle_enemy); i++)
142
                {
143
                    enemy[i] = instance_find(obj_shinobeetle_enemy, i);
144
                    if (enemy[i].object_index != obj_shinobeetle_enemy)
145
                        _usemigosp = true;
146
                }
147
                for (var i = 0; i < instance_number(obj_dbulletcontroller); i++)
148
                {
149
                    enemy[i] = instance_find(obj_dbulletcontroller, i);
150
                    if (enemy[i].type == 146)
151
                        _usemigosp = true;
152
                }
153
                if (
scr_monsterpop
scr_monsterpop

function
scr_monsterpop()
{ return global.monster[0] + global.monster[1] + global.monster[2]; }
() == 1 && !i_ex(obj_seth_shinobeetle_controller))
154
                {
155
                    global.monsterattackname[myself] = "dancingbeetle";
156
                    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);
157
                    dc.type = 144.5;
158
                    
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(110);
159
                }
160
                else if (_usemigosp == true && global.flag[1870] == 1)
161
                {
162
                    global.monsterattackname[myself] = "migosproach";
163
                    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);
164
                    dc.type = 146.5;
165
                    
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(200);
166
                }
167
                else if (myattackchoice == 0 && _usemigosp == false)
168
                {
169
                    global.monsterattackname[myself] = "jumpingshuriken";
170
                    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);
171
                    dc.type = 146;
172
                    
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(200);
173
                }
174
            }
175
            turns += 1;
176
            global.typer = 6;
177
            global.fc = 0;
178
            rr = choose(0, 1, 2, 3);
179
            attacked = 1;
180
        }
181
    }
182
    if (global.mnfight == 2 && global.turntimer <= 1)
183
    {
184
        if (setbattlemsg == false)
185
        {
186
            global.typer = 6;
187
            global.fc = 0;
188
            rr = choose(0, 1, 2, 3);
189
            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)))
190
            {
191
                if (rr == 0)
192
                    global.battlemsg[0] = stringsetloc(
* Shinobeetle waits for the other enemies to pose,Delay 11 then copies them.
"* Shinobeetle waits for the other enemies to pose^1, then copies them.", "obj_shinobeetle_enemy_slash_Step_0_gml_216_0"
);
193
                if (rr == 1)
194
                    global.battlemsg[0] = stringsetloc(
* Shinobeetle polishes its bronzed shurakins.
"* Shinobeetle polishes its bronzed shurakins.", "obj_shinobeetle_enemy_slash_Step_0_gml_217_0"
);
195
                if (rr == 2)
196
                    global.battlemsg[0] = stringsetloc(
* Shinobeetle says "nin", then runs around on tiptoes.
"* Shinobeetle says \"nin\", then runs around on tiptoes.", "obj_shinobeetle_enemy_slash_Step_0_gml_218_0"
);
197
                if (rr == 3)
198
                    global.battlemsg[0] = stringsetloc(
* Shinobeetle spreads diatomaceous earth caltrops.
"* Shinobeetle spreads diatomaceous earth caltrops.", "obj_shinobeetle_enemy_slash_Step_0_gml_219_0"
);
199
                if (irandom(100) < 3)
200
                    global.battlemsg[0] = stringsetloc(
* Smells like roasted chestnuts.
"* Smells like roasted chestnuts.", "obj_shinobeetle_enemy_slash_Step_0_gml_220_0"
);
201
            }
202
            if (
scr_monsterpop
scr_monsterpop

function
scr_monsterpop()
{ return global.monster[0] + global.monster[1] + global.monster[2]; }
() == 1 && !i_ex(obj_seth_shinobeetle_controller))
203
            {
204
                if (rr == 0)
205
                    global.battlemsg[0] = stringsetloc(
* Shinobeetle happily cuts a pizza with a non-ninja sai.
"* Shinobeetle happily cuts a pizza with a non-ninja sai.", "obj_shinobeetle_enemy_slash_Step_0_gml_225_0"
);
206
                if (rr == 1)
207
                    global.battlemsg[0] = stringsetloc(
* Shinobeetle uses its regular alone-time smoke bombs.
"* Shinobeetle uses its regular alone-time smoke bombs.", "obj_shinobeetle_enemy_slash_Step_0_gml_226_0"
);
208
                if (rr == 2)
209
                    global.battlemsg[0] = stringsetloc(
* Shinobeetle creeps through shadows and cracks.
"* Shinobeetle creeps through shadows and cracks.", "obj_shinobeetle_enemy_slash_Step_0_gml_227_0"
);
210
                if (rr == 3)
211
                    global.battlemsg[0] = stringsetloc(
* Shinobeetle uses a kunai as a bookmark.
"* Shinobeetle uses a kunai as a bookmark.", "obj_shinobeetle_enemy_slash_Step_0_gml_228_0"
);
212
            }
213
            if (global.monsterstatus[myself] == 1)
214
            {
215
                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))
216
                    global.battlemsg[0] = stringsetloc(
* Shinobeetle conceals its exhaustion with ninja techniques.
"* Shinobeetle conceals its exhaustion with ninja techniques.", "obj_shinobeetle_enemy_slash_Step_0_gml_239_0"
);
217
            }
218
            if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 4))
219
            {
220
                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; } }
(101))
221
                    global.battlemsg[0] = stringsetloc(
* Shinobeetle flips on its back helplessly.
"* Shinobeetle flips on its back helplessly.", "obj_shinobeetle_enemy_slash_Step_0_gml_234_0"
);
222
            }
223
            setbattlemsg = true;
224
        }
225
    }
226
}
227
if (global.myfight == 3)
228
{
229
    xx = __view_get(e__VW.XView, 0);
230
    yy = __view_get(e__VW.YView, 0);
231
    if (acting == 1 && actcon == 0)
232
    {
233
        actcon = 1;
234
        msgsetloc(0, 
* SHINOBEETLE - Only a ninja by Seth's command.Delay 11 The only thing keeping the ruse is peer pressure.Wait for inputClose Message
"* SHINOBEETLE - Only a ninja by Seth's command^1. The only thing keeping the ruse is peer pressure./%", "obj_shinobeetle_enemy_slash_Step_0_gml_257_0"
);
235
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
236
    }
237
    if (acting == 2 && actcon == 0)
238
    {
239
        acting = 2.1;
240
        msgsetloc(0, 
* You told Shinobeetle to come to your side!Wait for inputClose Message
"* You told Shinobeetle to come to your side!/%", "obj_shinobeetle_enemy_slash_Step_0_gml_265_0"
);
241
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
242
    }
243
    if (acting == 2.1 && actcon == 0 && !i_ex(obj_writer))
244
    {
245
        acting = 0;
246
        actcon = 1;
247
        convince_count++;
248
        if (convince_count >= 5)
249
        {
250
            msgsetloc(0, 
* You CONVINCED Shinobeetle...Delay 11 this time,Delay 11 with puppy dog eyes!Wait for inputClose Message
"* You CONVINCED Shinobeetle..^1. this time^1, with puppy dog eyes!/%", "obj_shinobeetle_enemy_slash_Step_0_gml_278_0"
);
251
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
252
            
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]++; return __mercydmgwriter; }
(myself, 100);
253
            if (puppydogeyes == 0)
254
                puppydogeyes = 1;
255
        }
256
        else
257
        {
258
            
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]++; return __mercydmgwriter; }
(myself, 35);
259
            if (
scr_monsterpop
scr_monsterpop

function
scr_monsterpop()
{ return global.monster[0] + global.monster[1] + global.monster[2]; }
() > 1 || i_ex(obj_seth_shinobeetle_controller))
260
            {
261
                msgsetloc(0, 
* But,Delay 11 the enemy was too nervous!Wait for inputClose Message
"* But^1, the enemy was too nervous!/%", "obj_shinobeetle_enemy_slash_Step_0_gml_286_0"
);
262
                
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
263
            }
264
            else
265
            {
266
                msgsetloc(0, 
* ...Delay 11 but,Delay 11 the enemy already wants to do that!Wait for inputClose Message
"* ..^1. but^1, the enemy already wants to do that!/%", "obj_shinobeetle_enemy_slash_Step_0_gml_287_0"
);
267
                
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
268
            }
269
        }
270
    }
271
    if (actingsus == 1 && actconsus == 1)
272
    {
273
        var rand = choose(0, 1, 2);
274
        if (rand == 0)
275
            msgsetloc(0, 
* Susie flips over a beetle!
"* Susie flips over a beetle!", "obj_shinobeetle_enemy_slash_Step_0_gml_296_0"
);
276
        if (rand == 1)
277
            msgsetloc(0, 
* Susie encourages beetles to fight!
"* Susie encourages beetles to fight!", "obj_shinobeetle_enemy_slash_Step_0_gml_297_0"
);
278
        if (rand == 2)
279
            msgsetloc(0, 
* Susie catches bugs with her hands!
"* Susie catches bugs with her hands!", "obj_shinobeetle_enemy_slash_Step_0_gml_298_0"
);
280
        
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");
281
        if (global.hp[1] < 1 && global.hp[3] < 1)
282
            
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]++; return __mercydmgwriter; }
(myself, 50);
283
        else
284
            
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]++; return __mercydmgwriter; }
(myself, 20);
285
        global.flag[1888] = 1;
286
        if (simulordersus == 0)
287
            actconsus = 20;
288
        else
289
            actconsus = 0;
290
    }
291
    if (actingral == 1 && actconral == 1)
292
    {
293
        var rand = choose(0, 1, 2);
294
        if (rand == 0)
295
            msgsetloc(0, 
* Ralsei unseals a cup jelly!
"* Ralsei unseals a cup jelly!", "obj_shinobeetle_enemy_slash_Step_0_gml_312_0"
);
296
        if (rand == 1)
297
            msgsetloc(0, 
* Ralsei pretends to be a root veg!
"* Ralsei pretends to be a root veg!", "obj_shinobeetle_enemy_slash_Step_0_gml_313_0"
);
298
        if (rand == 2)
299
            msgsetloc(0, 
* Ralsei listens to a white album!
"* Ralsei listens to a white album!", "obj_shinobeetle_enemy_slash_Step_0_gml_314_0"
);
300
        
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");
301
        if (global.hp[2] < 1 && global.hp[1] < 1)
302
            
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]++; return __mercydmgwriter; }
(myself, 50);
303
        else
304
            
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]++; return __mercydmgwriter; }
(myself, 20);
305
        global.flag[1888] = 1;
306
        if (simulorderral == 0)
307
            actconral = 20;
308
        else
309
            actconral = 0;
310
    }
311
    if (actcon == 20 || actconsus == 20 || actconral == 20)
312
    {
313
        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; }
())
314
        {
315
            actconsus = -1;
316
            actconral = -1;
317
            actcon = 1;
318
        }
319
    }
320
    if (actcon == 1 && !instance_exists(obj_writer))
321
        
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();
} }
();
322
}
323
if (state == 3)
324
{
325
    
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);
326
    
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; } } }
();
327
}
328
329
enum e__VW
330
{
331
    XView,
332
    YView,
333
    WView,
334
    HView,
335
    Angle,
336
    HBorder,
337
    VBorder,
338
    HSpeed,
339
    VSpeed,
340
    Object,
341
    Visible,
342
    XPort,
343
    YPort,
344
    WPort,
345
    HPort,
346
    Camera,
347
    SurfaceID
348
}