Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_npc_tasquemanager_Step_0

(view raw script w/o annotations or w/e)
1
if (myinteract == 1 && !d_ex())
2
    myinteract = 0;
3
if (con == 1 && !d_ex())
4
{
5
    if (instance_exists(obj_tasquepainting))
6
    {
7
        with (obj_tasquepainting)
8
            tasquespawn = 1;
9
    }
10
    con = 2;
11
    alarm[4]
 = 35;
gml_Object_obj_npc_tasquemanager_Alarm_4.gml

con++;
12
}
13
if (con == 3)
14
{
15
    marker2.depth = -1;
16
    depth = -2;
17
    encounterflag = 542;
18
    global.flag[54 encounter_pointer] = encounterflag;
19
    global.flag[9 battle_music] = 2;
20
    
scr_battle
scr_battle

function
scr_battle(arg0, arg1, arg2, arg3, arg4)
{ global.specialbattle = arg1; global.encounterno = arg0; if (global.flag[9 battle_music] != 2) { global.flag[9 battle_music] = 1; global.batmusic[0] = snd_init("battle.ogg"); } instance_create(0, 0, obj_battleback); instance_create(0, 0, obj_encounterbasic); __enemymarker[0] = arg2; __enemymarker[1] = arg3; __enemymarker[2] = arg4; for (__ien = 0; __ien < 3; __ien++) { if (global.monstertype[__ien] != 0(None)) { if (!i_ex(__enemymarker[__ien])) { __enemymarker[__ien] =
scr_dark_marker(global.monstermakex[__ien] + 300, global.monstermakey[__ien], object_get_sprite(global.monsterinstancetype[__ien]));
__enemymarker[__ien].depth = -__ien; } __enemymarker[__ien].__ien = __ien; with (__enemymarker[__ien]) {
scr_move_to_point_over_time(global.monstermakex[__ien], global.monstermakey[__ien], 20);
__doom = instance_create(x, y, obj_doom); __doom.target = id; __doom.alarm[0] = 25; } } } }
(57, 0, marker2, id, 0);
21
    instance_create(x, y, obj_tasque_manager_tempsave);
22
    con = 4;
23
    if (instance_exists(obj_tasquepainting))
24
    {
25
        with (obj_tasquepainting)
26
            image_index = 1;
27
    }
28
}