Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_candy_corn_Create_0

(view raw script w/o annotations or w/e)
1
damage_number = scr_determine_damage_number_enemy
scr_determine_damage_number_enemy

function scr_determine_damage_number_enemy(argument0, argument1, argument2) //gml_Script_scr_determine_damage_number_enemy { var enemy_count = global.enemy_count if (global.battle_enemy_name_1 == argument0) return 1; else if (enemy_count >= 2 && global.battle_enemy_name_2 == argument1) return 2; else if (enemy_count >= 3 && global.battle_enemy_name_3 == argument2) return 3; else return 0; }
("sweet corn a", "sweet corn b", "sweet corn c")
2
image_speed = 0
3
image_index = 0
4
image_alpha = 0
5
if (x > obj_dialogue_box_battle_transformation_any.bbox_right)
6
    image_xscale = -1
7
x_speed = 6
8
if (x > obj_dialogue_box_battle_transformation_any.bbox_right)
9
    x_speed = (-x_speed)
10
starting_position_x = x
11
starting_position_y = y
12
animation_disjoint_x = 0
13
animation_disjoint_y = 0
14
reverse = true
15
can_move = false
16
can_vanish = false
17
var app_sound = audio_play_sound(snd_undertale_appear, 1, 0)
18
audio_sound_gain(app_sound, 0.5, 0)