Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_scarecrow_enemy_Step_0

related scripts: Alarm_4CleanUp_0Create_0Draw_0Other_22Step_0

(view raw script w/o annotations or w/e)
1
if (global.monster[myself] == 1)
2
{
3
    if (
scr_isphase
scr_isphase

function
scr_isphase(arg0)
{ __isphase = 0; if (arg0 == "menu" && global.myfight == 0) __isphase = 1; if (arg0 == "acting" && global.myfight == 3) __isphase = 1; if (arg0 == "victory" && global.myfight == 7) __isphase = 1; if (arg0 == "attack" || arg0 == "fight") { if (global.myfight == 1) __isphase = 1; } if (arg0 == "spell" || arg0 == "item") { if (global.myfight == 4) __isphase = 1; } if (arg0 == "enemytalk" || arg0 == "balloon") { if (global.mnfight == 1) __isphase = 1; } if (arg0 == "enemyattack" || arg0 == "bullets") { if (global.mnfight == 2) __isphase = 1; } return __isphase; }
("enemytalk") && talked == 0 && i_ex(obj_seth_shi_controller) && instance_number(obj_scarecrow_enemy) == 1 && obj_seth_shi_controller.con == 1)
4
        obj_seth_shi_controller.con = 3;
5
    if (i_ex(obj_seth_shi_controller) && ((obj_seth_shi_controller.con > 0 && obj_seth_shi_controller.con < 1) || obj_seth_shi_controller.con > 1) && obj_seth_shi_controller.con != 4)
6
    {
7
    }
8
    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)
9
    {
10
        
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; } }
();
11
        setbattlemsg = false;
12
        myattackchoice = choose(0, 1);
13
        myattackpriority = 1;
14
        if (myattackchoice == 2)
15
            myattackpriority = 50;
16
        
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);
17
        if (!instance_exists(obj_darkener))
18
            instance_create(0, 0, obj_darkener);
19
        global.typer = 50;
20
        if (instance_exists(obj_seth_shi_controller))
21
        {
22
            
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; global.faceaction[myself] = 0; } } }
("kris");
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; global.faceaction[myself] = 0; } } }
("susie");
24
            
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; global.faceaction[myself] = 0; } } }
("ralsei");
25
            if (!i_ex(obj_battleblcon))
26
            {
27
                if (instance_number(obj_scarecrow_enemy) == 3)
28
                {
29
                    msgsetloc(0, 
That's it!
Power
formation!Wait for inputClose Message
"That's it!&Power&formation!/%", "obj_scarecrow_enemy_slash_Step_0_gml_35_0"
);
30
                    
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_shi_controller.x - 15, obj_seth_shi_controller.y + 38, 10);
31
                }
32
                if (instance_number(obj_scarecrow_enemy) == 2)
33
                {
34
                    sethballoonorder++;
35
                    if (sethballoonorder == 1)
36
                        msgsetloc(0, 
Heh,Delay 11 getting rid
of one doesn't
change anything!Wait for inputClose Message
"Heh^1, getting rid&of one doesn't&change anything!/%", "obj_scarecrow_enemy_slash_Step_0_gml_41_0"
);
37
                    if (sethballoonorder >= 2)
38
                        msgsetloc(0, 
It...Delay 11 still
didn't change
anything!Wait for inputClose Message
"It..^1. still&didn't change&anything!/%", "obj_scarecrow_enemy_slash_Step_0_gml_42_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_shi_controller.x - 15, obj_seth_shi_controller.y + 38, 10);
40
                }
41
                if (instance_number(obj_scarecrow_enemy) == 1)
42
                    global.mnfight = 1.5;
43
            }
44
        }
45
        else if (instance_exists(obj_kawkaw_enemy))
46
        {
47
        }
48
        else
