Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_recreate_heart_battle_menu_text_dalv

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

function scr_recreate_heart_battle_menu_text_dalv() //gml_Script_scr_recreate_heart_battle_menu_text_dalv { 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_sparing == true) { 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.action_2_important == true) { 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 { var random_text_move_select = irandom_range(1, 4) 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_dalv
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_sparing == true)
14
    {
15
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_sparing)
16
        text_deadlock_contents_1 = 3030
17
        text_deadlock_1 = true
18
    }
19
    else if (global.action_2_important == true)
20
    {
21
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special)
22
        text_deadlock_contents_1 = 3009
23
        text_deadlock_1 = true
24
    }
25
    else
26
    {
27
        var random_text_move_select = irandom_range(1, 4)
28
        if (random_text_move_select == 1)
29
        {
30
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_1)
31
            text_deadlock_contents_1 = 3020
32
            text_deadlock_1 = true
33
        }
34
        else if (random_text_move_select == 2)
35
        {
36
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_2)
37
            text_deadlock_contents_1 = 3021
38
            text_deadlock_1 = true
39
        }
40
        else if (random_text_move_select == 3)
41
        {
42
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_3)
43
            text_deadlock_contents_1 = 3022
44
            text_deadlock_1 = true
45
        }
46
        else if (random_text_move_select == 4)
47
        {
48
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_4)
49
            text_deadlock_contents_1 = 3023
50
            text_deadlock_1 = true
51
        }
52
        else if (random_text_move_select == 5)
53
        {
54
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_5)
55
            text_deadlock_contents_1 = 3024
56
            text_deadlock_1 = true
57
        }
58
        else if (random_text_move_select == 6)
59
        {
60
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_6)
61
            text_deadlock_contents_1 = 3025
62
            text_deadlock_1 = true
63
        }
64
    }
65
}