Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_wild_revolver_battle_outline_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
with (other)
4
{
5
    var player_weapon = global.player_weapon
6
    var player_weapon_modifier = global.player_weapon_modifier
7
    switch player_weapon
8
    {
9
        case "Wild Revolver":
10
            switch player_weapon_modifier
11
            {
12
                case "Pebble Ammo":
13
                    target_sprite = 1612
14
                    break
15
                case "Cff Bean Ammo":
16
                    target_sprite = 1614
17
                    break
18
                case "Glass Ammo":
19
                    target_sprite = 1615
20
                    break
21
                case "Silver Ammo":
22
                    target_sprite = 2495
23
                    break
24
                case "Nails":
25
                    target_sprite = 1211
26
                    break
27
                case "Friendliness Pellets":
28
                    target_sprite = 3283
29
                    break
30
                case "Ice Pellets":
31
                    target_sprite = 1613
32
                    break
33
                case "Flint":
34
                    target_sprite = 1616
35
                    break
36
                default:
37
                    target_sprite = 1611
38
            }
39
40
            break
41
    }
42
43
    image_speed = 0
44
    image_index = 0
45
    image_alpha = 1
46
    image_xscale = 1
47
    image_yscale = 1
48
    target_radius = 39
49
    target_angle = 0
50
    target_current = 0
51
    target_max = 6
52
    target_shrink_inc = 0.15
53
    multishot_delay = 5
54
    no_loop_delay = true
55
    multishot_id = -4
56
    gun_spin = false
57
    sign_modifier = 1
58
    time_elapsed = 0
59
    time_max = 20
60
    time_increase = 1
61
    max_rise = 360 / target_max
62
    for (i = 0; i < target_max; i++)
63
        tm[i] = time_max - 3 * i
64
    continue_shot = true
65
    instance_create(319, 320, obj_dialogue_box_battle_transformation_attack)
66
    with (obj_dialogue_box_battle_transformation_attack)
67
    {
68
        sprite_width_destination = sprite_height
69
        sprite_height_destination = sprite_height
70
        max_frames_default = 10
71
        transform_type = "in"
72
    }
73
}