Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_recreate_heart_battle_menu_text_insomnitot_solo

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

function scr_recreate_heart_battle_menu_text_insomnitot_solo() //gml_Script_scr_recreate_heart_battle_menu_text_insomnitot_solo { var last_text_move_select = global.last_text_move_select var action_3_selected_count = global.action_3_selected_count 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, 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_sparing == true) { 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_sparing) text_deadlock_contents_1 = 3030 } else if (random_number == 2) { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_sparing_v2) text_deadlock_contents_1 = 3031 } text_deadlock_1 = true } else if (action_3_selected_count >= 1 && heart_position == "2122") { instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_action_3) text_deadlock_contents_1 = 3008 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_insomnitot_solo
2
{
3
    var last_text_move_select = global.last_text_move_select
4
    var action_3_selected_count = global.action_3_selected_count
5
    var heart_position = script_execute(gml_Script_scr_return_heart_battle_menu_position)
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 (global.enemy_sparing == true)
30
    {
31
        random_number = irandom_range(1, 2)
32
        if (random_number == 1)
33
        {
34
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_sparing)
35
            text_deadlock_contents_1 = 3030
36
        }
37
        else if (random_number == 2)
38
        {
39
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_sparing_v2)
40
            text_deadlock_contents_1 = 3031
41
        }
42
        text_deadlock_1 = true
43
    }
44
    else if (action_3_selected_count >= 1 && heart_position == "2122")
45
    {
46
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_action_3)
47
        text_deadlock_contents_1 = 3008
48
        text_deadlock_1 = true
49
    }
50
    else
51
    {
52
        var random_text_move_select = irandom_range(1, 4)
53
        if (random_text_move_select == 1)
54
        {
55
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_1)
56
            text_deadlock_contents_1 = 3020
57
            text_deadlock_1 = true
58
        }
59
        else if (random_text_move_select == 2)
60
        {
61
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_2)
62
            text_deadlock_contents_1 = 3021
63
            text_deadlock_1 = true
64
        }
65
        else if (random_text_move_select == 3)
66
        {
67
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_3)
68
            text_deadlock_contents_1 = 3022
69
            text_deadlock_1 = true
70
        }
71
        else if (random_text_move_select == 4)
72
        {
73
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_4)
74
            text_deadlock_contents_1 = 3023
75
            text_deadlock_1 = true
76
        }
77
    }
78
}