49
        {
50
            if (sadboy == true)
51
            {
52
                rr = choose(0, 1, 2);
53
                if (rr == 0)
54
                    msgsetloc(0, 
Uhh... don't
look at this.
"Uhh... don't&look at this.", "obj_scarecrow_enemy_slash_Step_0_gml_57_0_b"
);
55
                if (rr == 1)
56
                    msgsetloc(0, 
Oh, GROSS!
Someone's, uh...
eww! Bullets!
"Oh, GROSS!&Someone's, uh...&eww! Bullets!", "obj_scarecrow_enemy_slash_Step_0_gml_58_0_b"
);
57
                if (rr == 2)
58
                    msgsetloc(0, 
Oh, no! That,
green box!! Ugh!
What IS that?
"Oh, no! That,&green box!! Ugh!&What IS that?", "obj_scarecrow_enemy_slash_Step_0_gml_59_0"
);
59
            }
60
            else
61
            {
62
                rr = choose(0, 1, 2, 3);
63
                if (rr == 0)
64
                    msgsetloc(0, 
HEH!Delay 11 I'm on
that PSYCHO DRIFT!Delay 11 Try
and CATCH me!
"HEH^1! I'm on&that PSYCHO DRIFT^1! Try&and CATCH me!", "obj_scarecrow_enemy_slash_Step_0_gml_55_0"
);
65
                if (rr == 1)
66
                    msgsetloc(0, 
HEH!Delay 11 Follow
THIS!Delay 11 RISING...
SUMMERSALT!!
"HEH^1! Follow&THIS^1! RISING...&SUMMERSALT!!", "obj_scarecrow_enemy_slash_Step_0_gml_56_0"
);
67
                if (rr == 2)
68
                    msgsetloc(0, 
Real boys
can't do THIS!
SONIC DASH!!!
"Real boys&can't do THIS!&SONIC DASH!!!", "obj_scarecrow_enemy_slash_Step_0_gml_57_0"
);
69
                if (rr == 3)
70
                    msgsetloc(0, 
CROW KICK!
HAH,Delay 11 did you see that?
Too slow...
"CROW KICK!&HAH^1, did you see that?&Too slow...", "obj_scarecrow_enemy_slash_Step_0_gml_58_0"
);
71
            }
72
            
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 + 50, 10);
73
        }
74
        talked = 1;
75
        talktimer = 0;
76
        rtimer = 0;
77
    }
78
    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") && !instance_exists(obj_kawkaw_enemy))
79
    {
80
        if (instance_exists(obj_seth_shi_controller) && !instance_exists(obj_writer))
81
            global.mnfight = 1.5;
82
        else
83
            
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);
84
    }
85
    if (global.mnfight == 1.5)
86
    {
87
        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))
88
        {
89
            if (!instance_exists(obj_growtangle))
90
                instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle);
91
            if (!instance_exists(obj_moveheart))
92
                
scr_moveheart
scr_moveheart

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

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(90);
95
        }
96
    }
97
    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)
98
    {
99
        rtimer += 1;
100
        if (rtimer == 12)
101
        {
102
            if (i_ex(obj_seth_shi_controller))
103
            {
104
                if (instance_number(obj_scarecrow_enemy) == 1)
105
                {
106
                    global.monsterattackname[myself] = "scythebomb";
107
                    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);
108
                    dc.type = 145;
109
                    if (i_ex(obj_seth_shi_controller))
110
                    {
111
                        with (obj_seth_shi_controller.aqua_marker)
112
                            visible = false;
113
                        aqua = instance_create_depth(obj_seth_shi_controller.aqua_marker.x, obj_seth_shi_controller.aqua_marker.y, depth - 100, obj_attack_knifefan_manager);
114
                    }
115
                    
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(240);
116
                    redobattlemsg = true;
117
                }
118
                else
119
                {
120
                    global.monsterattackname[myself] = "shi spring";
121
                    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);
122
                    dc.type = 155;
123
                    
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(230);
124
                }
125
            }
126
            else
