Undertale script viewer

← back to main script listing

gml_Object_obj_ripoff_papyrus_Step_0

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

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; global.mnfight = 2;
11
            alarm[5] = global.monsterinstance[0].alarm[5];
gml_Object_obj_ripoff_papyrus_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; global.mnfight = 2;
12
    }
13
    if (global.monster[1] == 1)
14
    {
15
        if (global.monsterinstance[1].alarm[5] > alarm[5])
gml_Object_obj_ripoff_papyrus_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; global.mnfight = 2;
16
            alarm[5] = global.monsterinstance[1].alarm[5];
gml_Object_obj_ripoff_papyrus_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; global.mnfight = 2;
17
    }
18
    if (global.monster[2] == 1)
19
    {
20
        if (global.monsterinstance[2].alarm[5] > alarm[5])
gml_Object_obj_ripoff_papyrus_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; global.mnfight = 2;
21
            alarm[5] = global.monsterinstance[2].alarm[5];
gml_Object_obj_ripoff_papyrus_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; global.mnfight = 2;
22
    }
23
}
24
if (global.mnfight == 1)
25
{
26
    if (talked == 0)
27
    {
28
        alarm[5] = 110;
gml_Object_obj_ripoff_papyrus_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; global.mnfight = 2;
29
        alarm[6] = 1;
gml_Object_obj_ripoff_papyrus_Alarm_6.gml

blcon = instance_create(x + 120, y, obj_blconsm); gg = floor(random(3)); mycommand = round(random(100)); global.msg[0] =
Default
scr_gettext("obj_ripoff_papyrus_243")
; if (talkt == 0) global.msg[0] =
I MUST
CAPTURE
A
HUMAN!
scr_gettext("obj_ripoff_papyrus_244")
; if (talkt == 1) global.msg[0] =
THEN
EVERY
ONE
WILL,
scr_gettext("obj_ripoff_papyrus_245")
; if (talkt == 2) global.msg[0] =
...
scr_gettext("obj_ripoff_papyrus_246")
; if (talkt == 2) talkt = 0; if (talkt == 1) talkt = 2; if (talkt == 0) talkt = 1; global.msg[1] =
Close MessageClose MessageClose Message
scr_gettext("obj_ripoff_papyrus_277")
; global.typer = 22; blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER); if (global.language == "ja") blconwd.writingxend -= 117; global.border = 5; obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8; obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8;
30
        talked = 1;
31
        global.heard = 0;
32
    }
