Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_queen_ralseithrown_Step_0

(view raw script w/o annotations or w/e)
1
if ((con == 0 && bonk == 0) || (con == 2 && bonk == 0))
2
    image_angle = direction;
3
if (x > (xx + 700) || y < (yy - 40))
4
{
5
    if (con == 0)
6
    {
7
        gravity = 0;
8
        speed = 0;
9
        x = xx - 40;
10
        y = obj_heroralsei.y;
11
        sprite_index = spr_ralsei_idle;
12
        image_angle = 0;
13
        hspeed = 20;
14
        con = 10;
15
    }
16
}
17
if (con == 10)
18
{
19
    timer += 1;
20
    if (x >= (obj_herokris.x - 10))
21
    {
22
        if (collided == 0)
23
        {
24
            global.msg[0] = stringsetloc(
* Missed!Wait for inputClose Message
"* Missed!/%", "obj_queen_ralseithrown_slash_Step_0_gml_23_0"
);
25
            
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
26
        }
27
        with (obj_herokris)
28
            visible = 1;
29
        with (obj_herosusie)
30
            visible = 1;
31
        with (obj_heroralsei)
32
            visible = 1;
33
        visible = 0;
34
        with (obj_queen_throwtarget)
35
            instance_destroy();
36
        with (obj_queen_throwkris)
37
            instance_destroy();
38
        con = 11;
39
    }
40
}
41
if (con == 11 && !instance_exists(obj_writer))
42
{
43
    obj_queen_enemy.actcon = 35;
44
    instance_destroy();
45
}
46
if (con == 2)
47
{
48
    if (x < (xx - 40) || y > (cameray() + 380))
49
    {
50
        timer = 0;
51
        gravity = 0;
52
        speed = 0;
53
        x = xx - 40;
54
        y = obj_heroralsei.y;
55
        sprite_index = spr_ralsei_idle;
56
        image_angle = 0;
57
        hspeed = 20;
58
        con = 10;
59
    }
60
}
61
if (instance_exists(obj_queenshield_enemy) && x > (obj_queenshield_enemy.x - 60) && bonk == 0)
62
{
63
    block_star = instance_create(x + 60, y + 34, obj_boxing_block_star);
64
    block_star.direction = 0 + random(90);
65
    block_star = instance_create(x + 60, y + 34, obj_boxing_block_star);
66
    block_star.direction = 90 + random(90);
67
    block_star = instance_create(x + 60, y + 34, obj_boxing_block_star);
68
    block_star.direction = 180 + random(90);
69
    block_star = instance_create(x + 60, y + 34, obj_boxing_block_star);
70
    block_star.direction = 270 + random(90);
71
    with (obj_boxing_block_star)
72
        depth = obj_queenshield_enemy.depth - 1;
73
    obj_queen_enemy.shieldhp -= 20;
74
    with (obj_queenshield_enemy)
75
        con = 1;
76
    with (obj_queenshield_enemy)
77
        event_user(0);
78
    bonk = 1;
79
    con = 2;
80
    snd_play(snd_bell);
81
    speed *= -0.2;
82
    x += 15;
83
    obj_queenshield_enemy.shaketimer = 4;
84
}
85
if (y > (cameray() + 240))
86
    depth = obj_herokris.depth + 1000;