Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_recreate_heart_battle_menu_text_frostermit_know_cone_duo

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

function scr_recreate_heart_battle_menu_text_frostermit_know_cone_duo() //gml_Script_scr_recreate_heart_battle_menu_text_frostermit_know_cone_duo { var last_text_move_select = global.last_text_move_select 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.battle_menu_number == 1 && global.enemy_dead == true && global.fight_number == 1) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_dead_2) text_deadlock_contents_1 = 3052 text_deadlock_1 = true } else if (global.battle_menu_number == 1 && global.enemy_dead_2 == true && global.fight_number == 2) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_dead) text_deadlock_contents_1 = 3033 text_deadlock_1 = true } else if (global.enemy_low_hp == true && global.enemy_dead == false && global.enemy_spared == false) { var random_number = irandom_range(1, 2) if (random_number == 1) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_1) text_deadlock_contents_1 = 3016 } else if (random_number == 2) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_1_v2) text_deadlock_contents_1 = 3018 } text_deadlock_1 = true } else if (global.enemy_low_hp_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false) { random_number = irandom_range(1, 2) if (random_number == 1) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_2) text_deadlock_contents_1 = 3036 } else if (random_number == 2) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_2_v2) text_deadlock_contents_1 = 3037 } text_deadlock_1 = true } else if (global.enemy_sparing == true && global.enemy_dead == false && global.enemy_spared == false) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_sparing) text_deadlock_contents_1 = 3030 text_deadlock_1 = true } else if (global.enemy_sparing_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_sparing_2) text_deadlock_contents_1 = 3050 text_deadlock_1 = true } else if (global.enemy_special_text == 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 global.enemy_special_text = 0 } else { random_number = irandom_range(1, 2) if (global.enemy_dead == true || global.enemy_spared == true) random_number = 2 else if (global.enemy_dead_2 == true || global.enemy_spared_2 == true) random_number = 1 if (random_number == 1) { if ((global.enemy_dead_2 + global.enemy_spared_2) < 1) var random_text_move_select = irandom_range(1, 9) else random_text_move_select = irandom_range(1, 5) } else if (random_number == 2) { if ((global.enemy_dead + global.enemy_spared) < 1) random_text_move_select = irandom_range(1, 9) else random_text_move_select = irandom_range(1, 5) } if (random_number == 1) { 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 } ...
() //gml_Script_scr_recreate_heart_battle_menu_text_frostermit_know_cone_duo
2
{
3
    var last_text_move_select = global.last_text_move_select
4
    if (text_deadlock_1 == true)
5
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), text_deadlock_contents_1)
6
    else if (last_text_move_select == 0)
7
    {
8
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_intro)
9
        text_deadlock_contents_1 = 3004
10
        text_deadlock_1 = true
11
    }
12
    else if (global.battle_menu_number == 1 && global.enemy_dead == true && global.fight_number == 1)
13
    {
14
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_dead_2)
15
        text_deadlock_contents_1 = 3052
16
        text_deadlock_1 = true
17
    }
18
    else if (global.battle_menu_number == 1 && global.enemy_dead_2 == true && global.fight_number == 2)
19
    {
20
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_dead)
21
        text_deadlock_contents_1 = 3033
22
        text_deadlock_1 = true
23
    }
24
    else if (global.enemy_low_hp == true && global.enemy_dead == false && global.enemy_spared == false)
25
    {
26
        var random_number = irandom_range(1, 2)
27
        if (random_number == 1)
28
        {
29
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_1)
30
            text_deadlock_contents_1 = 3016
31
        }
32
        else if (random_number == 2)
33
        {
34
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_1_v2)
35
            text_deadlock_contents_1 = 3018
36
        }
37
        text_deadlock_1 = true
38
    }
39
    else if (global.enemy_low_hp_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false)
40
    {
41
        random_number = irandom_range(1, 2)
42
        if (random_number == 1)
43
        {
44
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_2)
45
            text_deadlock_contents_1 = 3036
46
        }
47
        else if (random_number == 2)
48
        {
49
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_2_v2)
50
            text_deadlock_contents_1 = 3037
51
        }
52
        text_deadlock_1 = true
53
    }
54
    else if (global.enemy_sparing == true && global.enemy_dead == false && global.enemy_spared == false)
55
    {
56
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_sparing)
57
        text_deadlock_contents_1 = 3030
58
        text_deadlock_1 = true
59
    }
60
    else if (global.enemy_sparing_2 == true && global.enemy_dead_2 == false && global.enemy_spared_2 == false)
61
    {
62
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_sparing_2)
63
        text_deadlock_contents_1 = 3050
