Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b3bs_cheaterpippins_Create_0

(view raw script w/o annotations or w/e)
1
con = 0;
2
dcon = 0;
3
dtimer = 0;
4
timer = 0;
5
dispcount = 0;
6
disprate = 0;
7
dattempt = global.flag[1088 cheated_dice_val];
8
pippins1 = instance_create(246, 240, obj_npc_room);
9
with (pippins1)
10
{
11
    extflag = "pippins1";
12
    
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
();
13
}
14
pippins2 = instance_create(476, 240, obj_npc_room);
15
with (pippins2)
16
{
17
    extflag = "pippins2";
18
    
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
();
19
}
20
pippins3 = instance_create(794, 300, obj_npc_room);
21
with (pippins3)
22
{
23
    extflag = "pippins3";
24
    
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
();
25
}
26
bpip1 = instance_create(384, 64, obj_board_pippins_grabbable);
27
button = instance_create(352, 192, obj_board_switchtile);
28
dice = instance_create(416, 192, obj_board_grabbleObject);
29
with (dice)
30
{
31
    breakable = false;
32
    visible = true;
33
    
scr_depth_board
scr_depth_board

function
scr_depth_board()
{ depth = 1000000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10)); } function scr_board_depth() {
scr_depth_board();
}
();
34
    
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
();
35
    sprite_index = spr_board_die_nocheat;
36
    image_index = 3;
37
    image_speed = 0;
38
}
39
init = false;
40
pwriter1 = instance_create(384, 128, obj_board_shopwriter);
41
pwriter1.shopstring = stringsetloc(
ROLL THE DIE#2,4,6 WIN!
"ROLL THE DIE#2,4,6 WIN!", "obj_b3bs_cheaterpippins_slash_Create_0_gml_50_0"
);
42
pwriter1.yloc = ((bpip1.y + 48) - 4) + 8;
43
pwriter1.xoff = 78;
44
lancershow = false;
45
digline = stringsetloc(
DIG, DIG, YOU GOT#NO DIRT ON US.
"DIG, DIG, YOU GOT#NO DIRT ON US.", "obj_b3bs_cheaterpippins_slash_Create_0_gml_55_0"
);
46
susiedicepickup = false;
47
susline = stringsetloc(
WHAT THE? WHY WOULD#YOU THROW A DIE?
"WHAT THE? WHY WOULD#YOU THROW A DIE?", "obj_b3bs_cheaterpippins_slash_Create_0_gml_58_0"
);
48
pippickup = false;
49
pipline = stringsetloc(
WHAT? WHERE ARE#YOU TAKING ME?
"WHAT? WHERE ARE#YOU TAKING ME?", "obj_b3bs_cheaterpippins_slash_Create_0_gml_61_0"
);
50
if (global.flag[1098 cheater_pip_left] == 1)
51
{
52
    safe_delete(pippins1);
53
    safe_delete(pippins2);
54
    safe_delete(pippins3);
55
    safe_delete(pwriter1);
56
    safe_delete(bpip1);
57
}