1 |
function scr_mettaton_voicescr_mettaton_voicefunction scr_mettaton_voice() //gml_Script_scr_mettaton_voice
{
var mettaton_voice_count = global.mettaton_voice_count
if (mettaton_voice_count == 1)
{
audio_stop_sound(snd_talk_mettaton_1)
audio_play_sound(snd_talk_mettaton_1, 20, false)
}
else if (mettaton_voice_count == 3)
{
audio_stop_sound(snd_talk_mettaton_2)
audio_play_sound(snd_talk_mettaton_2, 20, false)
}
else if (mettaton_voice_count == 5)
{
audio_stop_sound(snd_talk_mettaton_3)
audio_play_sound(snd_talk_mettaton_3, 20, false)
}
else if (mettaton_voice_count == 7)
{
audio_stop_sound(snd_talk_mettaton_4)
audio_play_sound(snd_talk_mettaton_4, 20, false)
}
else if (mettaton_voice_count == 9)
{
audio_stop_sound(snd_talk_mettaton_5)
audio_play_sound(snd_talk_mettaton_5, 20, false)
}
else if (mettaton_voice_count == 11)
{
audio_stop_sound(snd_talk_mettaton_6)
audio_play_sound(snd_talk_mettaton_6, 20, false)
}
else if (mettaton_voice_count == 13)
{
audio_stop_sound(snd_talk_mettaton_7)
audio_play_sound(snd_talk_mettaton_7, 20, false)
}
else if (mettaton_voice_count == 15)
{
audio_stop_sound(snd_talk_mettaton_8)
audio_play_sound(snd_talk_mettaton_8, 20, false)
}
else if (mettaton_voice_count == 17)
{
audio_stop_sound(snd_talk_mettaton_9)
audio_play_sound(snd_talk_mettaton_9, 20, false)
}
global.mettaton_voice_count += 1
if (global.mettaton_voice_count > 18)
global.mettaton_voice_count = 1
} () //gml_Script_scr_mettaton_voice |
2 |
{ |
3 |
var mettaton_voice_count = global.mettaton_voice_count |
4 |
if (mettaton_voice_count == 1) |
5 |
{ |
6 |
audio_stop_sound(snd_talk_mettaton_1) |
7 |
audio_play_sound(snd_talk_mettaton_1, 20, false) |
8 |
} |
9 |
else if (mettaton_voice_count == 3) |
10 |
{ |
11 |
audio_stop_sound(snd_talk_mettaton_2) |
12 |
audio_play_sound(snd_talk_mettaton_2, 20, false) |
13 |
} |
14 |
else if (mettaton_voice_count == 5) |
15 |
{ |
16 |
audio_stop_sound(snd_talk_mettaton_3) |
17 |
audio_play_sound(snd_talk_mettaton_3, 20, false) |
18 |
} |
19 |
else if (mettaton_voice_count == 7) |
20 |
{ |
21 |
audio_stop_sound(snd_talk_mettaton_4) |
22 |
audio_play_sound(snd_talk_mettaton_4, 20, false) |
23 |
} |
24 |
else if (mettaton_voice_count == 9) |
25 |
{ |
26 |
audio_stop_sound(snd_talk_mettaton_5) |
27 |
audio_play_sound(snd_talk_mettaton_5, 20, false) |
28 |
} |
29 |
else if (mettaton_voice_count == 11) |
30 |
{ |
31 |
audio_stop_sound(snd_talk_mettaton_6) |
32 |
audio_play_sound(snd_talk_mettaton_6, 20, false) |
33 |
} |
34 |
else if (mettaton_voice_count == 13) |
35 |
{ |
36 |
audio_stop_sound(snd_talk_mettaton_7) |
37 |
audio_play_sound(snd_talk_mettaton_7, 20, false) |
38 |
} |
39 |
else if (mettaton_voice_count == 15) |
40 |
{ |
41 |
audio_stop_sound(snd_talk_mettaton_8) |
42 |
audio_play_sound(snd_talk_mettaton_8, 20, false) |
43 |
} |
44 |
else if (mettaton_voice_count == 17) |
45 |
{ |
46 |
audio_stop_sound(snd_talk_mettaton_9) |
47 |
audio_play_sound(snd_talk_mettaton_9, 20, false) |
48 |
} |
49 |
global.mettaton_voice_count += 1 |
50 |
if (global.mettaton_voice_count > 18) |
51 |
global.mettaton_voice_count = 1 |
52 |
} |