Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_ralseithrown_Collision_obj_throwtarget

(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)
6
            crown += 35;
7
        global.msg[0] = stringsetloc(
* The crown greatly loosened!Wait for inputClose Message
"* The crown greatly loosened!/%", "obj_ralseithrown_slash_Collision_ac806612_bd9d_43f5_86b2_61306f514c9f_gml_6_0"
);
8
        snd_play(snd_coin);
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(snd_noise);
25
        with (other)
26
            con = 7;
27
        with (obj_checkers_enemy)
28
            crown += 20;
29
        global.msg[0] = stringsetloc(
* The crown loosened a little!Wait for inputClose Message
"* The crown loosened a little!/%", "obj_ralseithrown_slash_Collision_ac806612_bd9d_43f5_86b2_61306f514c9f_gml_29_0"
);
30
        hspeed = -12;
31
        vspeed = -4;
32
        gravity = 0.5;
33
        con = 2;
34
    }
35
    
scr_battletext_default
scr_battletext_default

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