Undertale script viewer

← back to main script listing

gml_Object_obj_aaron_Step_0

(view raw script w/o annotations or w/e)
1
if (global.mnfight == 3)
2
    attacked = 0;
3
if (alarm[5] > 0)
4
{
5
    if (global.monster[0] == 1)
6
    {
7
        if (global.monsterinstance[0].alarm[5] > alarm[5])
gml_Object_obj_aaron_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; whatiheard = -1; global.mnfight = 2; global.border = 7;
8
            alarm[5] = global.monsterinstance[0].alarm[5];
gml_Object_obj_aaron_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; whatiheard = -1; global.mnfight = 2; global.border = 7;
9
    }
10
    if (global.monster[1] == 1)
11
    {
12
        if (global.monsterinstance[1].alarm[5] > alarm[5])
gml_Object_obj_aaron_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; whatiheard = -1; global.mnfight = 2; global.border = 7;
13
            alarm[5] = global.monsterinstance[1].alarm[5];
gml_Object_obj_aaron_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; whatiheard = -1; global.mnfight = 2; global.border = 7;
14
    }
15
    if (global.monster[2] == 1)
16
    {
17
        if (global.monsterinstance[2].alarm[5] > alarm[5])
gml_Object_obj_aaron_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; whatiheard = -1; global.mnfight = 2; global.border = 7;
18
            alarm[5] = global.monsterinstance[2].alarm[5];
gml_Object_obj_aaron_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; whatiheard = -1; global.mnfight = 2; global.border = 7;
19
    }
20
}
21
if (global.mnfight == 1)
22
{
23
    if (talked == 0)
24
    {
25
        alarm[5] = 110;
gml_Object_obj_aaron_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; whatiheard = -1; global.mnfight = 2; global.border = 7;
26
        alarm[6] = 1;
gml_Object_obj_aaron_Alarm_6.gml

blcon = instance_create(x + 95, y - 25, obj_blconsm); gg = floor(random(3)); mycommand = round(random(100)); if (mycommand >= 0 && mycommand < 25) global.msg[0] =
Come on
in, the
water's
fine ; )
scr_gettext("obj_aaron_243")
; if (mycommand >= 25) global.msg[0] =
No need
for a
swimming
suit ; )
scr_gettext("obj_aaron_244")
; if (mycommand >= 50) global.msg[0] =
Edu-
cation?
Hobby?
Talent?
scr_gettext("obj_aaron_245")
; if (mycommand >= 75) global.msg[0] =
Whew,
I'm
sweating
; )
scr_gettext("obj_aaron_246")
; if (global.flag[95 aaron_woshua_event] == 1) { if (mycommand >= 0 && mycommand < 25) global.msg[0] =
Don't
get too
close
; )
scr_gettext("obj_aaron_249")
; if (mycommand >= 25) global.msg[0] =
Sure
isn't
creepy
out ; )
scr_gettext("obj_aaron_250")
; if (mycommand >= 50) global.msg[0] =
I sure
do love
muscles
; )
scr_gettext("obj_aaron_251")
; if (mycommand >= 75) global.msg[0] =
Whew,
I'm
sweating
; )
scr_gettext("obj_aaron_252")
; } if (whatiheard == 3) { global.msg[0] =
Flagrant
error
; )
scr_gettext("obj_aaron_257")
; if (flex == 1) global.msg[0] =
Flexing
contest?
OK, flex
more ; )
scr_gettext("obj_aaron_258")
; if (flex == 2) global.msg[0] =
Nice!!
I won't
lose
tho ; )
scr_gettext("obj_aaron_259")
; } if (whatiheard == 1) { if (gg == 0) global.msg[0] =
Fiesty,
huh?
; )
scr_gettext("obj_aaron_264")
; if (gg == 1) global.msg[0] =
Wow!
Spunky!
Love it
; )
scr_gettext("obj_aaron_265")
; if (gg == 2) global.msg[0] =
You'll
change
your
mind ; )
scr_gettext("obj_aaron_267")
; } if (whatiheard == 9) { global.msg[0] =
CHECK
all you
want ; )
scr_gettext("obj_aaron_272")
; if (global.flag[95 aaron_woshua_event] == 1) global.msg[0] =
... ; )
scr_gettext("obj_aaron_273")
; } if (whatiheard == 12) global.msg[0] =
Ha, nice.
My kind
of humor
; )
scr_gettext("obj_aaron_276")
; if (alphaup == 1) global.msg[0] =
Just the
two of
us, huh?
; )
scr_gettext("obj_aaron_278")
; if (alphaup == 1 && global.flag[95 aaron_woshua_event] == 1) global.msg[0] =
Hi?
; )
scr_gettext("obj_aaron_279")
; alphaup = 0; global.msg[1] =
Close MessageClose MessageClose Message
scr_gettext("obj_aaron_282")
; global.typer = 2; blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER); global.border = 6; obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8; obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8;
27
        talked = 1;
