Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_recreate_heart_battle_menu_text_martlet_pacifist

(view raw script w/o annotations or w/e)
1
function scr_recreate_heart_battle_menu_text_martlet_pacifist
scr_recreate_heart_battle_menu_text_martlet_pacifist

function scr_recreate_heart_battle_menu_text_martlet_pacifist() //gml_Script_scr_recreate_heart_battle_menu_text_martlet_pacifist { var last_text_move_select = global.last_text_move_select var enemy_mode = global.enemy_mode if (text_deadlock_1 == true) instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), text_deadlock_contents_1) else if (last_text_move_select == 0) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_intro) text_deadlock_contents_1 = 3004 text_deadlock_1 = true } else if (global.enemy_mode == 3 && global.turns_passed >= 3) { var random_text_move_select = irandom_range(1, 3) if (random_text_move_select == 1) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special) text_deadlock_contents_1 = 3009 text_deadlock_1 = true } else if (random_text_move_select == 2) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special_v2) text_deadlock_contents_1 = 3010 text_deadlock_1 = true } else if (random_text_move_select == 3) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special_v3) text_deadlock_contents_1 = 3011 text_deadlock_1 = true } } else if (global.enemy_mode == 5 && global.turns_passed >= 3) { random_text_move_select = irandom_range(1, 3) if (random_text_move_select == 1) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special_v4) text_deadlock_contents_1 = 3012 text_deadlock_1 = true } else if (random_text_move_select == 2) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special_v5) text_deadlock_contents_1 = 3014 text_deadlock_1 = true } else if (random_text_move_select == 3) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special_v6) text_deadlock_contents_1 = 3015 text_deadlock_1 = true } } else { random_text_move_select = irandom_range(1, 6) if (random_text_move_select == 1) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_1) text_deadlock_contents_1 = 3020 text_deadlock_1 = true } else if (random_text_move_select == 2) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_2) text_deadlock_contents_1 = 3021 text_deadlock_1 = true } else if (random_text_move_select == 3) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_3) text_deadlock_contents_1 = 3022 text_deadlock_1 = true } else if (random_text_move_select == 4) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_4) text_deadlock_contents_1 = 3023 text_deadlock_1 = true } else if (random_text_move_select == 5) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_5) text_deadlock_contents_1 = 3024 text_deadlock_1 = true } else if (random_text_move_select == 6) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_6) text_deadlock_contents_1 = 3025 text_deadlock_1 = true } } }
() //gml_Script_scr_recreate_heart_battle_menu_text_martlet_pacifist
2
{
3
    var last_text_move_select = global.last_text_move_select
4
    var enemy_mode = global.enemy_mode
5
    if (text_deadlock_1 == true)
6
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), text_deadlock_contents_1)
7
    else if (last_text_move_select == 0)
8
    {
9
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_intro)
10
        text_deadlock_contents_1 = 3004
11
        text_deadlock_1 = true
12
    }
13
    else if (global.enemy_mode == 3 && global.turns_passed >= 3)
14
    {
15
        var random_text_move_select = irandom_range(1, 3)
16
        if (random_text_move_select == 1)
17
        {
18
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special)
19
            text_deadlock_contents_1 = 3009
20
            text_deadlock_1 = true
21
        }
22
        else if (random_text_move_select == 2)
23
        {
24
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special_v2)
25
            text_deadlock_contents_1 = 3010
26
            text_deadlock_1 = true
27
        }
28
        else if (random_text_move_select == 3)
29
        {
30
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special_v3)
31
            text_deadlock_contents_1 = 3011
32
            text_deadlock_1 = true
33
        }
34
    }
35
    else if (global.enemy_mode == 5 && global.turns_passed >= 3)
36
    {
37
        random_text_move_select = irandom_range(1, 3)
38
        if (random_text_move_select == 1)
39
        {
40
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special_v4)
41
            text_deadlock_contents_1 = 3012
42
            text_deadlock_1 = true
43
        }
44
        else if (random_text_move_select == 2)
45
        {
46
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special_v5)
47
            text_deadlock_contents_1 = 3014
48
            text_deadlock_1 = true
49
        }
50
        else if (random_text_move_select == 3)
51
        {
52
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special_v6)
53
            text_deadlock_contents_1 = 3015
54
            text_deadlock_1 = true
55
        }
56
    }
57
    else
58
    {
59
        random_text_move_select = irandom_range(1, 6)
60
        if (random_text_move_select == 1)
61
        {
62
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_1)
63
            text_deadlock_contents_1 = 3020
64
            text_deadlock_1 = true
65
        }
66
        else if (random_text_move_select == 2)
67
        {
68
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_2)
69
            text_deadlock_contents_1 = 3021
70
            text_deadlock_1 = true
71
        }
72
        else if (random_text_move_select == 3)
73
        {
74
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_3)
75
            text_deadlock_contents_1 = 3022
76
            text_deadlock_1 = true
77
        }
78
        else if (random_text_move_select == 4)
79
        {
80
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_4)
81
            text_deadlock_contents_1 = 3023
82
            text_deadlock_1 = true
83
        }
84
        else if (random_text_move_select == 5)
85
        {
86
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_5)
87
            text_deadlock_contents_1 = 3024
88
            text_deadlock_1 = true
89
        }
90
        else if (random_text_move_select == 6)
91
        {
92
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_6)
93
            text_deadlock_contents_1 = 3025
94
            text_deadlock_1 = true
95
        }
96
    }
97
}