| 1 |
function scr_enemy_timer_attacks_el_bailadorscr_enemy_timer_attacks_el_bailadorfunction scr_enemy_timer_attacks_el_bailador()
{
var enemy_attack = global.enemy_attack;
var charts = [[3.2, 4, 4.8], [1, 1, 1], [3.2, 4, 4.8], [1, 2, 1], [3.2, 3.6, 4.4, 4.8], [1, 2, 1, 0], [3.2, 3.6, 4, 4.8, 5.6, 6.4, 6.8, 7.2, 8], [1, 2, 0, 2, 1, 2, 2, 2, 1], [1.54, 1.94, 2.32, 2.7, 3.09, 3.87, 4.25, 5.03, 5.41, 5.81, 6.19, 6.96, 7.35, 7.74], [1, 2, 0, 1, 2, 1, 2, 1, 2, 0, 1, 0, 2, 1], [1.5, 1.87, 2.25, 2.62, 3, 3.37, 4.12, 4.5, 4.87, 5.62, 6.37, 6.75, 7.12, 7.5], [1, 2, 0, 2, 1, 2, 2, 0, 2, 0, 2, 2, 0, 1], [1.45, 1.81, 2.36, 2.9, 3.18, 3.45, 4, 4.36, 5.09, 5.36, 5.63, 6.72, 7, 7.27], [0, 2, 1, 2, 1, 2, 0, 1, 1, 0, 1, 2, 1, 0], [1.76, 2.82, 3.17, 3.52, 3.7, 3.88, 4.23, 4.58, 5.11, 5.29, 6, 6.35, 6.52, 7.05, 7.76, 8.11, 8.47], [2, 1, 0, 2, 1, 2, 1, 0, 1, 2, 1, 1, 1, 0, 0, 1, 0], [1.37, 1.88, 2.05, 2.57, 2.74, 3.25, 3.42, 3.77, 4.11, 4.45, 4.8, 5.14, 5.48, 6.34, 6.6, 6.85], [1, 0, 1, 2, 1, 1, 0, 2, 1, 1, 0, 1, 0, 1, 1, 0], [1.45, 1.62, 1.94, 2.43, 2.59, 2.91, 3.24, 3.89, 4.21, 4.54, 5.02, 5.18, 5.51, 5.83, 6.64, 6.89, 7.13, 7.94, 8.18, 8.43, 8.75, 9.08], [0, 1, 1, 1, 0, 0, 1, 0, 1, 2, 2, 1, 0, 1, 1, 0, 1, 1, 2, 1, 0, 1], [1.26, 1.73, 2.21, 2.52, 2.76, 3, 3.15, 3.47, 3.78, 4.42, 5.05, 5.21, 5.68, 6, 6.31, 6.47, 6.78, 6.94, 7.57, 7.73, 8.05, 8.21, 8.84, 9.47, 9.94, 10.1], [1, 0, 2, 2, 1, 0, 1, 1, 0, 0, 1, 0, 1, 2, 1, 2, 1, 2, 1, 1, 0, 1, 0, 0, 0, 0], [2.3, 2.7, 3.2, 3.7, 4.2, 4.7, 5.7, 7.2], [1, 1, 1, 1, 0, 2, 0, 0], [3, 4, 5, 6, 7], [2, 1, 0, 1, 2], [4, 5.5, 8], [0, 1, 2]];
if (instance_exists(obj_dialogue_box_battle_transformation_any) && obj_heart_battle_fighting_parent.moveable == true)
{
if (enemy_attack == "El Bailador Song" && !instance_exists(obj_sme_yellow_rhythm_generator))
{
if (global.route != 3)
instance_create(obj_el_bailador_neutral.x, obj_el_bailador_neutral.y, obj_battle_enemy_attack_el_bailador_dance);
else if (global.turns_passed >= 5)
obj_el_bailador_neutral.neutral_sprite = 1450;
else
instance_create(obj_el_bailador_neutral.x, obj_el_bailador_neutral.y, obj_battle_enemy_attack_el_bailador_dance);
instance_create(0, 0, obj_sme_yellow_rhythm_generator);
with (obj_sme_yellow_rhythm_generator)
{
damage_name_1 = "el bailador";
damage_name_2 = "void";
damage_name_3 = "void";
end_script = scr_sme_yellow_rhythm_out_gen_end_script_el_bailador;
alarm_0_script = scr_sme_yellow_rhythm_out_gen_alarm_0_script_el_bailador;
audio_restore = 512;
if (global.turns_passed > 10)
global.turns_passed = 0;
var turns_passed = global.turns_passed;
switch (turns_passed)
{
case 0:
scr_sme_yellow_rhythm_song_data_danza(499, charts[0], charts[1]);
obj_battle_el_bailador_controller.battle_el_bail_event_tutorial = true;
break;
case 1:
scr_sme_yellow_rhythm_song_data_danza(500, charts[2], charts[3]);
break;
case 2:
scr_sme_yellow_rhythm_song_data_danza(501, charts[4], charts[5]);
obj_battle_el_bailador_controller.battle_el_bail_event_tutorial = false;
break;
case 3:
scr_sme_yellow_rhythm_song_data_danza(502, charts[6], charts[7], 1.8);
break;
case 4:
scr_sme_yellow_rhythm_song_data_danza(503, charts[8], charts[9], 1.5);
break;
case 5:
if (global.route != 3)
scr_sme_yellow_rhythm_song_data_danza(504, charts[10], charts[11], 1.4);
else
scr_sme_yellow_rhythm_song_data_danza(123, charts[22], charts[23]);
break;
case 6:
if (global.route != 3)
scr_sme_yellow_rhythm_song_data_danza(505, charts[12], charts[13], 1.4);
else
scr_sme_yellow_rhythm_song_data_danza(123, charts[24], charts[25], 2.5);
break;
case 7:
if (global.route != 3)
scr_sme_yellow_rhythm_song_data_danza(506, charts[14], charts[15], 1.4);
else
scr_sme_yellow_rhythm_song_data_danza(123, charts[26], charts[27], 3.5);
break;
case 8:
scr_sme_yellow_rhythm_song_data_danza(507, charts[16], charts[17], 1.3);
break;
case 9:
scr_sme_yellow_rhythm_song_data_danza(509, charts[18], charts[19], 1.3);
break;
case 10:
audio_restore = 0;
scr_sme_yellow_rhythm_song_data_danza(510, charts[20], charts[21], 1.2);
break;
default:
scr_sme_yellow_rhythm_song_data_danza(499, charts[0], charts[1]);
}
switch (turns_passed)
{
case 0:
case 1:
case 2:
case 3:
with (obj_background_el_bailador_test_yellow)
{
m_sign_modifier = 1;
m_time_elapsed = -1;
time_max = time_max_default;
m_sign_modifier_v = 1;
m_time_elapsed_v = -1;
time_max_v = time_max_v_default;
max_rise_v = max_rise_v_default;
turns_passed = global.turns_passed;
switch (turns_passed)
{
case 0:
interlaced_x = false;
interlaced_y = false;
osc_horizontal = true;
osc_vertical = false;
break;
case 1:
... () |
| 2 |
{ |
| 3 |
var enemy_attack = global.enemy_attack; |
| 4 |
var charts = [[3.2, 4, 4.8], [1, 1, 1], [3.2, 4, 4.8], [1, 2, 1], [3.2, 3.6, 4.4, 4.8], [1, 2, 1, 0], [3.2, 3.6, 4, 4.8, 5.6, 6.4, 6.8, 7.2, 8], [1, 2, 0, 2, 1, 2, 2, 2, 1], [1.54, 1.94, 2.32, 2.7, 3.09, 3.87, 4.25, 5.03, 5.41, 5.81, 6.19, 6.96, 7.35, 7.74], [1, 2, 0, 1, 2, 1, 2, 1, 2, 0, 1, 0, 2, 1], [1.5, 1.87, 2.25, 2.62, 3, 3.37, 4.12, 4.5, 4.87, 5.62, 6.37, 6.75, 7.12, 7.5], [1, 2, 0, 2, 1, 2, 2, 0, 2, 0, 2, 2, 0, 1], [1.45, 1.81, 2.36, 2.9, 3.18, 3.45, 4, 4.36, 5.09, 5.36, 5.63, 6.72, 7, 7.27], [0, 2, 1, 2, 1, 2, 0, 1, 1, 0, 1, 2, 1, 0], [1.76, 2.82, 3.17, 3.52, 3.7, 3.88, 4.23, 4.58, 5.11, 5.29, 6, 6.35, 6.52, 7.05, 7.76, 8.11, 8.47], [2, 1, 0, 2, 1, 2, 1, 0, 1, 2, 1, 1, 1, 0, 0, 1, 0], [1.37, 1.88, 2.05, 2.57, 2.74, 3.25, 3.42, 3.77, 4.11, 4.45, 4.8, 5.14, 5.48, 6.34, 6.6, 6.85], [1, 0, 1, 2, 1, 1, 0, 2, 1, 1, 0, 1, 0, 1, 1, 0], [1.45, 1.62, 1.94, 2.43, 2.59, 2.91, 3.24, 3.89, 4.21, 4.54, 5.02, 5.18, 5.51, 5.83, 6.64, 6.89, 7.13, 7.94, 8.18, 8.43, 8.75, 9.08], [0, 1, 1, 1, 0, 0, 1, 0, 1, 2, 2, 1, 0, 1, 1, 0, 1, 1, 2, 1, 0, 1], [1.26, 1.73, 2.21, 2.52, 2.76, 3, 3.15, 3.47, 3.78, 4.42, 5.05, 5.21, 5.68, 6, 6.31, 6.47, 6.78, 6.94, 7.57, 7.73, 8.05, 8.21, 8.84, 9.47, 9.94, 10.1], [1, 0, 2, 2, 1, 0, 1, 1, 0, 0, 1, 0, 1, 2, 1, 2, 1, 2, 1, 1, 0, 1, 0, 0, 0, 0], [2.3, 2.7, 3.2, 3.7, 4.2, 4.7, 5.7, 7.2], [1, 1, 1, 1, 0, 2, 0, 0], [3, 4, 5, 6, 7], [2, 1, 0, 1, 2], [4, 5.5, 8], [0, 1, 2]]; |
| 5 |
if (instance_exists(obj_dialogue_box_battle_transformation_any) && obj_heart_battle_fighting_parent.moveable == true) |
| 6 |
{ |
| 7 |
if (enemy_attack == "El Bailador Song" && !instance_exists(obj_sme_yellow_rhythm_generator)) |
| 8 |
{ |
| 9 |
if (global.route != 3) |
| 10 |
instance_create(obj_el_bailador_neutral.x, obj_el_bailador_neutral.y, obj_battle_enemy_attack_el_bailador_dance); |
| 11 |
else if (global.turns_passed >= 5) |
| 12 |
obj_el_bailador_neutral.neutral_sprite = 1450; |
| 13 |
else |
| 14 |
instance_create(obj_el_bailador_neutral.x, obj_el_bailador_neutral.y, obj_battle_enemy_attack_el_bailador_dance); |
| 15 |
instance_create(0, 0, obj_sme_yellow_rhythm_generator); |
| 16 |
with (obj_sme_yellow_rhythm_generator) |
| 17 |
{ |
| 18 |
damage_name_1 = "el bailador"; |
| 19 |
damage_name_2 = "void"; |
| 20 |
damage_name_3 = "void"; |
| 21 |
end_script = scr_sme_yellow_rhythm_out_gen_end_script_el_bailador; |
| 22 |
alarm_0_script = scr_sme_yellow_rhythm_out_gen_alarm_0_script_el_bailador; |
| 23 |
audio_restore = 512; |
| 24 |
if (global.turns_passed > 10) |
| 25 |
global.turns_passed = 0; |
| 26 |
var turns_passed = global.turns_passed; |
| 27 |
switch (turns_passed) |
| 28 |
{ |
| 29 |
case 0: |
| 30 |
scr_sme_yellow_rhythm_song_data_danzascr_sme_yellow_rhythm_song_data_danzafunction scr_sme_yellow_rhythm_song_data_danza(arg0 = 499, arg1 = false, arg2 = false, arg3 = 2, arg4 = [520, 517, 514])
{
can_end_script = true;
var sound = array_create(array_length(arg1), 0);
for (var i = 0; i < array_length(sound); i++)
sound[i] = arg4[arg2[i]];
scr_audio_stop_sound(1);
audio_play = arg0;
audio_sound_gain(audio_play, 1, 0);
audio_sound_pitch(audio_play, 1);
audio_play_sound(audio_play, 20, false);
note_1second = 30;
note_speed_denominator = 30 * arg3;
note_speed = note_speed_numerator / note_speed_denominator;
note_current = 0;
note_time = 0;
note_add = 0;
note_total = array_length(arg1);
note_final = false;
if (song_play_ct == 0)
timeline = timeline_add();
else if (!timeline_exists(timeline))
timeline = timeline_add();
else
timeline_clear(timeline);
note_time = (arg1[0] * note_1second) - note_speed_denominator;
note_sarray[0] = sound[0];
note_parray[0] = arg2[0];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
for (var i = 1; i < array_length(arg1); i++)
{
note_add = (arg1[i] - arg1[i - 1]) * note_1second;
note_time += note_add;
note_sarray[i] = sound[i];
note_parray[i] = arg2[i];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
}
timeline_index = timeline;
timeline_loop = false;
timeline_speed = 1;
timeline_position = 0;
timeline_running = true;
song_play_ct += 1;
} (499, charts[0], charts[1]); |
| 31 |
obj_battle_el_bailador_controller.battle_el_bail_event_tutorial = true; |
| 32 |
break; |
| 33 |
case 1: |
| 34 |
scr_sme_yellow_rhythm_song_data_danzascr_sme_yellow_rhythm_song_data_danzafunction scr_sme_yellow_rhythm_song_data_danza(arg0 = 499, arg1 = false, arg2 = false, arg3 = 2, arg4 = [520, 517, 514])
{
can_end_script = true;
var sound = array_create(array_length(arg1), 0);
for (var i = 0; i < array_length(sound); i++)
sound[i] = arg4[arg2[i]];
scr_audio_stop_sound(1);
audio_play = arg0;
audio_sound_gain(audio_play, 1, 0);
audio_sound_pitch(audio_play, 1);
audio_play_sound(audio_play, 20, false);
note_1second = 30;
note_speed_denominator = 30 * arg3;
note_speed = note_speed_numerator / note_speed_denominator;
note_current = 0;
note_time = 0;
note_add = 0;
note_total = array_length(arg1);
note_final = false;
if (song_play_ct == 0)
timeline = timeline_add();
else if (!timeline_exists(timeline))
timeline = timeline_add();
else
timeline_clear(timeline);
note_time = (arg1[0] * note_1second) - note_speed_denominator;
note_sarray[0] = sound[0];
note_parray[0] = arg2[0];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
for (var i = 1; i < array_length(arg1); i++)
{
note_add = (arg1[i] - arg1[i - 1]) * note_1second;
note_time += note_add;
note_sarray[i] = sound[i];
note_parray[i] = arg2[i];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
}
timeline_index = timeline;
timeline_loop = false;
timeline_speed = 1;
timeline_position = 0;
timeline_running = true;
song_play_ct += 1;
} (500, charts[2], charts[3]); |
| 35 |
break; |
| 36 |
case 2: |
| 37 |
scr_sme_yellow_rhythm_song_data_danzascr_sme_yellow_rhythm_song_data_danzafunction scr_sme_yellow_rhythm_song_data_danza(arg0 = 499, arg1 = false, arg2 = false, arg3 = 2, arg4 = [520, 517, 514])
{
can_end_script = true;
var sound = array_create(array_length(arg1), 0);
for (var i = 0; i < array_length(sound); i++)
sound[i] = arg4[arg2[i]];
scr_audio_stop_sound(1);
audio_play = arg0;
audio_sound_gain(audio_play, 1, 0);
audio_sound_pitch(audio_play, 1);
audio_play_sound(audio_play, 20, false);
note_1second = 30;
note_speed_denominator = 30 * arg3;
note_speed = note_speed_numerator / note_speed_denominator;
note_current = 0;
note_time = 0;
note_add = 0;
note_total = array_length(arg1);
note_final = false;
if (song_play_ct == 0)
timeline = timeline_add();
else if (!timeline_exists(timeline))
timeline = timeline_add();
else
timeline_clear(timeline);
note_time = (arg1[0] * note_1second) - note_speed_denominator;
note_sarray[0] = sound[0];
note_parray[0] = arg2[0];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
for (var i = 1; i < array_length(arg1); i++)
{
note_add = (arg1[i] - arg1[i - 1]) * note_1second;
note_time += note_add;
note_sarray[i] = sound[i];
note_parray[i] = arg2[i];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
}
timeline_index = timeline;
timeline_loop = false;
timeline_speed = 1;
timeline_position = 0;
timeline_running = true;
song_play_ct += 1;
} (501, charts[4], charts[5]); |
| 38 |
obj_battle_el_bailador_controller.battle_el_bail_event_tutorial = false; |
| 39 |
break; |
| 40 |
case 3: |
| 41 |
scr_sme_yellow_rhythm_song_data_danzascr_sme_yellow_rhythm_song_data_danzafunction scr_sme_yellow_rhythm_song_data_danza(arg0 = 499, arg1 = false, arg2 = false, arg3 = 2, arg4 = [520, 517, 514])
{
can_end_script = true;
var sound = array_create(array_length(arg1), 0);
for (var i = 0; i < array_length(sound); i++)
sound[i] = arg4[arg2[i]];
scr_audio_stop_sound(1);
audio_play = arg0;
audio_sound_gain(audio_play, 1, 0);
audio_sound_pitch(audio_play, 1);
audio_play_sound(audio_play, 20, false);
note_1second = 30;
note_speed_denominator = 30 * arg3;
note_speed = note_speed_numerator / note_speed_denominator;
note_current = 0;
note_time = 0;
note_add = 0;
note_total = array_length(arg1);
note_final = false;
if (song_play_ct == 0)
timeline = timeline_add();
else if (!timeline_exists(timeline))
timeline = timeline_add();
else
timeline_clear(timeline);
note_time = (arg1[0] * note_1second) - note_speed_denominator;
note_sarray[0] = sound[0];
note_parray[0] = arg2[0];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
for (var i = 1; i < array_length(arg1); i++)
{
note_add = (arg1[i] - arg1[i - 1]) * note_1second;
note_time += note_add;
note_sarray[i] = sound[i];
note_parray[i] = arg2[i];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
}
timeline_index = timeline;
timeline_loop = false;
timeline_speed = 1;
timeline_position = 0;
timeline_running = true;
song_play_ct += 1;
} (502, charts[6], charts[7], 1.8); |
| 42 |
break; |
| 43 |
case 4: |
| 44 |
scr_sme_yellow_rhythm_song_data_danzascr_sme_yellow_rhythm_song_data_danzafunction scr_sme_yellow_rhythm_song_data_danza(arg0 = 499, arg1 = false, arg2 = false, arg3 = 2, arg4 = [520, 517, 514])
{
can_end_script = true;
var sound = array_create(array_length(arg1), 0);
for (var i = 0; i < array_length(sound); i++)
sound[i] = arg4[arg2[i]];
scr_audio_stop_sound(1);
audio_play = arg0;
audio_sound_gain(audio_play, 1, 0);
audio_sound_pitch(audio_play, 1);
audio_play_sound(audio_play, 20, false);
note_1second = 30;
note_speed_denominator = 30 * arg3;
note_speed = note_speed_numerator / note_speed_denominator;
note_current = 0;
note_time = 0;
note_add = 0;
note_total = array_length(arg1);
note_final = false;
if (song_play_ct == 0)
timeline = timeline_add();
else if (!timeline_exists(timeline))
timeline = timeline_add();
else
timeline_clear(timeline);
note_time = (arg1[0] * note_1second) - note_speed_denominator;
note_sarray[0] = sound[0];
note_parray[0] = arg2[0];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
for (var i = 1; i < array_length(arg1); i++)
{
note_add = (arg1[i] - arg1[i - 1]) * note_1second;
note_time += note_add;
note_sarray[i] = sound[i];
note_parray[i] = arg2[i];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
}
timeline_index = timeline;
timeline_loop = false;
timeline_speed = 1;
timeline_position = 0;
timeline_running = true;
song_play_ct += 1;
} (503, charts[8], charts[9], 1.5); |
| 45 |
break; |
| 46 |
case 5: |
| 47 |
if (global.route != 3) |
| 48 |
scr_sme_yellow_rhythm_song_data_danzascr_sme_yellow_rhythm_song_data_danzafunction scr_sme_yellow_rhythm_song_data_danza(arg0 = 499, arg1 = false, arg2 = false, arg3 = 2, arg4 = [520, 517, 514])
{
can_end_script = true;
var sound = array_create(array_length(arg1), 0);
for (var i = 0; i < array_length(sound); i++)
sound[i] = arg4[arg2[i]];
scr_audio_stop_sound(1);
audio_play = arg0;
audio_sound_gain(audio_play, 1, 0);
audio_sound_pitch(audio_play, 1);
audio_play_sound(audio_play, 20, false);
note_1second = 30;
note_speed_denominator = 30 * arg3;
note_speed = note_speed_numerator / note_speed_denominator;
note_current = 0;
note_time = 0;
note_add = 0;
note_total = array_length(arg1);
note_final = false;
if (song_play_ct == 0)
timeline = timeline_add();
else if (!timeline_exists(timeline))
timeline = timeline_add();
else
timeline_clear(timeline);
note_time = (arg1[0] * note_1second) - note_speed_denominator;
note_sarray[0] = sound[0];
note_parray[0] = arg2[0];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
for (var i = 1; i < array_length(arg1); i++)
{
note_add = (arg1[i] - arg1[i - 1]) * note_1second;
note_time += note_add;
note_sarray[i] = sound[i];
note_parray[i] = arg2[i];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
}
timeline_index = timeline;
timeline_loop = false;
timeline_speed = 1;
timeline_position = 0;
timeline_running = true;
song_play_ct += 1;
} (504, charts[10], charts[11], 1.4); |
| 49 |
else |
| 50 |
scr_sme_yellow_rhythm_song_data_danzascr_sme_yellow_rhythm_song_data_danzafunction scr_sme_yellow_rhythm_song_data_danza(arg0 = 499, arg1 = false, arg2 = false, arg3 = 2, arg4 = [520, 517, 514])
{
can_end_script = true;
var sound = array_create(array_length(arg1), 0);
for (var i = 0; i < array_length(sound); i++)
sound[i] = arg4[arg2[i]];
scr_audio_stop_sound(1);
audio_play = arg0;
audio_sound_gain(audio_play, 1, 0);
audio_sound_pitch(audio_play, 1);
audio_play_sound(audio_play, 20, false);
note_1second = 30;
note_speed_denominator = 30 * arg3;
note_speed = note_speed_numerator / note_speed_denominator;
note_current = 0;
note_time = 0;
note_add = 0;
note_total = array_length(arg1);
note_final = false;
if (song_play_ct == 0)
timeline = timeline_add();
else if (!timeline_exists(timeline))
timeline = timeline_add();
else
timeline_clear(timeline);
note_time = (arg1[0] * note_1second) - note_speed_denominator;
note_sarray[0] = sound[0];
note_parray[0] = arg2[0];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
for (var i = 1; i < array_length(arg1); i++)
{
note_add = (arg1[i] - arg1[i - 1]) * note_1second;
note_time += note_add;
note_sarray[i] = sound[i];
note_parray[i] = arg2[i];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
}
timeline_index = timeline;
timeline_loop = false;
timeline_speed = 1;
timeline_position = 0;
timeline_running = true;
song_play_ct += 1;
} (123, charts[22], charts[23]); |
| 51 |
break; |
| 52 |
case 6: |
| 53 |
if (global.route != 3) |
| 54 |
scr_sme_yellow_rhythm_song_data_danzascr_sme_yellow_rhythm_song_data_danzafunction scr_sme_yellow_rhythm_song_data_danza(arg0 = 499, arg1 = false, arg2 = false, arg3 = 2, arg4 = [520, 517, 514])
{
can_end_script = true;
var sound = array_create(array_length(arg1), 0);
for (var i = 0; i < array_length(sound); i++)
sound[i] = arg4[arg2[i]];
scr_audio_stop_sound(1);
audio_play = arg0;
audio_sound_gain(audio_play, 1, 0);
audio_sound_pitch(audio_play, 1);
audio_play_sound(audio_play, 20, false);
note_1second = 30;
note_speed_denominator = 30 * arg3;
note_speed = note_speed_numerator / note_speed_denominator;
note_current = 0;
note_time = 0;
note_add = 0;
note_total = array_length(arg1);
note_final = false;
if (song_play_ct == 0)
timeline = timeline_add();
else if (!timeline_exists(timeline))
timeline = timeline_add();
else
timeline_clear(timeline);
note_time = (arg1[0] * note_1second) - note_speed_denominator;
note_sarray[0] = sound[0];
note_parray[0] = arg2[0];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
for (var i = 1; i < array_length(arg1); i++)
{
note_add = (arg1[i] - arg1[i - 1]) * note_1second;
note_time += note_add;
note_sarray[i] = sound[i];
note_parray[i] = arg2[i];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
}
timeline_index = timeline;
timeline_loop = false;
timeline_speed = 1;
timeline_position = 0;
timeline_running = true;
song_play_ct += 1;
} (505, charts[12], charts[13], 1.4); |
| 55 |
else |
| 56 |
scr_sme_yellow_rhythm_song_data_danzascr_sme_yellow_rhythm_song_data_danzafunction scr_sme_yellow_rhythm_song_data_danza(arg0 = 499, arg1 = false, arg2 = false, arg3 = 2, arg4 = [520, 517, 514])
{
can_end_script = true;
var sound = array_create(array_length(arg1), 0);
for (var i = 0; i < array_length(sound); i++)
sound[i] = arg4[arg2[i]];
scr_audio_stop_sound(1);
audio_play = arg0;
audio_sound_gain(audio_play, 1, 0);
audio_sound_pitch(audio_play, 1);
audio_play_sound(audio_play, 20, false);
note_1second = 30;
note_speed_denominator = 30 * arg3;
note_speed = note_speed_numerator / note_speed_denominator;
note_current = 0;
note_time = 0;
note_add = 0;
note_total = array_length(arg1);
note_final = false;
if (song_play_ct == 0)
timeline = timeline_add();
else if (!timeline_exists(timeline))
timeline = timeline_add();
else
timeline_clear(timeline);
note_time = (arg1[0] * note_1second) - note_speed_denominator;
note_sarray[0] = sound[0];
note_parray[0] = arg2[0];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
for (var i = 1; i < array_length(arg1); i++)
{
note_add = (arg1[i] - arg1[i - 1]) * note_1second;
note_time += note_add;
note_sarray[i] = sound[i];
note_parray[i] = arg2[i];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
}
timeline_index = timeline;
timeline_loop = false;
timeline_speed = 1;
timeline_position = 0;
timeline_running = true;
song_play_ct += 1;
} (123, charts[24], charts[25], 2.5); |
| 57 |
break; |
| 58 |
case 7: |
| 59 |
if (global.route != 3) |
| 60 |
scr_sme_yellow_rhythm_song_data_danzascr_sme_yellow_rhythm_song_data_danzafunction scr_sme_yellow_rhythm_song_data_danza(arg0 = 499, arg1 = false, arg2 = false, arg3 = 2, arg4 = [520, 517, 514])
{
can_end_script = true;
var sound = array_create(array_length(arg1), 0);
for (var i = 0; i < array_length(sound); i++)
sound[i] = arg4[arg2[i]];
scr_audio_stop_sound(1);
audio_play = arg0;
audio_sound_gain(audio_play, 1, 0);
audio_sound_pitch(audio_play, 1);
audio_play_sound(audio_play, 20, false);
note_1second = 30;
note_speed_denominator = 30 * arg3;
note_speed = note_speed_numerator / note_speed_denominator;
note_current = 0;
note_time = 0;
note_add = 0;
note_total = array_length(arg1);
note_final = false;
if (song_play_ct == 0)
timeline = timeline_add();
else if (!timeline_exists(timeline))
timeline = timeline_add();
else
timeline_clear(timeline);
note_time = (arg1[0] * note_1second) - note_speed_denominator;
note_sarray[0] = sound[0];
note_parray[0] = arg2[0];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
for (var i = 1; i < array_length(arg1); i++)
{
note_add = (arg1[i] - arg1[i - 1]) * note_1second;
note_time += note_add;
note_sarray[i] = sound[i];
note_parray[i] = arg2[i];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
}
timeline_index = timeline;
timeline_loop = false;
timeline_speed = 1;
timeline_position = 0;
timeline_running = true;
song_play_ct += 1;
} (506, charts[14], charts[15], 1.4); |
| 61 |
else |
| 62 |
scr_sme_yellow_rhythm_song_data_danzascr_sme_yellow_rhythm_song_data_danzafunction scr_sme_yellow_rhythm_song_data_danza(arg0 = 499, arg1 = false, arg2 = false, arg3 = 2, arg4 = [520, 517, 514])
{
can_end_script = true;
var sound = array_create(array_length(arg1), 0);
for (var i = 0; i < array_length(sound); i++)
sound[i] = arg4[arg2[i]];
scr_audio_stop_sound(1);
audio_play = arg0;
audio_sound_gain(audio_play, 1, 0);
audio_sound_pitch(audio_play, 1);
audio_play_sound(audio_play, 20, false);
note_1second = 30;
note_speed_denominator = 30 * arg3;
note_speed = note_speed_numerator / note_speed_denominator;
note_current = 0;
note_time = 0;
note_add = 0;
note_total = array_length(arg1);
note_final = false;
if (song_play_ct == 0)
timeline = timeline_add();
else if (!timeline_exists(timeline))
timeline = timeline_add();
else
timeline_clear(timeline);
note_time = (arg1[0] * note_1second) - note_speed_denominator;
note_sarray[0] = sound[0];
note_parray[0] = arg2[0];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
for (var i = 1; i < array_length(arg1); i++)
{
note_add = (arg1[i] - arg1[i - 1]) * note_1second;
note_time += note_add;
note_sarray[i] = sound[i];
note_parray[i] = arg2[i];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
}
timeline_index = timeline;
timeline_loop = false;
timeline_speed = 1;
timeline_position = 0;
timeline_running = true;
song_play_ct += 1;
} (123, charts[26], charts[27], 3.5); |
| 63 |
break; |
| 64 |
case 8: |
| 65 |
scr_sme_yellow_rhythm_song_data_danzascr_sme_yellow_rhythm_song_data_danzafunction scr_sme_yellow_rhythm_song_data_danza(arg0 = 499, arg1 = false, arg2 = false, arg3 = 2, arg4 = [520, 517, 514])
{
can_end_script = true;
var sound = array_create(array_length(arg1), 0);
for (var i = 0; i < array_length(sound); i++)
sound[i] = arg4[arg2[i]];
scr_audio_stop_sound(1);
audio_play = arg0;
audio_sound_gain(audio_play, 1, 0);
audio_sound_pitch(audio_play, 1);
audio_play_sound(audio_play, 20, false);
note_1second = 30;
note_speed_denominator = 30 * arg3;
note_speed = note_speed_numerator / note_speed_denominator;
note_current = 0;
note_time = 0;
note_add = 0;
note_total = array_length(arg1);
note_final = false;
if (song_play_ct == 0)
timeline = timeline_add();
else if (!timeline_exists(timeline))
timeline = timeline_add();
else
timeline_clear(timeline);
note_time = (arg1[0] * note_1second) - note_speed_denominator;
note_sarray[0] = sound[0];
note_parray[0] = arg2[0];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
for (var i = 1; i < array_length(arg1); i++)
{
note_add = (arg1[i] - arg1[i - 1]) * note_1second;
note_time += note_add;
note_sarray[i] = sound[i];
note_parray[i] = arg2[i];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
}
timeline_index = timeline;
timeline_loop = false;
timeline_speed = 1;
timeline_position = 0;
timeline_running = true;
song_play_ct += 1;
} (507, charts[16], charts[17], 1.3); |
| 66 |
break; |
| 67 |
case 9: |
| 68 |
scr_sme_yellow_rhythm_song_data_danzascr_sme_yellow_rhythm_song_data_danzafunction scr_sme_yellow_rhythm_song_data_danza(arg0 = 499, arg1 = false, arg2 = false, arg3 = 2, arg4 = [520, 517, 514])
{
can_end_script = true;
var sound = array_create(array_length(arg1), 0);
for (var i = 0; i < array_length(sound); i++)
sound[i] = arg4[arg2[i]];
scr_audio_stop_sound(1);
audio_play = arg0;
audio_sound_gain(audio_play, 1, 0);
audio_sound_pitch(audio_play, 1);
audio_play_sound(audio_play, 20, false);
note_1second = 30;
note_speed_denominator = 30 * arg3;
note_speed = note_speed_numerator / note_speed_denominator;
note_current = 0;
note_time = 0;
note_add = 0;
note_total = array_length(arg1);
note_final = false;
if (song_play_ct == 0)
timeline = timeline_add();
else if (!timeline_exists(timeline))
timeline = timeline_add();
else
timeline_clear(timeline);
note_time = (arg1[0] * note_1second) - note_speed_denominator;
note_sarray[0] = sound[0];
note_parray[0] = arg2[0];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
for (var i = 1; i < array_length(arg1); i++)
{
note_add = (arg1[i] - arg1[i - 1]) * note_1second;
note_time += note_add;
note_sarray[i] = sound[i];
note_parray[i] = arg2[i];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
}
timeline_index = timeline;
timeline_loop = false;
timeline_speed = 1;
timeline_position = 0;
timeline_running = true;
song_play_ct += 1;
} (509, charts[18], charts[19], 1.3); |
| 69 |
break; |
| 70 |
case 10: |
| 71 |
audio_restore = 0; |
| 72 |
scr_sme_yellow_rhythm_song_data_danzascr_sme_yellow_rhythm_song_data_danzafunction scr_sme_yellow_rhythm_song_data_danza(arg0 = 499, arg1 = false, arg2 = false, arg3 = 2, arg4 = [520, 517, 514])
{
can_end_script = true;
var sound = array_create(array_length(arg1), 0);
for (var i = 0; i < array_length(sound); i++)
sound[i] = arg4[arg2[i]];
scr_audio_stop_sound(1);
audio_play = arg0;
audio_sound_gain(audio_play, 1, 0);
audio_sound_pitch(audio_play, 1);
audio_play_sound(audio_play, 20, false);
note_1second = 30;
note_speed_denominator = 30 * arg3;
note_speed = note_speed_numerator / note_speed_denominator;
note_current = 0;
note_time = 0;
note_add = 0;
note_total = array_length(arg1);
note_final = false;
if (song_play_ct == 0)
timeline = timeline_add();
else if (!timeline_exists(timeline))
timeline = timeline_add();
else
timeline_clear(timeline);
note_time = (arg1[0] * note_1second) - note_speed_denominator;
note_sarray[0] = sound[0];
note_parray[0] = arg2[0];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
for (var i = 1; i < array_length(arg1); i++)
{
note_add = (arg1[i] - arg1[i - 1]) * note_1second;
note_time += note_add;
note_sarray[i] = sound[i];
note_parray[i] = arg2[i];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
}
timeline_index = timeline;
timeline_loop = false;
timeline_speed = 1;
timeline_position = 0;
timeline_running = true;
song_play_ct += 1;
} (510, charts[20], charts[21], 1.2); |
| 73 |
break; |
| 74 |
default: |
| 75 |
scr_sme_yellow_rhythm_song_data_danzascr_sme_yellow_rhythm_song_data_danzafunction scr_sme_yellow_rhythm_song_data_danza(arg0 = 499, arg1 = false, arg2 = false, arg3 = 2, arg4 = [520, 517, 514])
{
can_end_script = true;
var sound = array_create(array_length(arg1), 0);
for (var i = 0; i < array_length(sound); i++)
sound[i] = arg4[arg2[i]];
scr_audio_stop_sound(1);
audio_play = arg0;
audio_sound_gain(audio_play, 1, 0);
audio_sound_pitch(audio_play, 1);
audio_play_sound(audio_play, 20, false);
note_1second = 30;
note_speed_denominator = 30 * arg3;
note_speed = note_speed_numerator / note_speed_denominator;
note_current = 0;
note_time = 0;
note_add = 0;
note_total = array_length(arg1);
note_final = false;
if (song_play_ct == 0)
timeline = timeline_add();
else if (!timeline_exists(timeline))
timeline = timeline_add();
else
timeline_clear(timeline);
note_time = (arg1[0] * note_1second) - note_speed_denominator;
note_sarray[0] = sound[0];
note_parray[0] = arg2[0];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
for (var i = 1; i < array_length(arg1); i++)
{
note_add = (arg1[i] - arg1[i - 1]) * note_1second;
note_time += note_add;
note_sarray[i] = sound[i];
note_parray[i] = arg2[i];
timeline_moment_add_script(timeline, note_time, scr_sme_yellow_rhythm_create_note);
}
timeline_index = timeline;
timeline_loop = false;
timeline_speed = 1;
timeline_position = 0;
timeline_running = true;
song_play_ct += 1;
} (499, charts[0], charts[1]); |
| 76 |
} |
| 77 |
switch (turns_passed) |
| 78 |
{ |
| 79 |
case 0: |
| 80 |
case 1: |
| 81 |
case 2: |
| 82 |
case 3: |
| 83 |
with (obj_background_el_bailador_test_yellow) |
| 84 |
{ |
| 85 |
m_sign_modifier = 1; |
| 86 |
m_time_elapsed = -1; |
| 87 |
time_max = time_max_default; |
| 88 |
m_sign_modifier_v = 1; |
| 89 |
m_time_elapsed_v = -1; |
| 90 |
time_max_v = time_max_v_default; |
| 91 |
max_rise_v = max_rise_v_default; |
| 92 |
turns_passed = global.turns_passed; |
| 93 |
switch (turns_passed) |
| 94 |
{ |
| 95 |
case 0: |
| 96 |
interlaced_x = false; |
| 97 |
interlaced_y = false; |
| 98 |
osc_horizontal = true; |
| 99 |
osc_vertical = false; |
| 100 |
break; |
| 101 |
case 1: |
| 102 |
interlaced_x = false; |
| 103 |
interlaced_y = false; |
| 104 |
osc_horizontal = false; |
| 105 |
osc_vertical = true; |
| 106 |
break; |
| 107 |
case 2: |
| 108 |
interlaced_x = false; |
| 109 |
interlaced_y = true; |
| 110 |
osc_horizontal = false; |
| 111 |
osc_vertical = true; |
| 112 |
max_rise_v -= 1; |
| 113 |
break; |
| 114 |
case 3: |
| 115 |
interlaced_x = false; |
| 116 |
interlaced_y = false; |
| 117 |
osc_horizontal = true; |
| 118 |
osc_vertical = true; |
| 119 |
break; |
| 120 |
default: |
| 121 |
} |
| 122 |
} |
| 123 |
with (obj_battle_enemy_attack_el_bailador_dance) |
| 124 |
{ |
| 125 |
sign_modifier = 1; |
| 126 |
time_elapsed = 0; |
| 127 |
time_max = time_max_default; |
| 128 |
} |
| 129 |
break; |
| 130 |
case 4: |
| 131 |
case 5: |
| 132 |
case 6: |
| 133 |
with (obj_background_el_bailador_test_yellow) |
| 134 |
{ |
| 135 |
m_sign_modifier = 1; |
| 136 |
m_time_elapsed = -1; |
| 137 |
time_max = floor(time_max_default * 0.75); |
| 138 |
m_sign_modifier_v = 1; |
| 139 |
m_time_elapsed_v = -1; |
| 140 |
time_max_v = floor(time_max_default * 0.75); |
| 141 |
max_rise_v = max_rise_v_default; |
| 142 |
turns_passed = global.turns_passed; |
| 143 |
switch (turns_passed) |
| 144 |
{ |
| 145 |
case 4: |
| 146 |
interlaced_x = false; |
| 147 |
interlaced_y = false; |
| 148 |
osc_horizontal = true; |
| 149 |
osc_vertical = false; |
| 150 |
break; |
| 151 |
case 5: |
| 152 |
interlaced_x = false; |
| 153 |
interlaced_y = false; |
| 154 |
osc_horizontal = false; |
| 155 |
osc_vertical = true; |
| 156 |
break; |
| 157 |
case 6: |
| 158 |
interlaced_x = false; |
| 159 |
interlaced_y = true; |
| 160 |
osc_horizontal = true; |
| 161 |
osc_vertical = true; |
| 162 |
max_rise_v -= 1; |
| 163 |
break; |
| 164 |
default: |
| 165 |
} |
| 166 |
} |
| 167 |
with (obj_battle_enemy_attack_el_bailador_dance) |
| 168 |
{ |
| 169 |
sign_modifier = 1; |
| 170 |
time_elapsed = 0; |
| 171 |
time_max = floor(time_max_default * 0.75); |
| 172 |
} |
| 173 |
break; |
| 174 |
case 7: |
| 175 |
case 8: |
| 176 |
case 9: |
| 177 |
case 10: |
| 178 |
with (obj_background_el_bailador_test_yellow) |
| 179 |
{ |
| 180 |
m_sign_modifier = 1; |
| 181 |
m_time_elapsed = -1; |
| 182 |
time_max = floor(time_max_default * 0.5); |
| 183 |
m_sign_modifier_v = 1; |
| 184 |
m_time_elapsed_v = -1; |
| 185 |
time_max_v = floor(time_max_default * 0.5); |
| 186 |
max_rise_v = max_rise_v_default; |
| 187 |
turns_passed = global.turns_passed; |
| 188 |
switch (turns_passed) |
| 189 |
{ |
| 190 |
case 7: |
| 191 |
interlaced_x = false; |
| 192 |
interlaced_y = false; |
| 193 |
osc_horizontal = true; |
| 194 |
osc_vertical = false; |
| 195 |
break; |
| 196 |
case 8: |
| 197 |
interlaced_x = false; |
| 198 |
interlaced_y = false; |
| 199 |
osc_horizontal = false; |
| 200 |
osc_vertical = true; |
| 201 |
break; |
| 202 |
case 9: |
| 203 |
interlaced_x = false; |
| 204 |
interlaced_y = false; |
| 205 |
osc_horizontal = true; |
| 206 |
osc_vertical = true; |
| 207 |
break; |
| 208 |
case 10: |
| 209 |
interlaced_x = false; |
| 210 |
interlaced_y = true; |
| 211 |
osc_horizontal = true; |
| 212 |
osc_vertical = true; |
| 213 |
max_rise_v -= 1; |
| 214 |
break; |
| 215 |
default: |
| 216 |
} |
| 217 |
} |
| 218 |
with (obj_battle_enemy_attack_el_bailador_dance) |
| 219 |
{ |
| 220 |
sign_modifier = 1; |
| 221 |
time_elapsed = 0; |
| 222 |
time_max = floor(time_max_default * 0.5); |
| 223 |
} |
| 224 |
break; |
| 225 |
default: |
| 226 |
} |
| 227 |
} |
| 228 |
} |
| 229 |
else if (enemy_attack == "Bailador No Attack") |
| 230 |
{ |
| 231 |
with (obj_dialogue_box_battle_transformation_any) |
| 232 |
event_user(0); |
| 233 |
} |
| 234 |
} |
| 235 |
} |