Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_titan_enemy_Step_2

(view raw script w/o annotations or w/e)
1
if (gerson.sprite_index == spr_gerson_rudebuster_ready)
2
{
3
    with (obj_herosusie)
4
    {
5
        if (thissprite == spr_susieb_spellready)
6
            thissprite = spr_susieb_spellready;
7
    }
8
}
9
if (acting == 1 && actcon == 0 && dualbusterenabled && !susiesideaenabled && !gersoncastanim && global.myfight != 3)
10
{
11
    gersoncastanim = true;
12
    
scr_battle_sprite_set
scr_battle_sprite_set

function
scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 8; hurt = 0; attacktimer = 0; sprite_index = arg1; image_speed = arg2; image_index = 0; if (arg3 == 0) maxframes = image_number; global.faceaction[myself] = 0; } } }
("susie", spr_susieb_spellready_unhappy, 1/3, 1);
13
    gerson.sprite_index = spr_gerson_rudebuster_ready;
14
    gerson.image_speed = 1/3;
15
    gerson.image_index = 0;
16
    gerson.x += 16;
17
    gerson.y += 22;
18
}