Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_quote_battle_martlet_genocide_final_2_intro_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
text_effect = "twitchy"
4
attack = false
5
scene = 0
6
cutscene_timer = 0
7
skippable = true
8
message_adv = false
9
fade_out_gui = true
10
message[0] = "What do you think#you're doing?"
11
message[1] = "Searching for a#reason to hate me?"
12
message[2] = "Strange..."
13
message[3] = "You didn't need a#reason when killing#the others..."
14
message[4] = "Heh."
15
message[5] = "I bet you feel r-real#accomplished right#now."
16
message[6] = "But the only thing#you managed to#accomplish..."
17
message[7] = "...is pissing me#off even more."
18
message[8] = "There's only one#way this ends."
19
message[9] = "And right now, I#feel invigorated."
20
message[10] = "Good luck."
21
message_end = 10
22
message_current = 0
23
message_draw = ""
24
draw_enabled = false
25
increase = global.text_speed
26
characters = 0
27
hold = 0
28
message_length = string_length(message[message_current])
29
script_execute(gml_Script_scr_generate_text_counters)
30
circle_text_angle = global.circle_text_angle_default
31
circle_text_angle_direction = 1
32
if (global.hotland_flag[9] > 2)
33
{
34
    scene = 8
35
    instance_destroy(obj_martlet_final_body_intro)
36
    draw_enabled = false
37
    scr_battle_box_resize_midfight
scr_battle_box_resize_midfight

function scr_battle_box_resize_midfight() //gml_Script_scr_battle_box_resize_midfight { if instance_exists(obj_dialogue_box_battle_transformation_any) { with (obj_dialogue_box_battle_transformation_any) { battle_box_resize_midfight = true battle_box_target_xscale = argument[0] / sprite_get_width(sprite_index) battle_box_target_yscale = argument[1] / sprite_get_height(sprite_index) if (argument_count > 2) { battle_box_target_x = argument[2] battle_box_target_y = argument[3] } if (abs(image_xscale - battle_box_target_xscale) < 0.01 && abs(image_yscale - battle_box_target_yscale) < 0.01 && abs(x - battle_box_target_x) < 0.1 && abs(y - battle_box_target_y) < 0.1) { var box = obj_dialogue_box_battle_transformation_any global.attack_surface_width = box.sprite_width - 8 global.attack_surface_height = box.sprite_height - 8 global.attack_surface_x = box.x - global.attack_surface_width * 0.5 global.attack_surface_y = box.y - global.attack_surface_height * 0.5 if surface_exists(global.attack_surface) global.attack_surface = surface_create(global.attack_surface_width, global.attack_surface_height) return true; } } } else return false; }
(82, 160, 320, 300)
38
    global.battle_music = audio_play_sound(mus_retribution, 1, 1)
39
}
40
global.hotland_flag[9] = 3