Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_npc_castle_door_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
howl_con = 0;
3
var yPos = (global.flag[642 recruit_task_manager] == 1) ? 185 : 205;
4
var bloxer = instance_create(115, yPos, obj_npc_room);
5
bloxer.sprite_index = (global.flag[642 recruit_task_manager] == 1) ? spr_blockguy_pants4 : spr_blockguy_pants3;
6
var lost_animals = 0;
7
if (global.flag[642 recruit_task_manager] != 1)
8
{
9
    if (global.flag[632 recruit_tasque] == 1)
10
    {
11
        var tasque = instance_create(280, 370, obj_readable_room1);
12
        tasque.sprite_index = spr_tasque_idle_overworld;
13
        tasque.visible = 1;
14
        tasque.image_xscale = 2;
15
        tasque.image_yscale = 2;
16
        with (tasque)
17
            path_start(path_great_door, 2, path_action_continue, 0);
18
        lost_animals++;
19
    }
20
    if (global.flag[634 recruit_maus] == 1)
21
    {
22
        var maus = instance_create(290, 320, obj_readable_room1);
23
        maus.sprite_index = spr_maus_idle;
24
        maus.visible = 1;
25
        maus.image_xscale = 2;
26
        maus.image_yscale = 2;
27
        with (maus)
28
        {
29
            path_start(path_great_door, 2, path_action_continue, 0);
30
            path_position = 0.2;
31
        }
32
        lost_animals++;
33
    }
34
    if (global.flag[631 recruit_poppup] == 1)
35
    {
36
        var poppup = instance_create(300, 260, obj_readable_room1);
37
        poppup.sprite_index = spr_npc_poppup;
38
        poppup.visible = 1;
39
        poppup.image_xscale = 2;
40
        poppup.image_yscale = 2;
41
        with (poppup)
42
        {
43
            path_start(path_great_door, 2, path_action_continue, 0);
44
            path_position = 0.4;
45
        }
46
        lost_animals++;
47
    }
48
    if (lost_animals == 0 && global.flag[462 cars_hit] < 3 && global.flag[465 car_part_completed] == 1)
49
    {
50
        var car = instance_create(280, 330, obj_readable_room1);
51
        car.sprite_index = spr_traffic_car_side_legs_small_left;
52
        car.visible = 1;
53
        car.image_xscale = 2;
54
        car.image_yscale = 2;
55
        with (car)
56
            path_start(path_great_door, 2, path_action_continue, 0);
57
    }
58
}