Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_ralseithrown_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0 || con == 2)
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_ralseib_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_heroralsei.x - 10))
21
    {
22
        if (collided == 0)
23
        {
24
            global.msg[0] = 
* Missed!Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function scr_84_get_lang_string(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_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_heroralsei)
28
            visible = 1;
29
        with (obj_herosusie)
30
            visible = 1;
31
        with (obj_checkers_enemy)
32
        {
33
            actcon = 1;
34
            visible = 1;
35
        }
36
        with (obj_throwtarget)
37
            instance_destroy();
38
        with (obj_throwralsei)
39
            instance_destroy();
40
        instance_destroy();
41
    }
42
}
43
if (con == 2)
44
{
45
    if (x < (xx - 40) || y > (yy + 520))
46
    {
47
        timer = 0;
48
        gravity = 0;
49
        speed = 0;
50
        x = xx - 40;
51
        y = obj_heroralsei.y;
52
        sprite_index = spr_ralseib_idle;
53
        image_angle = 0;
54
        hspeed = 20;
55
        con = 10;
56
    }
57
}