Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_generate_battle_energy_balls

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

function scr_generate_battle_energy_balls() //gml_Script_scr_generate_battle_energy_balls { global.battle_enemy_name_1 = "energy balls minifight" 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 = 9999 global.max_hp_enemy = 9999 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 = 10 global.enemy_defense_stat = 0 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 = 500 global.enemy_gold = 10 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_1_color = 16777215 global.action_2_color = 16777215 global.action_amount = 0 global.item_use = "Nothing" global.item_used = "Nothing" global.item_gift = "Nothing" global.item_gifted = "Nothing" global.image_alpha_enemy_attacking = 1 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 audio_extend = false global.sound_carry_battle = false global.mettaton_voice_count = 1 global.enemy_target_x = 0 global.enemy_target_y = 0 global.last_text_move_select = -1 instance_create(275, 400, obj_battle_hp_current_self) instance_create(275, 400, obj_battle_hp_max_self) instance_create(275, 400, obj_battle_hp_cover_self) instance_create(244, 405, obj_text_hp) instance_create(0, 0, obj_text_hp_stat) instance_create(0, 0, obj_background_enemy_battle_steamworks_yellow) instance_create(319, 320, obj_dialogue_box_battle) global.soul_mode = "Red" with (obj_heart_battle_fighting_parent) moveable = false global.boss_mini = false global.enemy_attack = "Energy Balls" global.image_alpha_enemy_attacking_immunity = true global.battle_phase = 1 }
() //gml_Script_scr_generate_battle_energy_balls
2
{
3
    global.battle_enemy_name_1 = "energy balls minifight"
4
    global.battle_menu_number = 1
5
    global.speed_self = 4
6
    global.invulnerability_self = global.player_invulnerability
7
    global.attacking_damage_cap = -1
8
    global.hit_self = false
9
    global.hurt_self = false
10
    global.current_hp_enemy = 9999
11
    global.max_hp_enemy = 9999
12
    global.last_hp_enemy = global.current_hp_enemy
13
    global.current_hp_enemy_draw = global.current_hp_enemy
14
    global.enemy_low_hp = false
15
    global.enemy_hit = false
16
    global.enemy_hurt = false
17
    global.enemy_attack_stat = 10
18
    global.enemy_defense_stat = 0
19
    global.enemy_vulnerable = true
20
    global.enemy_attacking = true
21
    global.enemy_sparing = false
22
    global.enemy_dead = false
23
    global.enemy_spared = false
24
    global.enemy_betrayed = false
25
    global.enemy_fleeable = false
26
    global.enemy_special_text = 0
27
    global.enemy_exp = 500
28
    global.enemy_gold = 10
29
    global.enemy_count = 1
30
    global.turns_passed = 0
31
    global.last_action_selected = "Nothing"
32
    global.action_1_important = false
33
    global.action_2_important = false
34
    global.action_1_color = 16777215
35
    global.action_2_color = 16777215
36
    global.action_amount = 0
37
    global.item_use = "Nothing"
38
    global.item_used = "Nothing"
39
    global.item_gift = "Nothing"
40
    global.item_gifted = "Nothing"
41
    global.image_alpha_enemy_attacking = 1
42
    global.important_cutscene = false
43
    global.can_attack = true
44
    global.action_1_selected_count = 0
45
    global.action_2_selected_count = 0
46
    global.spare_selected_count = 0
47
    global.hit_count = 0
48
    global.miss_count = 0
49
    global.no_hit_count = 0
50
    global.hurt_self_count = 0
51
    global.hurt_self_turn_count = 0
52
    global.item_use_count = 0
53
    global.item_gift_count = 0
54
    audio_extend = false
55
    global.sound_carry_battle = false
56
    global.mettaton_voice_count = 1
57
    global.enemy_target_x = 0
58
    global.enemy_target_y = 0
59
    global.last_text_move_select = -1
60
    instance_create(275, 400, obj_battle_hp_current_self)
61
    instance_create(275, 400, obj_battle_hp_max_self)
62
    instance_create(275, 400, obj_battle_hp_cover_self)
63
    instance_create(244, 405, obj_text_hp)
64
    instance_create(0, 0, obj_text_hp_stat)
65
    instance_create(0, 0, obj_background_enemy_battle_steamworks_yellow)
66
    instance_create(319, 320, obj_dialogue_box_battle)
67
    global.soul_mode = "Red"
68
    with (obj_heart_battle_fighting_parent)
69
        moveable = false
70
    global.boss_mini = false
71
    global.enemy_attack = "Energy Balls"
72
    global.image_alpha_enemy_attacking_immunity = true
73
    global.battle_phase = 1
74
}