1 |
function scr_recreate_heart_battle_menu_text_cerobascr_recreate_heart_battle_menu_text_cerobafunction scr_recreate_heart_battle_menu_text_ceroba() //gml_Script_scr_recreate_heart_battle_menu_text_ceroba
{
var last_text_move_select = global.last_text_move_select
if (text_deadlock_1 == true)
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), text_deadlock_contents_1)
else if (last_text_move_select == 0)
{
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_intro)
text_deadlock_contents_1 = 3004
text_deadlock_1 = true
}
else
{
switch global.hotland_flag[2]
{
case 0:
var random_text_move_select = irandom_range(1, 8)
default:
random_text_move_select = irandom_range(1, 5)
}
switch random_text_move_select
{
case 1:
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_1)
break
case 2:
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_2)
break
case 3:
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_3)
break
case 4:
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_4)
break
case 5:
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_5)
break
case 6:
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_6)
break
case 7:
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_7)
break
case 8:
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_8)
break
}
text_deadlock_contents_1 = 3020
text_deadlock_1 = true
}
} () //gml_Script_scr_recreate_heart_battle_menu_text_ceroba |
2 |
{ |
3 |
var last_text_move_select = global.last_text_move_select |
4 |
if (text_deadlock_1 == true) |
5 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), text_deadlock_contents_1) |
6 |
else if (last_text_move_select == 0) |
7 |
{ |
8 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_intro) |
9 |
text_deadlock_contents_1 = 3004 |
10 |
text_deadlock_1 = true |
11 |
} |
12 |
else |
13 |
{ |
14 |
switch global.hotland_flag[2] |
15 |
{ |
16 |
case 0: |
17 |
var random_text_move_select = irandom_range(1, 8) |
18 |
default: |
19 |
random_text_move_select = irandom_range(1, 5) |
20 |
} |
21 |
|
22 |
switch random_text_move_select |
23 |
{ |
24 |
case 1: |
25 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_1) |
26 |
break |
27 |
case 2: |
28 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_2) |
29 |
break |
30 |
case 3: |
31 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_3) |
32 |
break |
33 |
case 4: |
34 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_4) |
35 |
break |
36 |
case 5: |
37 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_5) |
38 |
break |
39 |
case 6: |
40 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_6) |
41 |
break |
42 |
case 7: |
43 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_7) |
44 |
break |
45 |
case 8: |
46 |
instance_create((obj_dialogue_box_battle.x + 20), (obj_dialogue_box_battle.x + 20), obj_dialogue_battle_move_select_8) |
47 |
break |
48 |
} |
49 |
|
50 |
text_deadlock_contents_1 = 3020 |
51 |
text_deadlock_1 = true |
52 |
} |
53 |
} |