33
}
34
if (control_check_pressed(0))
35
{
36
    if (alarm[5] > 5 && obj_lborder.x == global.idealborder[0] && alarm[6] < 0)
gml_Object_obj_ripoff_papyrus_Alarm_6.gml

blcon = instance_create(x + 120, y, obj_blconsm); gg = floor(random(3)); mycommand = round(random(100)); global.msg[0] =
Default
scr_gettext("obj_ripoff_papyrus_243")
; if (talkt == 0) global.msg[0] =
I MUST
CAPTURE
A
HUMAN!
scr_gettext("obj_ripoff_papyrus_244")
; if (talkt == 1) global.msg[0] =
THEN
EVERY
ONE
WILL,
scr_gettext("obj_ripoff_papyrus_245")
; if (talkt == 2) global.msg[0] =
...
scr_gettext("obj_ripoff_papyrus_246")
; if (talkt == 2) talkt = 0; if (talkt == 1) talkt = 2; if (talkt == 0) talkt = 1; global.msg[1] =
Close MessageClose MessageClose Message
scr_gettext("obj_ripoff_papyrus_277")
; global.typer = 22; blconwd = instance_create(blcon.x + 15, blcon.y + 10, OBJ_NOMSCWRITER); if (global.language == "ja") blconwd.writingxend -= 117; global.border = 5; obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8; obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8;
37
        alarm[5] = 2;
gml_Object_obj_ripoff_papyrus_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; global.mnfight = 2;
38
}
39
if (global.hurtanim[myself] == 1)
40
{
41
    shudder = 8;
42
    alarm[3] = global.damagetimer;
gml_Object_obj_ripoff_papyrus_Alarm_3.gml

if (mypart1.pause != 1) { dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y + 10, obj_dmgwriter); global.damage = takedamage; with (dmgwriter) dmg = global.damage; mypart1.pause = 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;
43
    global.hurtanim[myself] = 3;
44
}
45
if (global.hurtanim[myself] == 2)
46
{
47
    with (dmgwriter)
48
alarm[2]
49
    if (global.monsterhp[myself] >= 1)
50
    {
51
        global.hurtanim[myself] = 0;
52
        mypart1.pause = 0;
53
        global.myfight = 0;
54
        global.mnfight = 1;
55
    }
56
    else
57
    {
58
        global.myfight = 0;
59
        global.mnfight = 1;
60
        killed = 1;
61
        instance_destroy();
62
    }
63
}
64
if (global.hurtanim[myself] == 5)
65
{
66
    global.damage = 0;
67
    instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
68
    with (obj_dmgwriter)
69
alarm[2]
70
    global.myfight = 0;
71
    global.mnfight = 1;
72
    global.hurtanim[myself] = 0;
73
}
74
if (global.mnfight == 2)
75
{
76
    if (attacked == 0)
77
    {
78
        pop = scr_monstersum
scr_monstersum

return global.monster[0] + global.monster[1] + global.monster[2];
();
79
        global.turntimer = 150;
80
        global.firingrate = 10;
81
        if (pop == 3)
82
            global.firingrate = global.firingrate * 2.5;
83
        if (pop == 2)
84
            global.firingrate = global.firingrate * 1.8;
85
        if (turns == 0)
86
        {
87
            obj_heart.movement = 2;
88
            obj_heart.vspeed = -1;
89
            obj_heart.jumpstage = 2;
90
            global.turntimer = 240;
91
            global.border = 5;
92
            gen = instance_create(global.idealborder[0] - 40, global.idealborder[3] - 30, blt_sizebone);
93
            gen.hspeed = 4;
94
            gen = instance_create(global.idealborder[0] - 40, global.idealborder[3] - 80, blt_topbone);
95
            gen.hspeed = 4;
96
            gen = instance_create(global.idealborder[0] - 60, global.idealborder[3] - 30, blt_sizebone);
97
            gen.hspeed = 4;
98
            gen = instance_create(global.idealborder[0] - 60, global.idealborder[3] - 80, blt_topbone);
99
            gen.hspeed = 4;
100
            gen = instance_create(global.idealborder[0] - 170, global.idealborder[3] - 60, blt_sizebone);
101
            gen.hspeed = 4;
102
            gen = instance_create(global.idealborder[0] - 170, global.idealborder[3] - 110, blt_topbone);
103
            gen.hspeed = 4;
104
            gen = instance_create(global.idealborder[0] - 190, global.idealborder[3] - 60, blt_sizebone);
105
            gen.hspeed = 4;
106
            gen = instance_create(global.idealborder[0] - 190, global.idealborder[3] - 110, blt_topbone);
107
            gen.hspeed = 4;
108
            gen = instance_create(global.idealborder[0] - 320, global.idealborder[3] - 90, blt_sizebone);
109
            gen.hspeed = 4;
110
            gen.blue = 1;
111
            gen = instance_create(global.idealborder[1] + 480, global.idealborder[3] - 60, blt_sizebone);
112
            gen.hspeed = -4;
113
            gen = instance_create(global.idealborder[1] + 700, global.idealborder[3] - 30, blt_sizebone);
114
            gen.hspeed = -4;
115
            gen = instance_create(global.idealborder[1] + 700, global.idealborder[3] - 80, blt_topbone);
116
            gen.hspeed = -4;
117
            gen = instance_create(global.idealborder[0] - 700, global.idealborder[3] - 30, blt_sizebone);
118
            gen.hspeed = 4;
119
            gen = instance_create(global.idealborder[0] - 700, global.idealborder[3] - 80, blt_topbone);
120
            gen.hspeed = 4;
121
        }
122
        if (turns > 0)
123
        {
124
            if (mycommand >= 50)
125
            {
126
                obj_heart.movement = 2;
127
                obj_heart.vspeed = -1;
128
                obj_heart.jumpstage = 2;
129
                global.turntimer = 220;
130
                global.border = 5;
131
                gen = instance_create(global.idealborder[1] + 60, global.idealborder[3] - 80, blt_sizebone);
132
                gen.hspeed = -5;
133
                gen.blue = 1;
134
                gen = instance_create(global.idealborder[1] + 140, global.idealborder[3] - 20, blt_sizebone);
135
                gen.hspeed = -5;
136
                gen.blue = 0;
137
                gen = instance_create(global.idealborder[1] + 220, global.idealborder[3] - 80, blt_sizebone);
138
                gen.hspeed = -5;
139
                gen.blue = 1;
140
                gen = instance_create(global.idealborder[1] + 300, global.idealborder[3] - 20, blt_sizebone);
141
                gen.hspeed = -5;
142
                gen.blue = 0;
143
                gen = instance_create(global.idealborder[1] + 380, global.idealborder[3] - 80, blt_sizebone);
144
                gen.hspeed = -5;
145
                gen.blue = 1;
146
                gen = instance_create(global.idealborder[1] + 460, global.idealborder[3] - 20, blt_sizebone);
147
                gen.hspeed = -5;
148
                gen.blue = 0;
149
                gen = instance_create(global.idealborder[1] + 540, global.idealborder[3] - 80, blt_sizebone);
150
                gen.hspeed = -5;
151
                gen.blue = 1;
152
                gen = instance_create(global.idealborder[1] + 620, global.idealborder[3] - 20, blt_sizebone);
153
                gen.hspeed = -5;
154
                gen.blue = 0;
155
                gen = instance_create(global.idealborder[1] + 1250, global.idealborder[3] - 80, blt_sizebone);
156
                gen.hspeed = -7.5;
157
                gen.blue = 1;
158
                gen = instance_create(global.idealborder[1] + 1330, global.idealborder[3] - 20, blt_sizebone);
159
                gen.hspeed = -7.5;
160
                gen.blue = 0;
161
            }
162
            else
163
            {
164
                obj_heart.movement = 2;
165
                obj_heart.vspeed = -1;
166
                obj_heart.jumpstage = 2;
167
                global.turntimer = 150;
168
                global.border = 5;
169
                gen = instance_create(global.idealborder[0] - 10, global.idealborder[3] - 20, blt_sizebone);
170
                gen.hspeed = 2;
171
                gen = instance_create(global.idealborder[0] - 110, global.idealborder[3] - 20, blt_sizebone);
172
                gen.hspeed = 2;
173
                gen = instance_create(global.idealborder[0] - 210, global.idealborder[3] - 20, blt_sizebone);
174
                gen.hspeed = 2;
175
                gen = instance_create(global.idealborder[0] - 310, global.idealborder[3] - 20, blt_sizebone);
176
                gen.hspeed = 2;
177
                gen = instance_create(global.idealborder[1] + 10, global.idealborder[3] - 20, blt_sizebone);
178
                gen.hspeed = -2;
179
                gen = instance_create(global.idealborder[1] + 110, global.idealborder[3] - 20, blt_sizebone);
180
                gen.hspeed = -2;
181
                gen = instance_create(global.idealborder[1] + 210, global.idealborder[3] - 20, blt_sizebone);
182
                gen.hspeed = -2;
183
                gen = instance_create(global.idealborder[1] + 310, global.idealborder[3] - 20, blt_sizebone);
184
                gen.hspeed = -2;
185
                blt_sizebone.speed = 4;
186
                global.turntimer = 150;
187
            }
188
        }
189
        turns = 1;
190
        global.msg[0] = 
* The Lost Souls stand there.
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_ripoff_papyrus_570")
;
191
        attacked = 1;
192
    }
193
    if (mercymod == 999999)
194
    {
195
        global.turntimer = -1;
196
        global.mnfight = 3;
197
    }
198
    whatiheard = -1;
199
}
200
if (global.myfight == 2)
201
{
202
    if (whatiheard != -1)
203
    {
204
        if (global.heard == 0)
205
        {
206
            if (whatiheard == 0)
207
            {
208
                global.msc = 0;
209
                with (obj_monsterparent)
210
                    totalmercy += 1;
211
                mercyno += 1;
212
                global.msg[0] = 
* You told the Lost Soul a bad
pun about skeletons.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_ripoff_papyrus_607")
;
213
                global.msg[1] = 
* He seems to hate it...Delay 11
* But the other Lost Soul
seems to like it.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_ripoff_papyrus_608")
;
214
                if (totalmercy >= 4)
215
                {
216
                    global.msg[1] = 
* Something about that bad
joke...Delay 11
* It's all flooding back!Wait for inputClose MessageClose Message
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_ripoff_papyrus_611")
;
217
                    saved = 1;
218
                    global.mnfight = 5;
219
                    if (obj_ripoff_sans.mercyno == 0)
220
                    {
221
                        global.msg[1] = 
* Suddenly,Delay 11 its memories are
flooding back!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_ripoff_papyrus_617")
;
222
                        global.msg[2] = 
* Seeing how nicely you treated
its brother,Delay 11 the other Lost
Soul remembers,Delay 11 too!Wait for inputClose MessageClose Message
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_ripoff_papyrus_618")
;
223
                    }
224
                }
225
                OBJ_WRITER.halt = 3;
226
                iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
227
                with (iii)
228
                    halt = 0;
229
                whatiheard = 9;
230
            }
231
            if (whatiheard == 3)
232
            {
233
                global.msc = 0;
234
                with (obj_monsterparent)
235
                    totalmercy += 1;
236
                mercyno += 1;
237
                global.msg[0] = 
* You asked the Lost Soul for
help with a puzzle.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_ripoff_papyrus_632")
;
238
                global.msg[1] = 
* He doesn't know why,Delay 11 but he
really wants to help you.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_ripoff_papyrus_633")
;
239
                if (totalmercy >= 4)
240
                {
241
                    global.msg[1] = 
* Suddenly,Delay 11 the memories are
flooding back!Wait for inputClose MessageClose Message
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_ripoff_papyrus_636")
;
242
                    saved = 1;
243
                    global.mnfight = 5;
244
                    if (obj_ripoff_sans.mercyno == 0)
245
                    {
246
                        global.msg[1] = 
* Suddenly,Delay 11 its memories are
flooding back!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_ripoff_papyrus_642")
;
247
                        global.msg[2] = 
* Seeing how nicely you treated
its brother,Delay 11 the other Lost
Soul remembers,Delay 11 too!Wait for inputClose MessageClose Message
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_ripoff_papyrus_643")
;
248
                    }
249
                }
250
                OBJ_WRITER.halt = 3;
251
                iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
252
                with (iii)
253
                    halt = 0;
254
            }
255
            if (whatiheard == 1)
256
            {
257
                global.msc = 0;
258
                with (obj_monsterparent)
259
                    totalmercy += 1;
260
                mercyno += 1;
261
                global.msg[0] = 
* You asked the Lost Soul to
cook something for you.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_ripoff_papyrus_657")
;
262
                global.msg[1] = 
* The Lost Soul is trying to
hide its joy...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_ripoff_papyrus_658")
;
263
                if (totalmercy >= 4)
264
                {
265
                    global.msg[1] = 
* Suddenly,Delay 11 the memories are
flooding back!Wait for inputClose MessageClose Message
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_ripoff_papyrus_661")
;
266
                    saved = 1;
267
                    global.mnfight = 5;
268
                    if (obj_ripoff_sans.mercyno == 0)
269
                    {
270
                        global.msg[1] = 
* Suddenly,Delay 11 its memories are
flooding back!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_ripoff_papyrus_667")
;
271
                        global.msg[2] = 
* Seeing how nicely you treated
its brother,Delay 11 the other Lost
Soul remembers,Delay 11 too!Wait for inputClose MessageClose Message
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_ripoff_papyrus_668")
;
272
                    }
273
                }
274
                OBJ_WRITER.halt = 3;
275
                iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
276
                with (iii)
277
                    halt = 0;
278
            }
279
            if (whatiheard == 4)
280
            {
281
                global.msc = 0;
282
                with (obj_monsterparent)
283
                    totalmercy += 1;
284
                mercyno += 1;
285
                global.msg[0] = 
* You insulted the Lost Soul.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_ripoff_papyrus_682")
;
286
                global.msg[1] = 
* Somehow,Delay 11 it seems flattered
by this.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_ripoff_papyrus_683")
;
287
                if (totalmercy >= 4)
288
                {
289
                    global.msg[1] = 
* Somehow,Delay 11 it's flattered by
this...Delay 11 memories
are flooding back!Wait for inputClose MessageClose Message
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_ripoff_papyrus_686")
;
290
                    saved = 1;
291
                    global.mnfight = 5;
292
                    if (obj_ripoff_sans.mercyno == 0)
293
                    {
294
                        global.msg[1] = 
* Suddenly,Delay 11 its memories are
flooding back!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_ripoff_papyrus_692")
;
295
                        global.msg[2] = 
* Seeing how nicely you treated
its brother,Delay 11 the other Lost
Soul remembers,Delay 11 too!Wait for inputClose MessageClose Message
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_ripoff_papyrus_693")
;
296
                    }
297
                }
298
                OBJ_WRITER.halt = 3;
299
                iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
300
                with (iii)
301
                    halt = 0;
302
            }
303
            global.heard = 1;
304
        }
305
    }
306
}
307
if (global.myfight == 4)
308
{
309
    if (global.mercyuse == 0)
310
    {
311
        script_execute(scr_mercystandard);
312
        if (mercy < 0)
313
            instance_destroy();
314
    }
315
}
316
if (mercymod == 222 && instance_exists(OBJ_WRITER) == 0)
317
{
318
    script_execute(scr_mercystandard);
319
    if (mercy < 0)
320
        instance_destroy();
321
}
322
if (global.turntimer <= 2 && global.mnfight == 2)
323
{
324
    obj_heart.vspeed = 0;
325
    obj_heart.jumpstage = 0;
326
    global.turntimer = -1;
327
    obj_heart.movement = 0;
328
    obj_heart.gravity = 0;
329
    obj_heart.vspeed = 0;
330
    global.mnfight = 3;
331
}
332
if (global.mnfight == 5 && instance_exists(OBJ_WRITER) == 0)
333
{
334
    if (saved == 1)
335
    {
336
        if (global.hp < global.maxhp)
337
        {
338
            global.hp = global.maxhp;
339
            snd_play(snd_heal_c);
340
        }
341
        with (obj_strangetangle)
342
            instance_destroy();
343
        instance_create(0, 0, obj_flasher);
344
        snd_play(snd_break2);
345
        part1.face = 0;
346
        with (obj_ripoff_sans)
347
            mypart1.face = 0;
348
        saved = 2;
349
        alarm[11] = 3;
350
    }
351
    if (saved == 3)
352
    {
353
        global.faceemotion = 9;
354
        global.msc = 0;
355
        global.typer = 22;
356
        global.msg[0] = 
NO! WAIT!!Delay 11
YOU'RE MY FRIEND!Delay 11
I COULD NEVER
CAPTURE YOU!!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_ripoff_papyrus_767")
;
357
        scr_blcon_x
scr_blcon_x

scr_blcon(argument0, argument1, 0);
(200, 20);
358
        with (obj_ripoff_sans)
359
        {
360
            global.msc = 0;
361
            global.typer = 80;
362
            global.msg[0] = 
nah,Delay 11 i'm rootin for
ya,Delay 11 kid.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_ripoff_papyrus_774")
;
363
            if (global.language == "ja")
364
            {
365
                scr_blcon_x
scr_blcon_x

scr_blcon(argument0, argument1, 0);
(340, 140);
366
                blcon.sprite_index = spr_blconsm2;
367
            }
368
            else
369
            {
370
                scr_blcon_x
scr_blcon_x

scr_blcon(argument0, argument1, 0);
(200, 140);
371
                blcon.sprite_index = spr_blconwdshrt_l;
372
            }
373
        }
374
        saved = 4;
375
    }
376
}
377
if (saved == 4 && writer.halt != 0 && obj_ripoff_sans.writer.halt != 0 && control_check_pressed(0))
378
{
379
    with (writer)
380
        instance_destroy();
381
    with (obj_ripoff_sans.writer)
382
        instance_destroy();
383
    instance_create(-10, -10, obj_screenwhiter);
384
    saved = 5;
385
    instance_create(0, 0, obj_screenwhiter);
386
    alarm[11] = 34;
387
}
388
if (saved == 6)
389
{
390
    global.battlegroup = 256;
391
    global.flag[507 saved_papyrus_sans] = 1;
392
    room_restart();
393
}