Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_queen_ralseithrown_Collision_obj_queen_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
    obj_queen_enemy.wirescut++;
9
    other.stopmoving = 1;
10
    other.sprite_index = spr_berdly_plug_target_burst;
11
    other.image_index = 0;
12
    other.image_speed = 0.5;
13
    if (obj_queen_enemy.phase == 1)
14
        obj_queen_throw_controller.bardlymercy += 12.5;
15
    if (obj_queen_enemy.phase == 2)
16
        obj_queen_throw_controller.bardlymercy += 8.333333333333334;
17
    if (obj_queen_enemy.phase == 3)
18
        obj_queen_throw_controller.bardlymercy += 6.25;
19
    if (obj_queen_enemy.phase == 4)
20
        obj_queen_throw_controller.bardlymercy += 5;
21
    if (other.good == 1)
22
    {
23
        global.msg[0] = stringsetloc(
* The wire was cut!Wait for inputClose Message
"* The wire was cut!/%", "obj_queen_ralseithrown_slash_Collision_22f849ff_cd13_405b_a486_5468f83d4033_gml_23_0"
);
24
        snd_play(snd_coin);
25
        with (other)
26
        {
27
            if (offing == 1)
28
                con = 1;
29
            else
30
                con = 5;
31
        }
32
    }
33
    else
34
    {
35
        snd_play(snd_noise);
36
        with (other)
37
            con = 7;
38
        global.msg[0] = stringsetloc(
* The wire was cut!Wait for inputClose Message
"* The wire was cut!/%", "obj_queen_ralseithrown_slash_Collision_22f849ff_cd13_405b_a486_5468f83d4033_gml_42_0"
);
39
        hspeed = -12;
40
        vspeed = -4;
41
        gravity = 0.5;
42
        con = 2;
43
    }
44
    scr_battletext_default
scr_battletext_default

function scr_battletext_default() { global.fc = 0; global.typer = 4; scr_battletext(); return battlewriter; }
();
45
    other.collided = 1;
46
    collided = 1;
47
}