127
            {
128
                if (myattackchoice == -1)
129
                {
130
                    global.monsterattackname[myself] = "SplittingShuriken";
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 = 144;
133
                }
134
                if (myattackchoice == 0)
135
                {
136
                    global.monsterattackname[myself] = "easy shi attack";
137
                    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);
138
                    dc.type = 154;
139
                }
140
                if (myattackchoice == 1)
141
                {
142
                    global.monsterattackname[myself] = "scythebomb";
143
                    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);
144
                    dc.type = 145;
145
                }
146
                
scr_turntimer
scr_turntimer

function
scr_turntimer(arg0)
{ if (global.turntimer < arg0) global.turntimer = arg0; }
(250);
147
            }
148
            turns += 1;
149
            attacked = 1;
150
        }
151
    }
152
    if ((global.mnfight == 2 && global.turntimer <= 1) || redobattlemsg == true)
153
    {
154
        if (setbattlemsg == false || redobattlemsg == true)
155
        {
156
            redobattlemsg = false;
157
            if (state == 11)
158
                state = 0;
159
            global.typer = 6;
160
            global.fc = 0;
161
            rr = choose(0, 1, 2, 3);
162
            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)))
163
            {
164
                if (rr == 0)
165
                    global.battlemsg[0] = stringsetloc(
* Shi is focusing its Chi,Delay 11 which it also calls its Shi.
"* Shi is focusing its Chi^1, which it also calls its Shi.", "obj_scarecrow_enemy_slash_Step_0_gml_164_0"
);
166
                if (rr == 1)
167
                    global.battlemsg[0] = stringsetloc(
* Shi acts like it's jumping all over the place but does not actually move.
"* Shi acts like it's jumping all over the place but does not actually move.", "obj_scarecrow_enemy_slash_Step_0_gml_165_0"
);
168
                if (rr == 2)
169
                    global.battlemsg[0] = stringsetloc(
* Shi lowers its hat and chuckles.Delay 11 "Time to get serious..."
"* Shi lowers its hat and chuckles^1. \"Time to get serious...\"", "obj_scarecrow_enemy_slash_Step_0_gml_166_0"
);
170
                if (rr == 3)
171
                    global.battlemsg[0] = stringsetloc(
* Shi shouts "heh,Delay 11 behind you!" Then,Delay 11 doesn't actually move.
"* Shi shouts \"heh^1, behind you!\" Then^1, doesn't actually move.", "obj_scarecrow_enemy_slash_Step_0_gml_167_0"
);
172
                if (irandom(100) < 3)
173
                    global.battlemsg[0] = stringsetloc(
* Smells like straw.
"* Smells like straw.", "obj_scarecrow_enemy_slash_Step_0_gml_168_0"
);
174
            }
175
            if (global.monsterstatus[myself] == 1)
176
            {
177
                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))
178
                    global.battlemsg[0] = stringsetloc(
* Shi's movements finally slow.
"* Shi's movements finally slow.", "obj_scarecrow_enemy_slash_Step_0_gml_184_0"
);
179
            }
180
            if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 4))
181
            {
182
                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))
183
                    global.battlemsg[0] = stringsetloc(
* Shi leaks straw.
"* Shi leaks straw.", "obj_scarecrow_enemy_slash_Step_0_gml_174_0"
);
184
            }
185
            if (global.mercymod[myself] >= 100)
186
            {
187
                if (
scr_messagepriority
scr_messagepriority

function
scr_messagepriority(arg0)
{ if (i_ex(obj_battlecontroller)) { if (obj_battlecontroller.messagepriority < arg0) { obj_battlecontroller.messagepriority = arg0; return true; } else { return false; } } else { return false; } }
(102))
188
                    global.battlemsg[0] = stringsetloc(
* Shi seems satisfied.
"* Shi seems satisfied.", "obj_scarecrow_enemy_slash_Step_0_gml_179_0"
);
189
            }
190
            if (sadboy == true)
191
                global.battlemsg[0] = stringsetloc(
* The opponent...
* ... denies being the opponent.
"* The opponent...&* ... denies being the opponent.", "obj_scarecrow_enemy_slash_Step_0_gml_203_0_b"
);
192
            setbattlemsg = true;
