Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_werewire_kristhrown_Collision_obj_werewire_throwtarget

(view raw script w/o annotations or w/e)
1
if (other.collided == 0)
2
{
3
    if (other.good == 1)
4
    {
5
        global.msg[0] = stringsetloc(
* The wire greatly loosened!Wait for inputClose Message
"* The wire greatly loosened!/%", "obj_werewire_kristhrown_slash_Collision_048192d7_9c3b_472a_adb9_e1f06953ce64_gml_10_0"
);
6
        snd_play(snd_laz_c);
7
        if (instance_exists(obj_werewire_enemy))
8
        {
9
            with (other.maker)
10
                mercyaccumulated = 50;
11
        }
12
        with (other)
13
        {
14
            if (offing == 1)
15
            {
16
                con = 1;
17
                vspeed = -8;
18
            }
19
            else
20
            {
21
                con = 5;
22
            }
23
        }
24
    }
25
    else
26
    {
27
        snd_play(snd_noise);
28
        with (other)
29
            con = 7;
30
        if (instance_exists(obj_werewire_enemy))
31
        {
32
            with (obj_werewire_enemy)
33
            {
34
                if (acting == 3)
35
                    loosenAmount = clamp(loosenAmount + 0.25, 0, 1);
36
            }
37
        }
38
        else if (instance_exists(obj_werewerewire_enemy))
39
        {
40
            with (obj_werewerewire_enemy)
41
            {
42
                if (acting == 3)
43
                    loosenAmount = clamp(loosenAmount + 0.125, 0, 1);
44
            }
45
        }
46
        global.msg[0] = stringsetloc(
* The wire loosened a little!Wait for inputClose Message
"* The wire loosened a little!/%", "obj_werewire_kristhrown_slash_Collision_048192d7_9c3b_472a_adb9_e1f06953ce64_gml_75_0"
);
47
        hspeed = -12;
48
        vspeed = -4;
49
        gravity = 0.5;
50
        con = 2;
51
    }
52
    
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
53
    other.collided = 1;
54
    collided = 1;
55
}