Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ch4_PDC03A_rudy_toriel_Create_0

(view raw script w/o annotations or w/e)
1
con = 0;
2
disable_npcs = false;
3
enable_npcs = false;
4
rudy_turn_con = 0;
5
noelle_sing_talk = 0;
6
noelle_key_talk = 0;
7
noelle_talked = 0;
8
susie_ready = false;
9
facing_temp = 0;
10
actor_talker = -4;
11
no_actor = -4;
12
noelle_npc = 
scr_marker
scr_marker

function
scr_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; } return thismarker; }
(235, 405, spr_noelle_juice_walk_left);
13
with (noelle_npc)
14
{
15
    image_speed = 0;
16
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
17
}
18
noelle_readable = instance_create(noelle_npc.x, noelle_npc.y, obj_readable_room1);
19
with (noelle_readable)
20
{
21
    extflag = "noelle";
22
    image_yscale = 2;
23
}
24
noelle_collider = instance_create(noelle_npc.x, noelle_npc.y, obj_solidblock);
25
with (noelle_collider)
26
    image_yscale = 2;
27
rudy_npc = instance_create(176, 400, obj_npc_room);
28
with (rudy_npc)
29
{
30
    extflag = "rudy";
31
    normalanim = 4;
32
    sprite_index = spr_rudy_juice_walk_left;
33
    
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
34
}
35
toriel_npc = instance_create(140, 400, obj_npc_facing);
36
with (toriel_npc)
37
{
38
    extflag = "toriel";
39
    facing = 1;
40
    dfacing = 1;
41
    dtsprite = spr_toriel_juice_talk_down;
42
    ltsprite = spr_toriel_juice_talk_left;
43
    utsprite = spr_toriel_talk_up_church;
44
    rtsprite = spr_toriel_juice_talk_right;
45
}