Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_tenna_board4_enemy_Create_0

(view raw script w/o annotations or w/e)
1
scr_enemy_object_init
scr_enemy_object_init

function
scr_enemy_object_init()
{ becomeflash = 0; flash = 0; turnt = 0; turns = 0; talktimer = 0; state = 0; siner = 0; fsiner = 0; talked = 0; attacked = 0; hurt = 0; hurttimer = 0; hurtshake = 0; shakex = 0; mywriter = 343249823; acttimer = 0; con = 0; dodgetimer = 0; fatal = 0; candodge = 0; mytarget = 0; ambushed = 0; firststrike = 0; damage = -1; grazepoints = -1; timepoints = -1; inv = -1; target = -1; grazed = -1; grazetimer = -1; element = "none"; acting = 0; actcon = 0; actingsus = 0; actingnoe = 0; actingral = 0; actconsus = 0; actconral = 0; actconnoe = 0; simulorderkri = -1; simulordersus = -1; simulorderral = -1; simulordernoe = -1; simultotal = 0; simulboss = -1; talkmax = 90; mercymod = 0; maxmercy = 100; recruitable = 1; freezable = 1; recruitcount = 1; sactionboxx = 0; sactionboxy = 0; hurtspriteoffx = 0; hurtspriteoffy = 0; image_xscale = 2; image_yscale = 2; image_speed = 0.2; idlesprite = spr_diamond_knight_overworld; hurtsprite = spr_diamond_knight_hurt; sparedsprite = spr_diamond_knight_spared; custombody = 0; for (i = 0; i < 10; i++) _charactsprite[i] = 382938298329; depth = 90 - ((y - cameray()) / 50); }
();
2
recruitcount = 5;
3
talkmax = 90;
4
image_speed = 0;
5
idlesprite = spr_tenna_point_up;
6
hurtsprite = spr_tenna_hurt;
7
sparedsprite = spr_tenna_sad;
8
custom_draw_example = 1;
9
darken = 0;
10
darkenalpha = 0;
11
myattackchoice = 0;
12
haveusedultimate = 0;
13
siner = 0;
14
turn = 0;
15
phaseturn = 0;
16
phase = 1;
17
phaseturn = 0;
18
endcon = 0;
19
endtimer = 0;
20
end_cutscene_version = 0;
21
balloonorder = 0;
22
ballooncon = 0;
23
balloonend = 1;
24
talkedcon = 0;
25
ralseitalks = 0;
26
susietalks = 0;
27
debugvar = 0;
28
attackchosen = false;
29
intro = 0;
30
introtimer = 0;
31
points = 0;
32
gothit = false;
33
bet = false;
34
betamount = 0;
35
pointsmultiplier = 1;
36
pointsmultiplierthisturn = 5;
37
haveusedbetbefore = false;
38
extrapointsviatension = 0;
39
popularboy = false;
40
saveralseihp = 0;
41
healthphase = 1;
42
resetralsei = false;
43
ilovetvcount = 0;
44
resistcount = 0;
45
intro = 0;
46
didkrisdoswordroute = false;
47
talked = 0.1;
48
softintro = false;
49
if (global.flag[1050 beat_mantle] == 1)
50
    didkrisdoswordroute = true;
51
if (global.encounterno == 134 || global.encounterno == 135)
52
    tenna_actor = instance_create_depth(camerax() + 566, cameray() + 260, depth - 999999991, obj_actor_tenna);
53
else
54
    tenna_actor = instance_create_depth(camerax() + 526, cameray() + 260, depth - 999999991, obj_actor_tenna);
55
tenna_actor.preset = 2;
56
tenna_actor.reversal = 0;
57
if (instance_number(obj_monsterparent) == 1)
58
{
59
    tenna_actor.vspeed = -31;
60
    tenna_actor.x = camerax() + 330;
61
    tenna_actor.y = cameray() + 620;
62
    tenna_actor.depth = depth - 10;
63
}
64
else
65
{
66
    softintro = true;
67
    intro = 1;
68
    talktimer = -10;
69
    tenna_actor.sprite_index = spr_tenna_pose_podium;
70
    tenna_actor.image_index = 2;
71
}
72
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "tenna") { global.typer = 80; if (global.fighting == 1) global.typer = 81; } if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; ...
("tenna");
73
global.fc = 22;
74
global.typer = 80;
75
gachainit = 0;
76
sharpshootmercy = 0;
77
digit_alpha = 0;
78
digit_flash_timer = 0;
79
digit_flash_duration = 10;
80
ilovetv = 0;
81
ilovetv_increase = 0;
82
ilovetv_increased = false;
83
ilovetv_pitch = 1;
84
tietimer = 0;
85
hurtvar = false;
86
global.spell[1][0] = 0;
87
battleresult = 0;
88
hidetvcount = false;
89
with (obj_herosusie)
90
{
91
    normalsprite = spr_susier_dark_unhappy;
92
    idlesprite = spr_susieb_idle_serious;
93
    defendsprite = spr_susieb_defend_unhappy;
94
    actreadysprite = spr_susieb_actready;
95
    attacksprite = spr_susieb_attack_serious;
96
    if (global.charweapon[2] == 0)
97
        idlesprite = spr_susieb_idle_unarmed_unhappy;
98
    itemsprite = spr_susieb_item_unhappy;
99
    itemreadysprite = spr_susieb_itemready_unhappy;
100
    spellreadysprite = spr_susieb_spellready_unhappy;
101
    spellsprite = spr_susieb_spell_unhappy;
102
    defeatsprite = spr_susie_dw_fell;
103
}
104
if (!variable_global_exists("board4ilovetvcount"))
105
    global.board4ilovetvcount = 0;