Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_queen_enemy_Other_11

(view raw script w/o annotations or w/e)
1
var shieldbreaking = 0;
2
if (instance_exists(obj_queenshield_enemy) && obj_queenshield_enemy.shieldhurt == 2)
3
    shieldbreaking = 1;
4
if (!instance_exists(obj_queenshield_enemy) || shieldbreaking == 1)
5
{
6
    global.actname[myself][0] = stringsetloc(
Loosen
"Loosen", "obj_queen_enemy_slash_Other_11_gml_10_0"
);
7
    global.actsimul[myself][0] = 0;
8
    global.actname[myself][1] = stringsetloc(
GroupLoosen
"GroupLoosen", "obj_queen_enemy_slash_Other_11_gml_11_0"
);
9
}
10
else
11
{
12
    global.actname[myself][0] = stringsetloc(
Toast
"Toast", "obj_queen_enemy_slash_Other_11_gml_15_0"
);
13
    global.actsimul[myself][0] = 1;
14
    global.actname[myself][1] = stringsetloc(
GroupToast
"GroupToast", "obj_queen_enemy_slash_Other_11_gml_16_0"
);
15
}
16
if (!instance_exists(obj_queenshield_enemy) || shieldbreaking == 1)
17
{
18
    global.actnamesus[myself][0] = stringsetloc(
Loosen
"Loosen", "obj_queen_enemy_slash_Other_11_gml_22_0"
);
19
    global.actsimulsus[myself][0] = 0;
20
}
21
else
22
{
23
    global.actnamesus[myself][0] = stringsetloc(
Toast
"Toast", "obj_queen_enemy_slash_Other_11_gml_26_0"
);
24
    global.actsimulsus[myself][0] = 1;
25
}
26
if (!instance_exists(obj_queenshield_enemy) || shieldbreaking == 1)
27
{
28
    global.actnameral[myself][0] = stringsetloc(
Loosen
"Loosen", "obj_queen_enemy_slash_Other_11_gml_32_0"
);
29
    global.actsimulral[myself][0] = 0;
30
}
31
else
32
{
33
    global.actnameral[myself][0] = stringsetloc(
Toast
"Toast", "obj_queen_enemy_slash_Other_11_gml_36_0"
);
34
    global.actsimulral[myself][0] = 1;
35
}
36
if (!instance_exists(obj_queenshield_enemy) || shieldbreaking == 1)
37
{
38
    global.canact[myself][2] = 1;
39
    global.actactor[myself][2] = 2;
40
    global.actname[myself][2] = stringsetloc(
Throw
"Throw", "scr_monstersetup_slash_scr_monstersetup_gml_1540_0"
);
41
    global.actdesc[myself][2] = " ";
42
    global.actcost[myself][2] = 0;
43
    global.canact[myself][3] = 1;
44
    global.actactor[myself][3] = 2;
45
    global.actname[myself][3] = stringsetloc(
RedBuster
"RedBuster", "scr_monstersetup_slash_scr_monstersetup_gml_1552_0"
);
46
    global.actdesc[myself][3] = stringsetloc(
Red#Damage
"Red#Damage", "scr_monstersetup_slash_scr_monstersetup_gml_1553_0"
);
47
    global.actcost[myself][3] = 150;
48
    global.canact[myself][4] = 1;
49
    global.actactor[myself][4] = 3;
50
    global.actname[myself][4] = stringsetloc(
DualHeal
"DualHeal", "scr_monstersetup_slash_scr_monstersetup_gml_1558_0"
);
51
    global.actdesc[myself][4] = stringsetloc(
Heals#everyone
"Heals#everyone", "scr_monstersetup_slash_scr_monstersetup_gml_1559_0"
);
52
    global.actcost[myself][4] = 125;
53
    global.canact[myself][5] = 0;
54
}
55
else
56
{
57
    global.canact[myself][2] = 1;
58
    global.actactor[myself][2] = 2;
59
    global.actname[myself][2] = stringsetloc(
RedBuster
"RedBuster", "scr_monstersetup_slash_scr_monstersetup_gml_1552_0"
);
60
    global.actdesc[myself][2] = stringsetloc(
Red#Damage
"Red#Damage", "scr_monstersetup_slash_scr_monstersetup_gml_1553_0"
);
61
    global.actcost[myself][2] = 150;
62
    global.canact[myself][3] = 1;
63
    global.actactor[myself][3] = 3;
64
    global.actname[myself][3] = stringsetloc(
DualHeal
"DualHeal", "scr_monstersetup_slash_scr_monstersetup_gml_1558_0"
);
65
    global.actdesc[myself][3] = stringsetloc(
Heals#everyone
"Heals#everyone", "scr_monstersetup_slash_scr_monstersetup_gml_1559_0"
);
66
    global.actcost[myself][3] = 125;
67
    global.canact[myself][4] = 0;
68
    global.actactor[myself][4] = 0;
69
    global.actname[myself][4] = "";
70
    global.actdesc[myself][4] = "";
71
    global.actcost[myself][4] = 0;
72
    global.canact[myself][5] = 0;
73
    global.actactor[myself][5] = 0;
74
    global.actname[myself][5] = "";
75
    global.actdesc[myself][5] = "";
76
    global.actcost[myself][5] = 0;
77
}
78
scr_spellmenu_setup
scr_spellmenu_setup

