1 |
function scr_battle_core_directory_hp_displacementsscr_battle_core_directory_hp_displacementsfunction scr_battle_core_directory_hp_displacements() //gml_Script_scr_battle_core_directory_hp_displacements
{
var battle_enemy_name = global.battle_enemy_name
var game_mode = global.game_mode
if (game_mode == "customs")
{
if (battle_enemy_name == "craniex")
{
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 30), obj_battle_hp_current_enemy)
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 30), obj_battle_hp_max_enemy)
}
else if (battle_enemy_name == "ms mettaton")
{
instance_create((obj_dialogue_box_battle.x + 366), (obj_dialogue_box_battle.y + 30), obj_battle_hp_current_enemy)
instance_create((obj_dialogue_box_battle.x + 366), (obj_dialogue_box_battle.y + 30), obj_battle_hp_max_enemy)
}
}
else if (game_mode == "yellow")
{
if (battle_enemy_name == "froggit intro" || battle_enemy_name == "flier solo" || battle_enemy_name == "penilla solo" || battle_enemy_name == "rorrim solo" || battle_enemy_name == "decibat" || battle_enemy_name == "dalv" || battle_enemy_name == "martlet pacifist" || battle_enemy_name == "martlet genocide" || battle_enemy_name == "cactony solo" || battle_enemy_name == "bowll solo" || battle_enemy_name == "dummy training pacifist" || battle_enemy_name == "flower girls")
{
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 30), obj_battle_hp_current_enemy)
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 30), obj_battle_hp_max_enemy)
}
else if (battle_enemy_name == "flier penilla duo")
{
if (global.enemy_dead == false && global.enemy_spared == false)
{
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 30), obj_battle_hp_current_enemy)
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 30), obj_battle_hp_max_enemy)
}
if (global.enemy_dead_2 == false && global.enemy_spared_2 == false)
{
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 62), obj_battle_hp_current_enemy_2)
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 62), obj_battle_hp_max_enemy_2)
}
}
else if (battle_enemy_name == "flier trio" || battle_enemy_name == "trihecta separated")
{
if (global.enemy_dead == false && global.enemy_spared == false)
{
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 30), obj_battle_hp_current_enemy)
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 30), obj_battle_hp_max_enemy)
}
if (global.enemy_dead_2 == false && global.enemy_spared_2 == false)
{
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 62), obj_battle_hp_current_enemy_2)
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 62), obj_battle_hp_max_enemy_2)
}
if (global.enemy_dead_3 == false && global.enemy_spared_3 == false)
{
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 94), obj_battle_hp_current_enemy_3)
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 94), obj_battle_hp_max_enemy_3)
}
}
else if (battle_enemy_name == "sweet corn solo" || battle_enemy_name == "crispy scroll solo" || battle_enemy_name == "micro froggit" || battle_enemy_name == "macro froggit" || battle_enemy_name == "insomnitot solo" || battle_enemy_name == "know cone solo" || battle_enemy_name == "trihecta together" || battle_enemy_name == "el bailador" || battle_enemy_name == "slither solo" || battle_enemy_name == "frostermit solo" || battle_enemy_name == "dunebud solo" || battle_enemy_name == "tellyvis")
{
instance_create((obj_dialogue_box_battle.x + 366), (obj_dialogue_box_battle.y + 30), obj_battle_hp_current_enemy)
instance_create((obj_dialogue_box_battle.x + 366), (obj_dialogue_box_battle.y + 30), obj_battle_hp_max_enemy)
}
else if (battle_enemy_name == "sweet corn duo" || battle_enemy_name == "sweet corn penilla duo" || battle_enemy_name == "crispy scroll penilla duo" || battle_enemy_name == "insomnitot duo" || battle_enemy_name == "know cone insomnitot duo" || battle_enemy_name == "frostermit know cone duo" || battle_enemy_name == "dunebud duo")
{
if (global.enemy_dead == false && global.enemy_spared == false)
{
instance_create((obj_dialogue_box_battle.x + 366), (obj_dialogue_box_battle.y + 30), obj_battle_hp_current_enemy)
instance_create((obj_dialogue_box_battle.x + 366), (obj_dialogue_box_battle.y + 30), obj_battle_hp_max_enemy)
}
if (global.enemy_dead_2 == false && global.enemy_spared_2 == false)
{
instance_create((obj_dialogue_box_battle.x + 366), (obj_dialogue_box_battle.y + 62), obj_battle_hp_current_enemy_2)
instance_create((obj_dialogue_box_battle.x + 366), (obj_dialogue_box_battle.y + 62), obj_battle_hp_max_enemy_2)
}
}
}
} () //gml_Script_scr_battle_core_directory_hp_displacements |
2 |
{ |
3 |
var battle_enemy_name = global.battle_enemy_name |
4 |
var game_mode = global.game_mode |
5 |
if (game_mode == "customs") |
6 |
{ |
7 |
if (battle_enemy_name == "craniex") |
8 |
{ |
9 |
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 30), obj_battle_hp_current_enemy) |
10 |
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 30), obj_battle_hp_max_enemy) |
11 |
} |
12 |
else if (battle_enemy_name == "ms mettaton") |
13 |
{ |
14 |
instance_create((obj_dialogue_box_battle.x + 366), (obj_dialogue_box_battle.y + 30), obj_battle_hp_current_enemy) |
15 |
instance_create((obj_dialogue_box_battle.x + 366), (obj_dialogue_box_battle.y + 30), obj_battle_hp_max_enemy) |
16 |
} |
17 |
} |
18 |
else if (game_mode == "yellow") |
19 |
{ |
20 |
if (battle_enemy_name == "froggit intro" || battle_enemy_name == "flier solo" || battle_enemy_name == "penilla solo" || battle_enemy_name == "rorrim solo" || battle_enemy_name == "decibat" || battle_enemy_name == "dalv" || battle_enemy_name == "martlet pacifist" || battle_enemy_name == "martlet genocide" || battle_enemy_name == "cactony solo" || battle_enemy_name == "bowll solo" || battle_enemy_name == "dummy training pacifist" || battle_enemy_name == "flower girls") |
21 |
{ |
22 |
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 30), obj_battle_hp_current_enemy) |
23 |
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 30), obj_battle_hp_max_enemy) |
24 |
} |
25 |
else if (battle_enemy_name == "flier penilla duo") |
26 |
{ |
27 |
if (global.enemy_dead == false && global.enemy_spared == false) |
28 |
{ |
29 |
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 30), obj_battle_hp_current_enemy) |
30 |
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 30), obj_battle_hp_max_enemy) |
31 |
} |
32 |
if (global.enemy_dead_2 == false && global.enemy_spared_2 == false) |
33 |
{ |
34 |
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 62), obj_battle_hp_current_enemy_2) |
35 |
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 62), obj_battle_hp_max_enemy_2) |
36 |
} |
37 |
} |
38 |
else if (battle_enemy_name == "flier trio" || battle_enemy_name == "trihecta separated") |
39 |
{ |
40 |
if (global.enemy_dead == false && global.enemy_spared == false) |
41 |
{ |
42 |
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 30), obj_battle_hp_current_enemy) |
43 |
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 30), obj_battle_hp_max_enemy) |
44 |
} |
45 |
if (global.enemy_dead_2 == false && global.enemy_spared_2 == false) |
46 |
{ |
47 |
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 62), obj_battle_hp_current_enemy_2) |
48 |
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 62), obj_battle_hp_max_enemy_2) |
49 |
} |
50 |
if (global.enemy_dead_3 == false && global.enemy_spared_3 == false) |
51 |
{ |
52 |
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 94), obj_battle_hp_current_enemy_3) |
53 |
instance_create((obj_dialogue_box_battle.x + 238), (obj_dialogue_box_battle.y + 94), obj_battle_hp_max_enemy_3) |
54 |
} |
55 |
} |
56 |
else if (battle_enemy_name == "sweet corn solo" || battle_enemy_name == "crispy scroll solo" || battle_enemy_name == "micro froggit" || battle_enemy_name == "macro froggit" || battle_enemy_name == "insomnitot solo" || battle_enemy_name == "know cone solo" || battle_enemy_name == "trihecta together" || battle_enemy_name == "el bailador" || battle_enemy_name == "slither solo" || battle_enemy_name == "frostermit solo" || battle_enemy_name == "dunebud solo" || battle_enemy_name == "tellyvis") |
57 |
{ |
58 |
instance_create((obj_dialogue_box_battle.x + 366), (obj_dialogue_box_battle.y + 30), obj_battle_hp_current_enemy) |
59 |
instance_create((obj_dialogue_box_battle.x + 366), (obj_dialogue_box_battle.y + 30), obj_battle_hp_max_enemy) |
60 |
} |
61 |
else if (battle_enemy_name == "sweet corn duo" || battle_enemy_name == "sweet corn penilla duo" || battle_enemy_name == "crispy scroll penilla duo" || battle_enemy_name == "insomnitot duo" || battle_enemy_name == "know cone insomnitot duo" || battle_enemy_name == "frostermit know cone duo" || battle_enemy_name == "dunebud duo") |
62 |
{ |
63 |
if (global.enemy_dead == false && global.enemy_spared == false) |
64 |
{ |
65 |
instance_create((obj_dialogue_box_battle.x + 366), (obj_dialogue_box_battle.y + 30), obj_battle_hp_current_enemy) |
66 |
instance_create((obj_dialogue_box_battle.x + 366), (obj_dialogue_box_battle.y + 30), obj_battle_hp_max_enemy) |
67 |
} |
68 |
if (global.enemy_dead_2 == false && global.enemy_spared_2 == false) |
69 |
{ |
70 |
instance_create((obj_dialogue_box_battle.x + 366), (obj_dialogue_box_battle.y + 62), obj_battle_hp_current_enemy_2) |
71 |
instance_create((obj_dialogue_box_battle.x + 366), (obj_dialogue_box_battle.y + 62), obj_battle_hp_max_enemy_2) |
72 |
} |
73 |
} |
74 |
} |
75 |
} |