Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_generate_battle_flowey_phase_2

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

function scr_generate_battle_flowey_phase_2() { if (live_call()) return global.live_result; global.battle_enemy_name_1 = "flowey2"; global.battle_menu_number = 1; global.speed_self = 4; global.invulnerability_self = global.player_invulnerability; global.attacking_damage_cap = -1; global.hit_self = false; global.hurt_self = false; global.current_hp_enemy = 1000; global.max_hp_enemy = 1000; global.current_hp_self = 100; global.max_hp_self = 100; global.last_hp_enemy = global.current_hp_enemy; global.current_hp_enemy_draw = global.current_hp_enemy; global.enemy_low_hp = false; global.enemy_hit = false; global.enemy_hurt = false; global.enemy_attack_stat = 2; global.enemy_defense_stat = 99; global.enemy_vulnerable = true; global.enemy_attacking = true; global.enemy_sparing = false; global.enemy_dead = false; global.enemy_spared = false; global.enemy_betrayed = false; global.enemy_fleeable = false; global.enemy_special_text = 0; global.enemy_exp = 1500; global.enemy_gold = 20; global.enemy_count = 1; global.turns_passed = 0; global.last_action_selected = "Nothing"; global.action_1_important = false; global.action_2_important = false; global.action_3_important = false; global.action_1_color = 16777215; global.action_2_color = 16777215; global.action_3_color = 16777215; global.action_amount = 3; global.item_use = "Nothing"; global.item_used = "Nothing"; global.item_gift = "Nothing"; global.item_gifted = "Nothing"; global.image_alpha_enemy_attacking = 0; global.important_cutscene = false; global.can_attack = true; global.action_1_selected_count = 0; global.action_2_selected_count = 0; global.spare_selected_count = 0; global.hit_count = 0; global.miss_count = 0; global.no_hit_count = 0; global.hurt_self_count = 0; global.hurt_self_turn_count = 0; global.item_use_count = 0; global.item_gift_count = 0; global.attack_cycle = 0; global.attack_cycle_max = 7; global.enemy_mode = 0; global.enemy_mode_previous = 0; audio_extend = false; global.sound_carry_battle = false; global.mettaton_voice_count = 1; global.enemy_target_x = 320; global.enemy_target_y = 60; global.last_text_move_select = -1; global.soul_mode = "Red"; global.boss_mini = false; }
()
2
{
3
    if (live_call())
4
        return global.live_result;
5
    global.battle_enemy_name_1 = "flowey2";
6
    global.battle_menu_number = 1;
7
    global.speed_self = 4;
8
    global.invulnerability_self = global.player_invulnerability;
9
    global.attacking_damage_cap = -1;
10
    global.hit_self = false;
11
    global.hurt_self = false;
12
    global.current_hp_enemy = 1000;
13
    global.max_hp_enemy = 1000;
14
    global.current_hp_self = 100;
15
    global.max_hp_self = 100;
16
    global.last_hp_enemy = global.current_hp_enemy;
17
    global.current_hp_enemy_draw = global.current_hp_enemy;
18
    global.enemy_low_hp = false;
19
    global.enemy_hit = false;
20
    global.enemy_hurt = false;
21
    global.enemy_attack_stat = 2;
22
    global.enemy_defense_stat = 99;
23
    global.enemy_vulnerable = true;
24
    global.enemy_attacking = true;
25
    global.enemy_sparing = false;
26
    global.enemy_dead = false;
27
    global.enemy_spared = false;
28
    global.enemy_betrayed = false;
29
    global.enemy_fleeable = false;
30
    global.enemy_special_text = 0;
31
    global.enemy_exp = 1500;
32
    global.enemy_gold = 20;
33
    global.enemy_count = 1;
34
    global.turns_passed = 0;
35
    global.last_action_selected = "Nothing";
36
    global.action_1_important = false;
37
    global.action_2_important = false;
38
    global.action_3_important = false;
39
    global.action_1_color = 16777215;
40
    global.action_2_color = 16777215;
41
    global.action_3_color = 16777215;
42
    global.action_amount = 3;
43
    global.item_use = "Nothing";
44
    global.item_used = "Nothing";
45
    global.item_gift = "Nothing";
46
    global.item_gifted = "Nothing";
47
    global.image_alpha_enemy_attacking = 0;
48
    global.important_cutscene = false;
49
    global.can_attack = true;
50
    global.action_1_selected_count = 0;
51
    global.action_2_selected_count = 0;
52
    global.spare_selected_count = 0;
53
    global.hit_count = 0;
54
    global.miss_count = 0;
55
    global.no_hit_count = 0;
56
    global.hurt_self_count = 0;
57
    global.hurt_self_turn_count = 0;
58
    global.item_use_count = 0;
59
    global.item_gift_count = 0;
60
    global.attack_cycle = 0;
61
    global.attack_cycle_max = 7;
62
    global.enemy_mode = 0;
63
    global.enemy_mode_previous = 0;
64
    audio_extend = false;
65
    global.sound_carry_battle = false;
66
    global.mettaton_voice_count = 1;
67
    global.enemy_target_x = 320;
68
    global.enemy_target_y = 60;
69
    global.last_text_move_select = -1;
70
    global.soul_mode = "Red";
71
    global.boss_mini = false;
72
}