1 |
function scr_dialogue_battle_action_selected_action_3_decibatscr_dialogue_battle_action_selected_action_3_decibatfunction scr_dialogue_battle_action_selected_action_3_decibat() //gml_Script_scr_dialogue_battle_action_selected_action_3_decibat
{
var action_3_selected_count = global.action_3_selected_count
if (global.enemy_low_hp == true)
{
random_number = irandom_range(0, 1)
if (random_number == 0)
{
message[0] = "* Decibat seems to have given up# hope."
global.last_action_selected = "Action 1 Low HP"
global.last_action_selected_2 = "Nothing"
global.last_action_selected_3 = "Nothing"
}
else if (random_number == 1)
{
message[0] = "* Decibat is in too much pain to# care."
global.last_action_selected = "Action 1 Low HP"
global.last_action_selected_2 = "Nothing"
global.last_action_selected_3 = "Nothing"
}
}
else if (global.enemy_sparing == true)
{
message[0] = "* You move towards Decibat#* He lands happily on your# shoulder."
global.last_action_selected = "Action 3 Sparing"
global.last_action_selected_2 = "Nothing"
global.last_action_selected_3 = "Nothing"
}
else
{
message[0] = "* You shout and jump around# trying to scare Decibat away.#* He isn't pleased."
global.last_action_selected = "Action 3 Message 0"
global.last_action_selected_2 = "Nothing"
global.last_action_selected_3 = "Nothing"
}
} () //gml_Script_scr_dialogue_battle_action_selected_action_3_decibat |
2 |
{ |
3 |
var action_3_selected_count = global.action_3_selected_count |
4 |
if (global.enemy_low_hp == true) |
5 |
{ |
6 |
random_number = irandom_range(0, 1) |
7 |
if (random_number == 0) |
8 |
{ |
9 |
message[0] = "* Decibat seems to have given up# hope." |
10 |
global.last_action_selected = "Action 1 Low HP" |
11 |
global.last_action_selected_2 = "Nothing" |
12 |
global.last_action_selected_3 = "Nothing" |
13 |
} |
14 |
else if (random_number == 1) |
15 |
{ |
16 |
message[0] = "* Decibat is in too much pain to# care." |
17 |
global.last_action_selected = "Action 1 Low HP" |
18 |
global.last_action_selected_2 = "Nothing" |
19 |
global.last_action_selected_3 = "Nothing" |
20 |
} |
21 |
} |
22 |
else if (global.enemy_sparing == true) |
23 |
{ |
24 |
message[0] = "* You move towards Decibat#* He lands happily on your# shoulder." |
25 |
global.last_action_selected = "Action 3 Sparing" |
26 |
global.last_action_selected_2 = "Nothing" |
27 |
global.last_action_selected_3 = "Nothing" |
28 |
} |
29 |
else |
30 |
{ |
31 |
message[0] = "* You shout and jump around# trying to scare Decibat away.#* He isn't pleased." |
32 |
global.last_action_selected = "Action 3 Message 0" |
33 |
global.last_action_selected_2 = "Nothing" |
34 |
global.last_action_selected_3 = "Nothing" |
35 |
} |
36 |
} |