Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_tellyvis_remote_generator_Step_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
switch (scene)
4
{
5
    case 0:
6
        with (obj_tellyvis_body_a)
7
        {
8
            if (image_index >= (image_number - 1))
9
            {
10
                image_speed = 0;
11
                sprite_index = spr_tellyvis_remote_2;
12
                image_index = image_number - 1;
13
                other.scene++;
14
                other.timer = 15;
15
            }
16
        }
17
        break;
18
    case 1:
19
        if (timer > 0)
20
        {
21
            timer--;
22
            exit;
23
        }
24
        obj_tellyvis_body_a.image_index = 0;
25
        scene++;
26
        break;
27
    case 2:
28
        other.attack_counter_current = -1;
29
        if (attack_counter_max <= 0)
30
        {
31
            attack_remote_destroy = true;
32
            instance_destroy();
33
            exit;
34
        }
35
        with (obj_tellyvis_body_a)
36
        {
37
            if (image_speed != 1)
38
            {
39
                sprite_index = spr_tellyvis_remote_2;
40
                image_index = 0;
41
                image_speed = 1;
42
            }
43
            if (image_index >= (image_number - 1))
44
            {
45
                show_debug_message("Crispy Slash");
46
                if (!instance_exists(obj_quote_battle_tellyvis_a_mid_attack))
47
                {
48
                    instance_create_depth(0, 0, -9999, obj_quote_battle_tellyvis_a_mid_attack);
49
                }
50
                else
51
                {
52
                    with (obj_quote_battle_tellyvis_a_mid_attack)
53
                    {
54
                        message_number += 1;
55
                        event_user(0);
56
                    }
57
                }
58
                sprite_index = spr_tellyvis_remote_1;
59
                image_index = image_number - 1;
60
                image_speed = 0;
61
                other.scene++;
62
                global.timer_attacks_counter = 0;
63
                other.random_attack_current_last = other.random_attack_current;
64
                other.random_attack_current = "nothing";
65
            }
66
        }
67
        break;
68
    case 3:
69
        event_user(0);
70
        break;
71
}