193
        }
194
    }
195
}
196
if (global.myfight == 3)
197
{
198
    xx = __view_get(e__VW.XView, 0);
199
    yy = __view_get(e__VW.YView, 0);
200
    if (acting == 1 && actcon == 0)
201
    {
202
        actcon = 1;
203
        msgsetloc(0, 
* SHI - YELLOW's yes-man.Delay 11 A scarecrow with super speed...Delay 11 that can't move.Wait for input
"* SHI - YELLOW's yes-man^1. A scarecrow with super speed..^1. that can't move./", "obj_scarecrow_enemy_slash_Step_0_gml_203_0"
);
204
        msgnextloc(
* Supposed to be ORANGE's lackey,Delay 11 but they've never met.Delay 11 As it can't move.Wait for inputClose Message
"* Supposed to be ORANGE's lackey^1, but they've never met^1. As it can't move./%", "obj_scarecrow_enemy_slash_Step_0_gml_204_0"
);
205
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
206
    }
207
    if (acting == 2 && actcon == 0)
208
    {
209
        with (obj_herokris)
210
            x += 6;
211
        with (obj_herokris)
212
            y += 10;
213
        msgsetloc(0, 
* You acted like a scared crow!
"* You acted like a scared crow!", "obj_scarecrow_enemy_slash_Step_0_gml_216_0"
);
214
        
scr_simultext
scr_simultext

function
scr_simultext(arg0)
{ __simulorder = 0; if (arg0 == "kris") __simulorder = simulorderkri; if (arg0 == "susie") __simulorder = simulordersus; if (arg0 == "ralsei") __simulorder = simulorderral; if (arg0 == "noelle") __simulorder = simulordernoe; __yoffset = __simulorder * 30; global.typer = 4; battlewriter = instance_create(xx + 30, yy + 376 + __yoffset, obj_writer); }
("kris");
215
        
scr_act_charsprite
scr_act_charsprite

function
scr_act_charsprite(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } __returnvalue = _charactsprite[_charnum]; if (i_ex(_charinstance)) { with (_charinstance) { image_alpha = 0; state = 0; global.faceaction[myself] = 0; } _charactsprite[_charnum] =
scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum]) { depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1) image_speed = arg2; a =
scr_afterimage();
a.hspeed = 2.5; a.depth = depth + 1; b =
scr_afterimage();
b.image_alpha = 0.6; b.hspeed = 5; b.depth = depth + 2; } __returnvalue = _charactsprite[_charnum]; } return __returnvalue; } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
("kris", spr_kris_chicken, 0.16666666666666666, 1);
216
        if (simulorderkri == 0)
217
            actcon = 20;
218
        else
219
            actcon = -1;
220
        if (global.hp[2] < 1 && global.hp[3] < 1)
221
            
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);
222
        else
223
            
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, 30);
224
    }
225
    if (acting == 3 && actcon == 0)
226
    {
227
        msgsetloc(0, 
* Press with the right timing to INTIMIDATE!
"* Press with the right timing to INTIMIDATE!", "obj_scarecrow_enemy_slash_Step_0_gml_229_0"
);
228
        
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
229
        acting = 3.1;
230
    }
231
    if (acting == 3.1 && actcon == 0 && i_ex(obj_writer) && obj_writer.reachedend == 1)
232
    {
233
        instance_create(camerax() + 304, cameray() + 80, obj_scarecrow_intimidate);
234
        box = instance_create(camerax() + 320, cameray() + 220, obj_scarecrow_intimidate2);
235
        box.parentid = id;
236
        acting = 3.2;
237
    }
238
    if (acting == 3.2 && actcon == 0 && !i_ex(obj_scarecrow_intimidate2))