function scr_spellmenu_setup() { var __actnamecheck = 0; var __monstertype = global.monstertype[0]; for (__i = 1; __i < 3; __i++) { if (global.monster[__i] == 1 && global.monstertype[__i] != __monstertype) __actnamecheck = 1; } for (__i = 0; __i < 3; __i++) { for (__fj = 0; __fj < 6; __fj++) { global.battlespell[__i][__fj] = 0; if (global.char[__i] == 1) { if (global.canact[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcost[0][__fj]; global.battlespellname[__i][__fj] = global.actname[0][__fj]; global.battlespelldesc[__i][__fj] = global.actdesc[0][__fj]; global.battlespelltarget[__i][__fj] = 0; global.battlespellspecial[__i][__fj] = 1; } } if (global.char[__i] == 2) { if (global.canactsus[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostsus[0][__fj]; global.battlespellname[__i][__fj] = global.actnamesus[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
S-Action
"S-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1053_0"
); global.battlespelldesc[__i][__fj] = global.actdescsus[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 2; } } if (global.char[__i] == 3) { if (global.canactral[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostral[0][__fj]; global.battlespellname[__i][__fj] = global.actnameral[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
R-Action
"R-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1057_0"
); global.battlespelldesc[__i][__fj] = global.actdescral[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 3; } } if (global.char[__i] == 4) { if (global.canactnoe[0][__fj] == 1) { global.battlespell[__i][__fj] = -1; if (global.battleactcount[__i] < (__fj + 1)) global.battleactcount[__i] = __fj + 1; global.battlespellcost[__i][__fj] = global.actcostnoe[0][__fj]; global.battlespellname[__i][__fj] = global.actnamenoe[0][__fj]; if (__actnamecheck) global.battlespellname[__i][__fj] = stringsetloc(
N-Action
"N-Action", "scr_monstersetup_slash_scr_monstersetup_gml_1061_0"
); global.battlespelldesc[__i][__fj] = global.actdescnoe[0][__fj]; global.battlespelltarget[__i][__fj] = 2; global.battlespellspecial[__i][__fj] = 4; } } } } scr_spellinfo_all(); for (__i = 0; __i < 3; __i++) { for (__fj = 0; __fj < 12; __fj++) { __ib = global.battleactcount[__i] + __fj; global.battlespell[__i][__ib] = global.spell[global.char[__i]][__fj]; global.battlespellcost[__i][__ib] = global.spellcost[global.char[__i]][__fj]; global.battlespellname[__i][__ib] = global.spellnameb[global.char[__i]][__fj]; global.battlespelldesc[__i][__ib] = global.spelldescb[global.char[__i]][__fj]; global.battlespelltarget[__i][__ib] = global.spelltarget[global.char[__i]][__fj]; } } }
();