Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_start_enemy_attacking_martlet_pacifist

(view raw script w/o annotations or w/e)
1
function scr_start_enemy_attacking_martlet_pacifist
scr_start_enemy_attacking_martlet_pacifist

function scr_start_enemy_attacking_martlet_pacifist() { instance_create(319, 320, obj_dialogue_box_battle_transformation_any); instance_create(380, 74, obj_quote_bubble_battle_yellow_3); var enemy_mode = global.enemy_mode; switch (enemy_mode) { case 2: instance_create(0, 0, obj_quote_battle_martlet_pacifist_hit); break; case 3: instance_create(0, 0, obj_quote_battle_martlet_pacifist_attack); break; case 4: instance_create(0, 0, obj_quote_battle_martlet_pacifist_pacifist); break; case 5: instance_create(0, 0, obj_quote_battle_martlet_pacifist_true_pacifist); break; case 6: instance_create(0, 0, obj_quote_battle_martlet_pacifist_insult_1); break; case 7: instance_create(0, 0, obj_quote_battle_martlet_pacifist_insult_2); break; } instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + ((obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2)), round(obj_dialogue_box_battle_transformation_any.bbox_top + ((obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2)), obj_heart_battle_fighting_red); }
()
2
{
3
    instance_create(319, 320, obj_dialogue_box_battle_transformation_any);
4
    instance_create(380, 74, obj_quote_bubble_battle_yellow_3);
5
    var enemy_mode = global.enemy_mode;
6
    switch (enemy_mode)
7
    {
8
        case 2:
9
            instance_create(0, 0, obj_quote_battle_martlet_pacifist_hit);
10
            break;
11
        case 3:
12
            instance_create(0, 0, obj_quote_battle_martlet_pacifist_attack);
13
            break;
14
        case 4:
15
            instance_create(0, 0, obj_quote_battle_martlet_pacifist_pacifist);
16
            break;
17
        case 5:
18
            instance_create(0, 0, obj_quote_battle_martlet_pacifist_true_pacifist);
19
            break;
20
        case 6:
21
            instance_create(0, 0, obj_quote_battle_martlet_pacifist_insult_1);
22
            break;
23
        case 7:
24
            instance_create(0, 0, obj_quote_battle_martlet_pacifist_insult_2);
25
            break;
26
    }
27
    instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + ((obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2)), round(obj_dialogue_box_battle_transformation_any.bbox_top + ((obj_dialogue_box_battle_transformation_any.bbox_bottom - obj_dialogue_box_battle_transformation_any.bbox_top) / 2)), obj_heart_battle_fighting_red);
28
}