Deltarune script viewer

← back to main script listing

gml_Object_obj_ralseithrown_ch1_Collision_obj_throwtarget_ch1

(view raw script w/o annotations or w/e)
1
if (collided == 0)
2
{
3
    if (other.good == 1)
4
    {
5
        with (obj_checkers_enemy_ch1)
6
            crown += 35;
7
        global.msg[0] = 
* The crown greatly loosened!Wait for inputClose Message
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_ralseithrown_slash_Collision_154b9139_8c0d_44d5_b8de_0f03c1a8096c_gml_6_0")
;
8
        snd_play_ch1(snd_coin_ch1);
9
        with (other)
10
        {
11
            if (offing == 1)
12
            {
13
                con = 1;
14
                vspeed = -8;
15
            }
16
            else
17
            {
18
                con = 5;
19
            }
20
        }
21
    }
22
    else
23
    {
24
        snd_play_ch1(snd_noise_ch1);
25
        with (other)
26
            con = 7;
27
        with (obj_checkers_enemy_ch1)
28
            crown += 20;
29
        global.msg[0] = 
* The crown loosened a little!Wait for inputClose Message
scr_84_get_lang_string_ch1
scr_84_get_lang_string_ch1

function scr_84_get_lang_string_ch1(arg0) { return ds_map_find_value(global.lang_map, arg0); }
("obj_ralseithrown_slash_Collision_154b9139_8c0d_44d5_b8de_0f03c1a8096c_gml_29_0")
;
30
        hspeed = -12;
31
        vspeed = -4;
32
        gravity = 0.5;
33
        con = 2;
34
    }
35
    scr_battletext_default_ch1
scr_battletext_default_ch1

function scr_battletext_default_ch1() { global.fc = 0; global.typer = 4; scr_battletext_ch1(); return battlewriter; }
();
36
    collided = 1;
37
}