Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_recreate_heart_battle_menu_text_trihecta_together

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

function scr_recreate_heart_battle_menu_text_trihecta_together() //gml_Script_scr_recreate_heart_battle_menu_text_trihecta_together { var last_text_move_select = global.last_text_move_select var heart_position = script_execute(gml_Script_scr_return_heart_battle_menu_position) 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, 3) 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 } else if (random_number == 3) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_1_v3) text_deadlock_contents_1 = 3019 } text_deadlock_1 = true } else if (heart_position == "2121") { 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 (heart_position == "2112") { 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, 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 } } }
() //gml_Script_scr_recreate_heart_battle_menu_text_trihecta_together
2
{
3
    var last_text_move_select = global.last_text_move_select
4
    var heart_position = script_execute(gml_Script_scr_return_heart_battle_menu_position)
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_low_hp == true)
14
    {
15
        var random_number = irandom_range(1, 3)
16
        if (random_number == 1)
17
        {
18
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_1)
19
            text_deadlock_contents_1 = 3016
20
        }
21
        else if (random_number == 2)
22
        {
23
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_1_v2)
24
            text_deadlock_contents_1 = 3018
25
        }
26
        else if (random_number == 3)
27
        {
28
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_1_v3)
29
            text_deadlock_contents_1 = 3019
30
        }
31
        text_deadlock_1 = true
32
    }
33
    else if (heart_position == "2121")
34
    {
35
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_action_1)
36
        text_deadlock_contents_1 = 3006
37
        text_deadlock_1 = true
38
    }
39
    else if (heart_position == "2112")
40
    {
41
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_action_2)
42
        text_deadlock_contents_1 = 3007
43
        text_deadlock_1 = true
44
    }
45
    else
46
    {
47
        var random_text_move_select = irandom_range(1, 4)
48
        if (random_text_move_select == 1)
49
        {
50
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_1)
51
            text_deadlock_contents_1 = 3020
52
            text_deadlock_1 = true
53
        }
54
        else if (random_text_move_select == 2)
55
        {
56
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_2)
57
            text_deadlock_contents_1 = 3021
58
            text_deadlock_1 = true
59
        }
60
        else if (random_text_move_select == 3)
61
        {
62
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_3)
63
            text_deadlock_contents_1 = 3022
64
            text_deadlock_1 = true
65
        }
66
        else if (random_text_move_select == 4)
67
        {
68
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_4)
69
            text_deadlock_contents_1 = 3023
70
            text_deadlock_1 = true
71
        }
72
    }
73
}