Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_flowery_enemy_Other_10

related scripts: Alarm_4Alarm_6CleanUp_0Create_0Draw_0KeyPress_13Other_10 Other_11Other_15Other_22Other_4Step_0

(view raw script w/o annotations or w/e)
1
for (var i = 0; i < 3; i += 1)
2
{
3
    j = irandom_range(i, 3);
4
    temp = rand_array[i];
5
    rand_array[i] = rand_array[j];
6
    rand_array[j] = temp;
7
}
8
if (phase == 2)
9
{
10
    global.canact[myself][1] = 1;
11
    global.actname[myself][1] = stringsetloc(
BlowAway
"BlowAway", "obj_flowery_enemy_slash_Other_10_gml_21_0"
);
12
    global.actactor[myself][1] = 1;
13
    global.actdesc[myself][1] = stringsetloc(
Mash for#Mercy
"Mash for#Mercy", "obj_flowery_enemy_slash_Other_10_gml_23_0"
);
14
    global.actcost[myself][1] = 160;
15
    global.canact[myself][2] = 1;
16
    global.actname[myself][2] = stringsetloc(
BlowAwayZ
"BlowAwayZ", "obj_flowery_enemy_slash_Other_10_gml_27_0"
);
17
    global.actdesc[myself][2] = stringsetloc(
Mash for#Mercy
"Mash for#Mercy", "obj_flowery_enemy_slash_Other_10_gml_28_0"
);
18
    global.actactor[myself][2] = 4;
19
    global.actcost[myself][2] = 125;
20
}
21
if (phase == 3)
22
{
23
    global.canact[myself][1] = 1;
24
    global.actname[myself][1] = stringsetloc(
Spin
"Spin", "obj_flowery_enemy_slash_Other_10_gml_35_0_b"
);
25
    global.actdesc[myself][1] = stringsetloc(
5Close Message Mercy
"5% Mercy", "obj_flowery_enemy_slash_Other_10_gml_36_0_b"
);
26
    global.actactor[myself][1] = 0;
27
    global.actcost[myself][1] = 200;
28
    global.canact[myself][2] = 1;
29
    global.actname[myself][2] = stringsetloc(
SpinZ
"SpinZ", "obj_flowery_enemy_slash_Other_10_gml_41_0_b"
);
30
    global.actdesc[myself][2] = stringsetloc(
5Close Message Mercy
"5% Mercy", "obj_flowery_enemy_slash_Other_10_gml_42_0_b"
);
31
    global.actactor[myself][2] = 4;
32
    global.actcost[myself][2] = 160;
33
}
34
if (phase == 4)
35
{
36
    global.canact[myself][1] = 1;
37
    global.actname[myself][1] = stringsetloc(
Praise
"Praise", "obj_flowery_enemy_slash_Other_10_gml_49_0"
);
38
    global.actdesc[myself][1] = stringsetloc(
5Close Message Mercy
"5% Mercy", "obj_flowery_enemy_slash_Other_10_gml_50_0"
);
39
    global.actactor[myself][1] = 0;
40
    global.actcost[myself][1] = 200;
41
    global.canact[myself][2] = 1;
42
    global.actname[myself][2] = stringsetloc(
PraiseZ
"PraiseZ", "obj_flowery_enemy_slash_Other_10_gml_55_0"
);
43
    global.actdesc[myself][2] = stringsetloc(
5Close Message Mercy
"5% Mercy", "obj_flowery_enemy_slash_Other_10_gml_56_0"
);
44
    global.actactor[myself][2] = 4;
45
    global.actcost[myself][2] = 160;
46
}
47
if (phase == 5)
48
{
49
    global.actname[myself][1] = stringsetloc(
Justice
"Justice", "obj_yellow_enemy_slash_Create_0_gml_312_0"
);
50
    global.actdesc[myself][1] = stringsetloc(
Begin#the trial.
"Begin#the trial.", "obj_flowery_enemy_slash_Other_10_gml_143_0"
);
51
    global.actcost[myself][1] = 250;
52
    global.actactor[myself][1] = 0;
53
    if (global.hp[2] > 0 && global.hp[3] <= 0)
54
        global.actactor[myself][1] = 2;
55
    if (global.hp[2] <= 0 && global.hp[3] > 0)
56
        global.actactor[myself][1] = 3;
57
    if (global.hp[2] > 0 && global.hp[3] > 0)
58
        global.actactor[myself][1] = 4;
59
    global.actname[myself][2] = "";
60
    global.canact[myself][2] = 0;
61
    global.actactor[myself][2] = 0;
62
    global.actname[myself][3] = "";
63
    global.canact[myself][3] = 0;
64
    global.actactor[myself][3] = 0;
65
    global.actname[myself][4] = "";
66
    global.canact[myself][4] = 0;
67
    global.actactor[myself][4] = 0;
68
    global.actname[myself][5] = "";
69
    global.canact[myself][5] = 0;
70
    global.actactor[myself][5] = 0;
71
}
72
if (phase == 6)
73
{
74
    global.actname[myself][1] = stringsetloc(
SusiesIdea
"SusiesIdea", "obj_flowery_enemy_slash_Other_10_gml_82_0"
);
75
    global.actdesc[myself][1] = stringsetloc(
???
"???", "obj_flowery_enemy_slash_Other_10_gml_83_0"
);
76
    global.actcost[myself][1] = 120;
77
    global.actactor[myself][1] = 2;
78
}
79
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) { if (global.encounterno != 222) __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]; } } }
();