Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_toy_gun_battle_circle_Create_0

(view raw script w/o annotations or w/e)
1
var player_weapon = global.player_weapon
2
var player_weapon_modifier = global.player_weapon_modifier
3
switch player_weapon
4
{
5
    case "Toy Gun":
6
        switch player_weapon_modifier
7
        {
8
            case "Pebble Ammo":
9
                sprite_index = spr_toy_gun_battle_circle_pebbles
10
                break
11
            case "Cff Bean Ammo":
12
                sprite_index = spr_toy_gun_battle_circle_coffee
13
                break
14
            case "Glass Ammo":
15
                sprite_index = spr_toy_gun_battle_circle_glass
16
                break
17
            case "Silver Ammo":
18
                sprite_index = spr_toy_gun_battle_circle_silver
19
                break
20
            case "Nails":
21
                sprite_index = spr_toy_gun_battle_circle_nails
22
                break
23
            case "Friendliness Pellets":
24
                sprite_index = spr_toy_gun_battle_circle_pellets
25
                break
26
            case "Ice Pellets":
27
                sprite_index = spr_toy_gun_battle_circle_ice
28
                break
29
            case "Flint":
30
                sprite_index = spr_toy_gun_battle_circle_flint
31
                break
32
        }
33
34
        break
35
}
36
37
image_speed = 0
38
image_index = 0
39
image_alpha = 1
40
image_xscale = 1
41
image_yscale = 1
42
instance_create(319, 320, obj_dialogue_box_battle_transformation_attack)
43
with (obj_dialogue_box_battle_transformation_attack)
44
{
45
    sprite_width_destination = sprite_height
46
    sprite_height_destination = sprite_height
47
    max_frames_default = 10
48
    transform_type = "in"
49
}