Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_cutscene_starlo_pre_fight_Create_0

(view raw script w/o annotations or w/e)
1
scene = 0;
2
cutscene_timer = 0;
3
cutscene_music = 0;
4
audio_sound_gain(mus_wind, 1, 0);
5
wind_sound = audio_play_sound(mus_wind, 1, 1);
6
audio_sound_pitch(wind_sound, 0.5);
7
if (global.route == 3)
8
{
9
    scene = -1;
10
    exit;
11
}
12
if (global.dunes_flag[39] == 1)
13
{
14
    scene = -1;
15
    exit;
16
}
17
if (global.dunes_flag[24] == 2)
18
{
19
    scene = -1;
20
    instance_create(0, 0, obj_cutscene_starlo_post_fight_neutral);
21
    exit;
22
}
23
else if (global.dunes_flag[24] == 1 && global.route == 1)
24
{
25
    scene = -1;
26
    instance_create(0, 0, obj_cutscene_starlo_post_fight_neutral_alive);
27
    exit;
28
}
29
var actor_starlo = instance_create(160, 80, obj_starlo_npc);
30
with (actor_starlo)
31
{
32
    up_sprite = 207;
33
    right_sprite = 237;
34
    down_sprite = 240;
35
    left_sprite = 236;
36
    up_sprite_idle = 206;
37
    right_sprite_idle = 235;
38
    down_sprite_idle = 230;
39
    left_sprite_idle = 232;
40
}
41
if (global.dunes_flag[24] != 0)
42
{
43
    scene = 17;
44
    actor_clover = instance_create(obj_pl.x, obj_pl.y, obj_player_npc);
45
    actor_ceroba = instance_create(obj_pl.x, obj_pl.y + 80, obj_ceroba_npc);
46
    actor_ceroba.npc_direction = "up";
47
    __view_set(e__VW.Object, 0, actor_starlo);
48
}
49
else
50
{
51
    actor_starlo.action_sprite = true;
52
    actor_starlo.sprite_index = spr_starlo_up_wind;
53
    actor_starlo.image_speed = 0.25;
54
}
55
56
enum e__VW
57
{
58
    XView,
59
    YView,
60
    WView,
61
    HView,
62
    Angle,
63
    HBorder,
64
    VBorder,
65
    HSpeed,
66
    VSpeed,
67
    Object,
68
    Visible,
69
    XPort,
70
    YPort,
71
    WPort,
72
    HPort,
73
    Camera,
74
    SurfaceID
75
}