Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_npc_castle_cliff_Create_0

(view raw script w/o annotations or w/e)
1
con = -1;
2
sinerx = 0;
3
sinery = 0;
4
siner0 = 0;
5
siner_add0 = 0.2;
6
siner_amplitude0 = 0;
7
siner_direction0 = 0;
8
siner1 = 0;
9
siner_add1 = 0.2;
10
siner_amplitude1 = 5;
11
siner_direction1 = 90;
12
sfx = false;
13
shine = -4;
14
remove_shine = false;
15
if (global.chapter == 2 && global.plot >= 10)
16
{
17
    if (
scr_armorcheck_equipped_party
scr_armorcheck_equipped_party

function
scr_armorcheck_equipped_party(arg0)
{ var __totalwearing = 0; for (var __weari = 0; __weari < 3; __weari++) { if (global.char[__weari] != 0) __totalwearing +=
scr_armorcheck_equipped(global.char[__weari], arg0);
} return __totalwearing; }
(7) == 0 &&
scr_armorcheck_inventory
scr_armorcheck_inventory

function
scr_armorcheck_inventory(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 48; i += 1) { if (global.armor[i] == arg0) haveit = 1; if (global.armor[i] == arg0) itemcount += 1; } return haveit; }
(7) == 0 &&
scr_weaponcheck_inventory
scr_weaponcheck_inventory

function
scr_weaponcheck_inventory(arg0)
{ haveit = 0; itemcount = 0; for (i = 0; i < 48; i += 1) { if (global.weapon[i] == arg0) haveit = 1; if (global.weapon[i] == arg0) itemcount += 1; } return haveit; }
(7) == 0 && global.charweapon[2] != 7)
18
    {
19
        if (global.tempflag[35] == 0)
20
        {
21
            global.tempflag[35] = 1;
22
            
scr_jevil_check
scr_jevil_check

function
scr_jevil_check()
{ var item_knife = false; var item_tail = false; var chapter = 1; for (var i = 0; i < 3; i++) { var result = scr_get_ura_value(chapter, i); if (result == 0) continue; if (result == 3) { item_knife = true; item_tail = true; break; } else { if (!item_knife) item_knife = result == 1; if (!item_tail) item_tail = result == 2; } } if (item_knife) global.tempflag[36] = 2; else if (item_tail) global.tempflag[36] = 1; }
();
23
        }
24
    }
25
    var show_shine = global.tempflag[36] == 1 || global.tempflag[36] == 2;
26
    if (show_shine && global.plot >= 200 && global.flag[309 spamton_plot] < 9)
27
        show_shine = false;
28
    var hole = 
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; }
(281, 200, spr_darkwest_hole);
29
    with (hole)
30
        
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
31
    if (show_shine)
32
    {
33
        shine = 
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; }
(320, 235, spr_shine);
34
        shine.image_speed = 0.1;
35
        shine.image_xscale = 2;
36
        shine.image_yscale = 2;
37
        shine.depth = hole.depth - 10;
38
    }
39
}
40
if (global.chapter != 2 || global.flag[314 mr_society_left] == 1)
41
    instance_destroy();