Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_wild_revolver_battle_outline_Other_10

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
time_elapsed = 0;
4
target_current += 1;
5
can_rotate = false;
6
no_loop_rotate = false;
7
var _target_max = target_max;
8
if (instance_exists(obj_wild_revolver_circle_multi))
9
    _target_max -= (obj_wild_revolver_circle_multi.circle_count - 1);
10
if (target_current < _target_max)
11
{
12
    var target_circle;
13
    if (instance_exists(obj_wild_revolver_circle_multi))
14
    {
15
        if (!instance_exists(obj_wild_revolver_circle_multi_pre))
16
        {
17
            target_circle = instance_create(319, 319 - target_radius, obj_wild_revolver_circle_multi_pre);
18
            multishot_id = target_circle;
19
            target_circle.circle_count = obj_wild_revolver_circle_multi.circle_count;
20
            with (target_circle)
21
                event_user(1);
22
        }
23
        else
24
        {
25
            exit;
26
        }
27
    }
28
    else
29
    {
30
        target_circle = instance_create(319, 319 - target_radius, obj_wild_revolver_circle_pre);
31
    }
32
    with (target_circle)
33
    {
34
    }
35
}
36
else if (instance_exists(obj_target_bar_battle))
37
{
38
    with (obj_target_bar_battle)
39
        can_execute = true;
40
    multishot_id = 2856;
41
}