Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_kristhrown_Collision_obj_sneo_throwtarget

(view raw script w/o annotations or w/e)
1
if (other.collided == 0)
2
{
3
    slash = instance_create(other.x, other.y, obj_slashEffect);
4
    slash.image_angle = image_angle + 45;
5
    slash.depth = other.depth - 1;
6
    slash.image_xscale = 1;
7
    slash.image_yscale = 1;
8
    other.stopmoving = 1;
9
    other.sprite_index = spr_sneo_c_weakpoint_burst;
10
    other.image_index = 0;
11
    other.image_speed = 0.5;
12
    vine = instance_create(x, y, obj_sneo_vine_cut);
13
    vine.x1 = obj_sneo_throwkris_vine_controller.x1[other.vineid];
14
    vine.x2 = obj_sneo_throwkris_vine_controller.x2[other.vineid];
15
    vine.y1 = obj_sneo_throwkris_vine_controller.y1[other.vineid];
16
    vine.y2 = obj_sneo_throwkris_vine_controller.y2[other.vineid];
17
    vine.x4 = vine.x2;
18
    vine.y4 = vine.y2;
19
    vine.x2 = other.x;
20
    vine.y2 = other.y;
21
    vine.x3 = other.x;
22
    vine.y3 = other.y;
23
    vine.depth = obj_spamton_neo_enemy.depth + 1;
24
    vine.type = 1;
25
    vine.vineid = other.vineid;
26
    obj_sneo_throwkris_vine_controller.visiblevine[other.vineid] = 0;
27
    if (other.good == 1)
28
    {
29
        global.msg[0] = stringsetloc(
* The wire was cut!Wait for inputClose Message
"* The wire was cut!/%", "obj_sneo_kristhrown_slash_Collision_62cd1353_c3fa_4ba1_acea_aa0a3fa3dd95_gml_35_0"
);
30
        snd_play(snd_coin);
31
        with (other)
32
        {
33
            if (offing == 1)
34
                con = 1;
35
            else
36
                con = 5;
37
        }
38
    }
39
    else
40
    {
41
        snd_play(snd_noise);
42
        with (other)
43
            con = 7;
44
        global.msg[0] = stringsetloc(
* The wire was cut!Wait for inputClose Message
"* The wire was cut!/%", "obj_sneo_kristhrown_slash_Collision_62cd1353_c3fa_4ba1_acea_aa0a3fa3dd95_gml_55_0"
);
45
        hspeed = -12;
46
        vspeed = -4;
47
        gravity = 0.5;
48
        con = 2;
49
    }
50
    
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
51
    other.collided = 1;
52
    collided = 1;
53
}