Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_recreate_heart_battle_menu_text_sweet_corn_solo

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

function scr_recreate_heart_battle_menu_text_sweet_corn_solo() //gml_Script_scr_recreate_heart_battle_menu_text_sweet_corn_solo { 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.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) { 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.hurt_self == false) { 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, 3) 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 } } }
() //gml_Script_scr_recreate_heart_battle_menu_text_sweet_corn_solo
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.enemy_low_hp == true)
13
    {
14
        var random_number = irandom_range(1, 2)
15
        if (random_number == 1)
16
        {
17
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_1)
18
            text_deadlock_contents_1 = 3016
19
        }
20
        else if (random_number == 2)
21
        {
22
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_low_hp_1_v2)
23
            text_deadlock_contents_1 = 3018
24
        }
25
        text_deadlock_1 = true
26
    }
27
    else if (global.enemy_sparing == true)
28
    {
29
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_sparing)
30
        text_deadlock_contents_1 = 3030
31
        text_deadlock_1 = true
32
    }
33
    else if (global.hurt_self == false)
34
    {
35
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special)
36
        text_deadlock_contents_1 = 3009
37
        text_deadlock_1 = true
38
    }
39
    else
40
    {
41
        var random_text_move_select = irandom_range(1, 3)
42
        if (random_text_move_select == 1)
43
        {
44
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_1)
45
            text_deadlock_contents_1 = 3020
46
            text_deadlock_1 = true
47
        }
48
        else if (random_text_move_select == 2)
49
        {
50
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_2)
51
            text_deadlock_contents_1 = 3021
52
            text_deadlock_1 = true
53
        }
54
        else if (random_text_move_select == 3)
55
        {
56
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_3)
57
            text_deadlock_contents_1 = 3022
58
            text_deadlock_1 = true
59
        }
60
    }
61
}