239
    {
240
        
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; global.faceaction[myself] = 0; } } }
("kris");
241
        
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; global.faceaction[myself] = 0; } } }
("susie");
242
        
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; global.faceaction[myself] = 0; } } }
("ralsei");
243
        with (obj_writer)
244
            instance_destroy();
245
    }
246
    if (create_afterimage == true)
247
    {
248
        custom_draw_example++;
249
        if ((custom_draw_example % 6) == 0)
250
        {
251
            with (obj_heroparent)
252
            {
253
                afterimage = instance_create(x, y, obj_afterimage_fog);
254
                afterimage.sprite_index = sprite_index;
255
                afterimage.image_index = image_index;
256
                afterimage.image_blend = image_blend;
257
                afterimage.image_speed = 0;
258
                afterimage.depth = depth;
259
                afterimage.image_xscale = image_xscale;
260
                afterimage.image_yscale = image_yscale;
261
                afterimage.image_angle = image_angle;
262
                with (afterimage)
263
                {
264
                    speed = 2.7;
265
                    direction = irandom(360);
266
                    fadeSpeed = 0.1;
267
                }
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 eats hay!
"* Susie eats hay!", "obj_scarecrow_enemy_slash_Step_0_gml_282_0"
);
276
        if (rand == 1)
277
            msgsetloc(0, 
* Susie pretends to scare crows!
"* Susie pretends to scare crows!", "obj_scarecrow_enemy_slash_Step_0_gml_283_0"
);
278
        if (rand == 2)
279
            msgsetloc(0, 
* Susie beats up the ground!
"* Susie beats up the ground!", "obj_scarecrow_enemy_slash_Step_0_gml_284_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, 30);
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 trades hats!
"* Ralsei trades hats!", "obj_scarecrow_enemy_slash_Step_0_gml_297_0"
);
296
        if (rand == 1)
297
            msgsetloc(0, 
* Ralsei poses like a scarecrow!
"* Ralsei poses like a scarecrow!", "obj_scarecrow_enemy_slash_Step_0_gml_298_0"
);
298
        if (rand == 2)
299
            msgsetloc(0, 
* Ralsei eats hay!
"* Ralsei eats hay!", "obj_scarecrow_enemy_slash_Step_0_gml_299_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[1] < 1 && global.hp[2] < 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, 30);
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
    {
322
        with (obj_herokris)
323
        {
324
            x = xstart;
325
            y = ystart;
326
        }
327
        
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();
} }
();
328
        
scr_act_charsprite_end
scr_act_charsprite_end

function
scr_act_charsprite_end()
{ for (i = 0; i < 10; i++) { with (_charactsprite[i]) instance_destroy(); } with (obj_heroparent) { if (image_alpha == 0) { image_alpha = 1; acttimer = 0; state = 0; global.faceaction[myself] = 0; } } }
();
329
        with (obj_scarecrow_shine)
330
        {
331
            timer = 0;
332
            con = 2;
333
        }
334
        create_afterimage = false;
335
        snd_stop(snd_sneo_overpower);
336
    }
337
}
338
if (state == 3)
339
{
340
    
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);
341
    hurttimer -= 1;
342
    if (hurttimer < 0)
343
    {
344
        state = 0;
345
    }
346
    else
