Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_recreate_heart_battle_menu_text_micro_froggit

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

function scr_recreate_heart_battle_menu_text_micro_froggit() //gml_Script_scr_recreate_heart_battle_menu_text_micro_froggit { 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 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_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.battle_menu_number == 1 && global.fight_number == 1 && global.enemy_hurt == 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 if (action_2_selected_count >= 1 && 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, 6) 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_micro_froggit
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
    var action_3_selected_count = global.action_3_selected_count
7
    var heart_position = script_execute(gml_Script_scr_return_heart_battle_menu_position)
8
    if (text_deadlock_1 == true)
9
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), text_deadlock_contents_1)
10
    else if (last_text_move_select == 0)
11
    {
12
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_intro)
13
        text_deadlock_contents_1 = 3004
14
        text_deadlock_1 = true
15
    }
16
    else if (global.enemy_sparing == true)
17
    {
18
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_sparing)
19
        text_deadlock_contents_1 = 3030
20
        text_deadlock_1 = true
21
    }
22
    else if (global.battle_menu_number == 1 && global.fight_number == 1 && global.enemy_hurt == true)
23
    {
24
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_special)
25
        text_deadlock_contents_1 = 3009
26
        text_deadlock_1 = true
27
    }
28
    else if (action_2_selected_count >= 1 && heart_position == "2112")
29
    {
30
        instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_action_2)
31
        text_deadlock_contents_1 = 3007
32
        text_deadlock_1 = true
33
    }
34
    else
35
    {
36
        var random_text_move_select = irandom_range(1, 6)
37
        if (random_text_move_select == 1)
38
        {
39
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_1)
40
            text_deadlock_contents_1 = 3020
41
            text_deadlock_1 = true
42
        }
43
        else if (random_text_move_select == 2)
44
        {
45
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_2)
46
            text_deadlock_contents_1 = 3021
47
            text_deadlock_1 = true
48
        }
49
        else if (random_text_move_select == 3)
50
        {
51
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_3)
52
            text_deadlock_contents_1 = 3022
53
            text_deadlock_1 = true
54
        }
55
        else if (random_text_move_select == 4)
56
        {
57
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_4)
58
            text_deadlock_contents_1 = 3023
59
            text_deadlock_1 = true
60
        }
61
        else if (random_text_move_select == 5)
62
        {
63
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_5)
64
            text_deadlock_contents_1 = 3024
65
            text_deadlock_1 = true
66
        }
67
        else if (random_text_move_select == 6)
68
        {
69
            instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_6)
70
            text_deadlock_contents_1 = 3025
71
            text_deadlock_1 = true
72
        }
73
    }
74
}