Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_recreate_heart_battle_menu_text_crispy_scroll_solo

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

function scr_recreate_heart_battle_menu_text_crispy_scroll_solo() //gml_Script_scr_recreate_heart_battle_menu_text_crispy_scroll_solo { var last_text_move_select = global.last_text_move_select var action_1_selected_count = global.action_1_selected_count var action_2_selected_count = global.action_2_selected_count 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_low_hp == true) { 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 (action_1_selected_count >= 1) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_action_1) text_deadlock_contents_1 = 3006 text_deadlock_1 = true } else if (action_2_selected_count >= 1) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_action_2) text_deadlock_contents_1 = 3007 text_deadlock_1 = true } else { var random_text_move_select = irandom_range(1, 5) 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 } } }
() //gml_Script_scr_recreate_heart_battle_menu_text_crispy_scroll_solo
2
{
3
    var last_text_move_select = global.last_text_move_select
4
    var action_1_selected_count = global.action_1_selected_count
5
    var action_2_selected_count = global.action_2_selected_count
6
    if (text_deadlock_1 == true)
7
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), text_deadlock_contents_1)
8
    else if (last_text_move_select == 0)
9
    {
10
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_intro)
11
        text_deadlock_contents_1 = 3004
12
        text_deadlock_1 = true
13
    }
14
    else if (global.enemy_low_hp == true)
15
    {
16
        var random_number = irandom_range(1, 2)
17
        if (random_number == 1)
18
        {
19
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_1)
20
            text_deadlock_contents_1 = 3016
21
        }
22
        else if (random_number == 2)
23
        {
24
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_1_v2)
25
            text_deadlock_contents_1 = 3018
26
        }
27
        text_deadlock_1 = true
28
    }
29
    else if (action_1_selected_count >= 1)
30
    {
31
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_action_1)
32
        text_deadlock_contents_1 = 3006
33
        text_deadlock_1 = true
34
    }
35
    else if (action_2_selected_count >= 1)
36
    {
37
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_action_2)
38
        text_deadlock_contents_1 = 3007
39
        text_deadlock_1 = true
40
    }
41
    else
42
    {
43
        var random_text_move_select = irandom_range(1, 5)
44
        if (random_text_move_select == 1)
45
        {
46
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_1)
47
            text_deadlock_contents_1 = 3020
48
            text_deadlock_1 = true
49
        }
50
        else if (random_text_move_select == 2)
51
        {
52
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_2)
53
            text_deadlock_contents_1 = 3021
54
            text_deadlock_1 = true
55
        }
56
        else if (random_text_move_select == 3)
57
        {
58
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_3)
59
            text_deadlock_contents_1 = 3022
60
            text_deadlock_1 = true
61
        }
62
        else if (random_text_move_select == 4)
63
        {
64
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_4)
65
            text_deadlock_contents_1 = 3023
66
            text_deadlock_1 = true
67
        }
68
        else if (random_text_move_select == 5)
69
        {
70
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_5)
71
            text_deadlock_contents_1 = 3024
72
            text_deadlock_1 = true
73
        }
74
    }
75
}