347
    {
348
        if (global.monster[myself] == 0 && hurttimer == 1)
349
        {
350
            defeatanim = instance_create_depth(x - 38, y - 2, depth, obj_defeatanim_shi);
351
            defeatanim.sprite_index = spr_shi_surrender;
352
            defeatanim.image_index = 0;
353
            defeatanim.image_blend = merge_color(c_gray, c_white, 0.1);
354
            defeatanim.image_xscale = image_xscale;
355
            defeatanim.image_yscale = image_yscale;
356
            defeatanim.image_speed = 1/3;
357
            instance_destroy();
358
            
scr_monsterdefeat
scr_monsterdefeat

function
scr_monsterdefeat()
{ if (global.monster[myself] == 1) { debug_message("==
scr_monsterdefeat() called ==");
debug_message("===== Encounter Results ====="); global.monstergold[3] += global.monstergold[myself]; global.monsterexp[3] += global.monsterexp[myself]; global.monster[myself] = 0; if (global.flag[51 + myself] == 0) { global.flag[51 + myself] = 2; if (global.monsterhp[myself] <= 0) global.flag[51 + myself] = 1; } if (global.flag[51 + myself] == 1) { global.flag[40 violences] += 1; if (fatal == 1) global.flag[44 kills]++; } if (global.flag[51 + myself] == 2) global.flag[41 spares] += 1; if (global.flag[51 + myself] == 3) global.flag[42 pacifies] += 1; if (global.flag[51 + myself] == 5) global.flag[43 autosusie_violences] += 1; if (global.flag[51 + myself] == 6) { global.flag[45 freezes] += 1; global.monstergold[3] += 24; } if (
scr_monsterpop() == 0)
{ var _amt_add = 0; var _frozened = 0; var _violenced = 0; var _spared = 0; var _pacified = 0; for (var d_i = 0; d_i < 3; d_i++) { if (global.flag[51 + d_i] != 0) _amt_add += 1; if (global.flag[51 + d_i] == 1) _violenced += 1; if (global.flag[51 + d_i] == 2) _spared += 1; if (global.flag[51 + d_i] == 3) _pacified += 1; if (global.flag[51 + d_i] == 6) _frozened += 1; } if (_frozened > 0) global.flag[50 last_encounter_end] = 6; if (_pacified > 0) global.flag[50 last_encounter_end] = 3; if (_spared > 0) global.flag[50 last_encounter_end] = 2; if (_violenced > 0) global.flag[50 last_encounter_end] = 1; if (global.flag[50 last_encounter_end] == 6) global.flag[926 iceshocked_encounters]++; if (global.flag[54 encounter_pointer] != 0) { global.flag[global.flag[54 encounter_pointer]] = global.flag[50 last_encounter_end]; debug_message("encounter flag: global.flag[" + string(global.flag[54 encounter_pointer]) + "]=" + string(global.flag[50 last_encounter_end])); global.flag[54 encounter_pointer] = 0; } } event_user(11); debug_message("======="); } }
();
359
            if (recruitable == 1 && global.flag[61 disable_recruiting] == 0)
360
            {
361
                global.flag[63 violenced_last] = 1;
362
                if (global.flag[global.monstertype[myself] + 600] != -1)
363
                {
364
                    global.flag[global.monstertype[myself] + 600] = -1;
365
                    _rtext = instance_create(global.monsterx[myself], global.monstery[myself] - 40, obj_recruitanim);
366
                    _rtext.image_index = 7;
367
                }
368
            }
369
            for (var i = 0; i < 8; i++)
370
            {
371
                with (instance_create_depth(x + 40 + irandom(40), y + 20 + irandom(60), depth - 100, obj_shinobeetle_smokecloud))
372
                {
373
                    image_xscale = 1;
374
                    image_yscale = 1;
375
                    image_index = i;
376
                    image_speed = 0;
377
                    direction = 45 + (i * 90);
378
                    speed = 2 + random(1);
379
                    image_alpha -= random(0.07);
380
                    fadespeed = 0.08;
381
                }
382
            }
383
        }
384
        hurtshake += 1;
385
        if (hurtshake > 1)
386
        {
387
            if (shakex > 0)
388
                shakex -= 1;
389
            if (shakex < 0)
390
                shakex += 1;
391
            shakex = -shakex;
392
            hurtshake = 0;
393
        }
394
    }
395
}
396
397
enum e__VW
398
{
399
    XView,
400
    YView,
401
    WView,
402
    HView,
403
    Angle,
404
    HBorder,
405
    VBorder,
406
    HSpeed,
407
    VSpeed,
408
    Object,
409
    Visible,
410
    XPort,
411
    YPort,
412
    WPort,
413
    HPort,
414
    Camera,
415
    SurfaceID
416
}