1 |
function scr_dialogue_battle_action_selected_action_2_insomnitot_ascr_dialogue_battle_action_selected_action_2_insomnitot_afunction scr_dialogue_battle_action_selected_action_2_insomnitot_a()
{
var action_2_selected_count = global.action_2_selected_count;
if (global.enemy_low_hp == true)
{
message[0] = "* You inform Insomnitot that it's# time for bed.";
global.last_action_selected = "Action 2 Low HP";
global.last_action_selected_2 = "Nothing";
global.last_action_selected_3 = "Nothing";
}
else if (global.enemy_sparing == true)
{
message[0] = "* You list the health benefits of# brushing your teeth.#* Insomnitot can't hear you.";
global.last_action_selected = "Action 2 Sparing";
global.last_action_selected_2 = "Nothing";
global.last_action_selected_3 = "Nothing";
}
else
{
random_number = irandom_range(0, 1);
if (random_number == 0)
{
message[0] = "* You inform Insomnitot of the# dangers of sleep deprivation.#* It ignores you.";
global.last_action_selected = "Action 2 Message 0";
global.last_action_selected_2 = "Nothing";
global.last_action_selected_3 = "Nothing";
}
else if (random_number == 1)
{
message[0] = "* You inform Insomnitot of the# benefits of a good night's sleep.#* It ignores you.";
global.last_action_selected = "Action 2 Message 0";
global.last_action_selected_2 = "Nothing";
global.last_action_selected_3 = "Nothing";
}
}
} () |
2 |
{ |
3 |
var action_2_selected_count = global.action_2_selected_count; |
4 |
if (global.enemy_low_hp == true) |
5 |
{ |
6 |
message[0] = "* You inform Insomnitot that it's# time for bed."; |
7 |
global.last_action_selected = "Action 2 Low HP"; |
8 |
global.last_action_selected_2 = "Nothing"; |
9 |
global.last_action_selected_3 = "Nothing"; |
10 |
} |
11 |
else if (global.enemy_sparing == true) |
12 |
{ |
13 |
message[0] = "* You list the health benefits of# brushing your teeth.#* Insomnitot can't hear you."; |
14 |
global.last_action_selected = "Action 2 Sparing"; |
15 |
global.last_action_selected_2 = "Nothing"; |
16 |
global.last_action_selected_3 = "Nothing"; |
17 |
} |
18 |
else |
19 |
{ |
20 |
random_number = irandom_range(0, 1); |
21 |
if (random_number == 0) |
22 |
{ |
23 |
message[0] = "* You inform Insomnitot of the# dangers of sleep deprivation.#* It ignores you."; |
24 |
global.last_action_selected = "Action 2 Message 0"; |
25 |
global.last_action_selected_2 = "Nothing"; |
26 |
global.last_action_selected_3 = "Nothing"; |
27 |
} |
28 |
else if (random_number == 1) |
29 |
{ |
30 |
message[0] = "* You inform Insomnitot of the# benefits of a good night's sleep.#* It ignores you."; |
31 |
global.last_action_selected = "Action 2 Message 0"; |
32 |
global.last_action_selected_2 = "Nothing"; |
33 |
global.last_action_selected_3 = "Nothing"; |
34 |
} |
35 |
} |
36 |
} |