64
        text_deadlock_1 = true
65
    }
66
    else if (global.enemy_special_text == 1)
67
    {
68
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special)
69
        text_deadlock_contents_1 = 3009
70
        text_deadlock_1 = true
71
        global.enemy_special_text = 0
72
    }
73
    else
74
    {
75
        random_number = irandom_range(1, 2)
76
        if (global.enemy_dead == true || global.enemy_spared == true)
77
            random_number = 2
78
        else if (global.enemy_dead_2 == true || global.enemy_spared_2 == true)
79
            random_number = 1
80
        if (random_number == 1)
81
        {
82
            if ((global.enemy_dead_2 + global.enemy_spared_2) < 1)
83
                var random_text_move_select = irandom_range(1, 9)
84
            else
85
                random_text_move_select = irandom_range(1, 5)
86
        }
87
        else if (random_number == 2)
88
        {
89
            if ((global.enemy_dead + global.enemy_spared) < 1)
90
                random_text_move_select = irandom_range(1, 9)
91
            else
92
                random_text_move_select = irandom_range(1, 5)
93
        }
94
        if (random_number == 1)
95
        {
96
            if (random_text_move_select == 1)
97
            {
98
                instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_1)
99
                text_deadlock_contents_1 = 3020
100
                text_deadlock_1 = true
101
            }
102
            else if (random_text_move_select == 2)
103
            {
104
                instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_2)
105
                text_deadlock_contents_1 = 3021
106
                text_deadlock_1 = true
107
            }
108
            else if (random_text_move_select == 3)
109
            {
110
                instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_3)
111
                text_deadlock_contents_1 = 3022
112
                text_deadlock_1 = true
113
            }
114
            else if (random_text_move_select == 4)
115
            {
116
                instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_4)
117
                text_deadlock_contents_1 = 3023
118
                text_deadlock_1 = true
119
            }
120
            else if (random_text_move_select == 5)
121
            {
122
                instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_5)
123
                text_deadlock_contents_1 = 3024
124
                text_deadlock_1 = true
125
            }
126
            else if (random_text_move_select == 6)
127
            {
128
                instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_6)
129
                text_deadlock_contents_1 = 3025
130
                text_deadlock_1 = true
131
            }
132
            else if (random_text_move_select == 7)
133
            {
134
                instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_7)
135
                text_deadlock_contents_1 = 3026
136
                text_deadlock_1 = true
137
            }
138
            else if (random_text_move_select == 8)
139
            {
140
                instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_8)
141
                text_deadlock_contents_1 = 3028
142
                text_deadlock_1 = true
143
            }
144
            else if (random_text_move_select == 9)
145
            {
146
                instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_9)
147
                text_deadlock_contents_1 = 3029
148
                text_deadlock_1 = true
149
            }
150
        }
151
        else if (random_number == 2)
152
        {
153
            if (random_text_move_select == 1)
154
            {
155
                instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_1_v2)
156
                text_deadlock_contents_1 = 3039
157
                text_deadlock_1 = true
158
            }
159
            else if (random_text_move_select == 2)
160
            {
161
                instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_2_v2)
162
                text_deadlock_contents_1 = 3040
163
                text_deadlock_1 = true
164
            }
165
            else if (random_text_move_select == 3)
166
            {
167
                instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_3_v2)
168
                text_deadlock_contents_1 = 3041
169
                text_deadlock_1 = true
170
            }
171
            else if (random_text_move_select == 4)
172
            {
173
                instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_4_v2)
174
                text_deadlock_contents_1 = 3046
175
                text_deadlock_1 = true
176
            }
177
            else if (random_text_move_select == 5)
178
            {
179
                instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_5_v2)
180
                text_deadlock_contents_1 = 3047
181
                text_deadlock_1 = true
182
            }
183
            else if (random_text_move_select == 6)
184
            {
185
                instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_6)
186
                text_deadlock_contents_1 = 3025
187
                text_deadlock_1 = true
188
            }
189
            else if (random_text_move_select == 7)
190
            {
191
                instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_7)
192
                text_deadlock_contents_1 = 3026
193
                text_deadlock_1 = true
194
            }
195
            else if (random_text_move_select == 8)
196
            {
197
                instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_8)
198
                text_deadlock_contents_1 = 3028
199
                text_deadlock_1 = true
200
            }
201
            else if (random_text_move_select == 9)
202
            {
203
                instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_9)
204
                text_deadlock_contents_1 = 3029
205
                text_deadlock_1 = true
206
            }
207
        }
208
    }
209
}