28
        global.heard = 0;
29
    }
30
}
31
if (control_check_pressed(0))
32
{
33
    if (alarm[5] > 5 && obj_lborder.x == global.idealborder[0] && alarm[6] < 0)
gml_Object_obj_aaron_Alarm_6.gml

blcon = instance_create(x + 95, y - 25, obj_blconsm); gg = floor(random(3)); mycommand = round(random(100)); if (mycommand >= 0 && mycommand < 25) global.msg[0] =
Come on
in, the
water's
fine ; )
scr_gettext("obj_aaron_243")
; if (mycommand >= 25) global.msg[0] =
No need
for a
swimming
suit ; )
scr_gettext("obj_aaron_244")
; if (mycommand >= 50) global.msg[0] =
Edu-
cation?
Hobby?
Talent?
scr_gettext("obj_aaron_245")
; if (mycommand >= 75) global.msg[0] =
Whew,
I'm
sweating
; )
scr_gettext("obj_aaron_246")
; if (global.flag[95 aaron_woshua_event] == 1) { if (mycommand >= 0 && mycommand < 25) global.msg[0] =
Don't
get too
close
; )
scr_gettext("obj_aaron_249")
; if (mycommand >= 25) global.msg[0] =
Sure
isn't
creepy
out ; )
scr_gettext("obj_aaron_250")
; if (mycommand >= 50) global.msg[0] =
I sure
do love
muscles
; )
scr_gettext("obj_aaron_251")
; if (mycommand >= 75) global.msg[0] =
Whew,
I'm
sweating
; )
scr_gettext("obj_aaron_252")
; } if (whatiheard == 3) { global.msg[0] =
Flagrant
error
; )
scr_gettext("obj_aaron_257")
; if (flex == 1) global.msg[0] =
Flexing
contest?
OK, flex
more ; )
scr_gettext("obj_aaron_258")
; if (flex == 2) global.msg[0] =
Nice!!
I won't
lose
tho ; )
scr_gettext("obj_aaron_259")
; } if (whatiheard == 1) { if (gg == 0) global.msg[0] =
Fiesty,
huh?
; )
scr_gettext("obj_aaron_264")
; if (gg == 1) global.msg[0] =
Wow!
Spunky!
Love it
; )
scr_gettext("obj_aaron_265")
; if (gg == 2) global.msg[0] =
You'll
change
your
mind ; )
scr_gettext("obj_aaron_267")
; } if (whatiheard == 9) { global.msg[0] =
CHECK
all you
want ; )
scr_gettext("obj_aaron_272")
; if (global.flag[95 aaron_woshua_event] == 1) global.msg[0] =
... ; )
scr_gettext("obj_aaron_273")
; } if (whatiheard == 12) global.msg[0] =
Ha, nice.
My kind
of humor
; )
scr_gettext("obj_aaron_276")
; if (alphaup == 1) global.msg[0] =
Just the
two of
us, huh?
; )
scr_gettext("obj_aaron_278")
; if (alphaup == 1 && global.flag[95 aaron_woshua_event] == 1) global.msg[0] =
Hi?
; )
scr_gettext("obj_aaron_279")
; alphaup = 0; global.msg[1] =
Close MessageClose MessageClose Message
scr_gettext("obj_aaron_282")
; global.typer = 2; blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER); global.border = 6; obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8; obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8;
34
        alarm[5] = 2;
