Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_bigfrog_herofly_Alarm_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
var soul = 2980;
4
scene = 1;
5
x_target = irandom_range(battle_box.bbox_left + 40, battle_box.x - 40);
6
y_target = irandom_range(clamp(soul.y - 15, battle_box.bbox_top + 20, battle_box.bbox_bottom - 20), clamp(soul.y + 15, battle_box.bbox_top + 20, battle_box.bbox_bottom - 20));