gml_Object_obj_aaron_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; whatiheard = -1; global.mnfight = 2; global.border = 7;
35
}
36
if (global.hurtanim[myself] == 1)
37
{
38
    shudder = 8;
39
    alarm[3] = global.damagetimer;
gml_Object_obj_aaron_Alarm_3.gml

if (image_index != 1) { with (mypart1) instance_destroy(); dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y + 140, obj_dmgwriter); global.damage = takedamage; with (dmgwriter) dmg = global.damage; image_index = 1; snd_play(snd_damage); alarm[8] = 11; } if (sha == 0) sha = x; x = sha + shudder; if (shudder < 0) shudder = -(shudder + 1); else shudder = -shudder; if (shudder == 0) { sha = 0; global.hurtanim[myself] = 2; exit; } alarm[3] = 2;
40
    global.hurtanim[myself] = 3;
41
}
42
if (global.hurtanim[myself] == 2)
43
{
44
    global.monsterhp[myself] -= takedamage;
45
    with (dmgwriter)
46
alarm[2]
47
    if (global.monsterhp[myself] >= 1)
48
    {
49
        mypart1 = instance_create(x, y, part1);
50
        global.hurtanim[myself] = 0;
51
        image_index = 0;
52
        global.myfight = 0;
53
        global.mnfight = 1;
54
    }
55
    else
56
    {
57
        global.myfight = 0;
58
        global.mnfight = 1;
59
        killed = 1;
60
        instance_destroy();
61
    }
62
}
63
if (global.hurtanim[myself] == 5)
64
{
65
    global.damage = 0;
66
    instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
67
    with (obj_dmgwriter)
68
alarm[2]
69
    global.myfight = 0;
70
    global.mnfight = 1;
71
    global.hurtanim[myself] = 0;
72
}
73
if (global.mnfight == 2)
74
{
75
    if (attacked == 0)
76
    {
77
        pop = scr_monstersum
scr_monstersum

return global.monster[0] + global.monster[1] + global.monster[2];
();
78
        global.turntimer = 160;
79
        global.firingrate = 25;
80
        if (pop == 3)
81
            global.firingrate = global.firingrate * 2.4;
82
        if (pop == 2)
83
            global.firingrate = global.firingrate * 1.7;
84
        if (mycommand >= 0 && mycommand <= 50)
85
        {
86
            global.turntimer = 160;
87
            gen = instance_create(x, y, obj_muscbulgen);
88
            if (pop > 1)
89
                gen.offset = 1;
90
            gen.dmg = global.monsteratk[myself];
91
        }
92
        else
93
        {
94
            global.firingrate = 5;
95
            if (pop == 3)
96
                global.firingrate = global.firingrate * 2.7;
97
            if (pop == 2)
98
                global.firingrate = global.firingrate * 1.8;
99
            gen = instance_create(x, y, obj_sweatbulgen);
100
            gen.bullettype = 0;
101
        }
102
        gen.myself = myself;
103
        if (mycommand >= 0)
104
            global.msg[0] = 
* Aaron is splashing you
playfully.
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_aaron_478")
;
105
        if (mycommand >= 0 && global.flag[95 aaron_woshua_event] == 1)
106
            global.msg[0] = 
* Aaron is looking around,Delay 11
fearful of something.
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_aaron_479")
;
107
        if (mycommand >= 25)
108
            global.msg[0] = 
* Aaron is sweating bullets.Delay 33
* Literally.
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_aaron_480")
;
109
        if (mycommand >= 50)
110
            global.msg[0] = 
* Aaron is admiring his own
muscles.
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_aaron_481")
;
111
        if (mycommand >= 75)
112
            global.msg[0] = 
* Smells like an underwater
barnyard.
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_aaron_482")
;
113
        if (mycommand >= 90)
114
            global.msg[0] = 
* Smells like a mussel farm.
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_aaron_483")
;
115
        if (flex > 0)
116
            global.msg[0] = 
* Aaron is ready for your
next flex.
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_aaron_484")
;
117
        if (global.monsterhp[myself] < 30)
118
            global.msg[0] = 
* Aaron's muscles droop
comically.
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_aaron_486")
;
119
        attacked = 1;
120
    }
121
}
122
if (global.myfight == 2)
123
{
124
    if (whatiheard != -1)
125
    {
126
        if (global.heard == 0)
127
        {
128
            if (whatiheard == 0)
129
            {
130
                global.msc = 0;
131
                global.msg[0] = 
* AARON - ATK 24 DEF 12
* This seahorse has a lot of
HP (Horsepower).Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_aaron_502")
;
132
                global.msg[1] = 
* All of his attacks are harder
to dodge at the bottom of the
box.Wait for input^
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_aaron_503")
;
133
                OBJ_WRITER.halt = 3;
134
                iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
135
                with (iii)
136
                    halt = 0;
137
                whatiheard = 9;
138
            }
139
            if (whatiheard == 1)
140
            {
141
                global.msc = 0;
142
                global.msg[0] = 
* You tell Aaron to go away.Wait for input^
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_aaron_512")
;
143
                mercymod = -10;
144
                if (global.flag[95 aaron_woshua_event] == 1)
145
                {
146
                    global.msg[0] = 
* You tell Aaron to go away.Delay 11
* He agrees.Wait for input^
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_aaron_514")
;
147
                    mercymod = 222;
148
                }
149
                OBJ_WRITER.halt = 3;
150
                iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
151
                with (iii)
152
                    halt = 0;
153
            }
154
            if (whatiheard == 3)
155
            {
156
                global.msc = 0;
157
                if (flex == 0)
158
                    global.msg[0] = 
* You flex.Delay 11
* Aaron flexes twice as hard.
* ATTACK increases for you two.Wait for input^
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_aaron_524")
;
159
                if (flex == 1)
160
                    global.msg[0] = 
* You flex harder.Delay 11
* Aaron flexes thrice as hard.
* ATTACK increases for you two.Wait for input^
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_aaron_525")
;
161
                if (flex == 2)
162
                {
163
                    global.msg[0] = 
* You flex.Delay 11
* Aaron flexes very hard...Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_aaron_526")
;
164
                    mercymod = 400;
165
                    global.flag[143 spared_aaron] = 1;
166
                }
167
                global.msg[1] = 
* He flexes himself out of
the room!Wait for input^
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_aaron_527")
;
168
                flex += 1;
169
                if (global.at < 150)
170
                    global.at += 15;
171
                OBJ_WRITER.halt = 3;
172
                iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
173
                with (iii)
174
                    halt = 0;
175
                global.monsteratk[myself] += 1;
176
            }
177
            global.heard = 1;
178
        }
179
    }
180
}
181
if (whatiheard == 3 && flex == 3 && instance_exists(OBJ_WRITER))
182
{
183
    if (OBJ_WRITER.stringno == 1)
184
    {
185
        vspeed = -4;
186
        mypart1.vspeed = -4;
187
    }
188
}
189
if (whatiheard == 3 && flex == 3 && instance_exists(OBJ_WRITER) == 0)
190
{
191
    script_execute(scr_mercystandard);
192
    if (mercy < 0)
193
        instance_destroy();
194
}
195
if (alphaup == 1 && image_alpha < 1)
196
    image_alpha += 0.05;
197
if (global.myfight == 4)
198
{
199
    if (global.mercyuse == 0)
200
    {
201
        script_execute(scr_mercystandard);
202
        if (mercy < 0)
203
            instance_destroy();
204
    }
205
}
206
if (mercymod == 222 && instance_exists(OBJ_WRITER) == 0)
207
{
208
    script_execute(scr_mercystandard);
209
    if (mercy < 0)
210
        instance_destroy();
211
}