Annihilation Announcer
Posted: 05 Nov 2017, 10:40
05/11/2017
Hi all, i need help with announcer in game, i explain the problem after the strings:
Void PlaySound(Text soundName, Integer variant){
SoundLayerFirst.ManialinkPage = """""";
if(soundName == "cd"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... ant}}}.ogg"/>
</manialink>""";
}
if(soundName == "30sec"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... ds/30s.ogg"/>
</manialink>""";
}
if(soundName == "excellent"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... ellent.ogg"/>
</manialink>""";
}
if(soundName == "play"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... 21Play.ogg"/>
</manialink>""";
}
if(soundName == "lost"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... s/lost.ogg"/> </manialink>""";
}
if(soundName == "win"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... ds/win.ogg"/> </manialink>""";
}
if(soundName == "newRoundIn"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... wRound.ogg"/> </manialink>""";
}
if(soundName == "nextMap"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... ionOut.ogg"/> </manialink>""";
}
}
Void DoKillStreakAnnounce(){
SoundLayerSecond.ManialinkPage = """""";
if(KillStreak == 1){
SoundLayerSecond.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... e_Kill.ogg"/> </manialink>""";
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Double Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
} else if(KillStreak == 2){
SoundLayerSecond.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... tiKill.ogg"/> </manialink>""";
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Multi Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
} else if(KillStreak == 3){
SoundLayerSecond.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... gaKill.ogg"/> </manialink>""";
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Mega Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
} else if(KillStreak == 4){
SoundLayerSecond.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... raKill.ogg"/> </manialink>""";
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Ultra Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
} else if(KillStreak > 5){
SoundLayerSecond.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... Kill_F.ogg"/> </manialink>""";
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Monster Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
}
}
Void TimerSound(){
if((EndTime - Now) == 30000){
PlaySound("30sec", -1);
}
if((EndTime - Now) == 10000){
PlaySound("cd", 10);
}
if((EndTime - Now) == 9000){
PlaySound("cd", 9);
}
if((EndTime - Now) == 8000){
PlaySound("cd", 8);
}
if((EndTime - Now) == 7000){
PlaySound("cd", 7);
}
if((EndTime - Now) == 6000){
PlaySound("cd", 6);
}
if((EndTime - Now) == 5000){
PlaySound("cd", 5);
}
if((EndTime - Now) == 4000){
PlaySound("cd", 4);
}
if((EndTime - Now) == 3000){
PlaySound("cd", 3);
}
if((EndTime - Now) == 2000){
PlaySound("cd", 2);
}
if((EndTime - Now) == 1000){
PlaySound("cd", 1);
}
}
I always heard these "voices" and now i can't hear these.... I tried to check on dropbox but nothing found, so i tried to ask at my friend to play this mode on his pc and these works.
So, why on my pc they don't work?
And if i want create new sounds, how can i do?
I have already some files in ogg in a new folder, i can upload on dropbox or google drive, but when i have the link, where place it in the script? And the files, need to be placed in some folder of the game?
06/11/2017
Hey guys, today i have changed manialink version="2" with manialink version="3" but it doesn't work again, i tried to change the entire command but... nothing. Please help me, or if is possible have the correct strings that work.... If need the entire script i can post link where found it, ty very much
Hi all, i need help with announcer in game, i explain the problem after the strings:
Void PlaySound(Text soundName, Integer variant){
SoundLayerFirst.ManialinkPage = """""";
if(soundName == "cd"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... ant}}}.ogg"/>
</manialink>""";
}
if(soundName == "30sec"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... ds/30s.ogg"/>
</manialink>""";
}
if(soundName == "excellent"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... ellent.ogg"/>
</manialink>""";
}
if(soundName == "play"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... 21Play.ogg"/>
</manialink>""";
}
if(soundName == "lost"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... s/lost.ogg"/> </manialink>""";
}
if(soundName == "win"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... ds/win.ogg"/> </manialink>""";
}
if(soundName == "newRoundIn"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... wRound.ogg"/> </manialink>""";
}
if(soundName == "nextMap"){
SoundLayerFirst.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... ionOut.ogg"/> </manialink>""";
}
}
Void DoKillStreakAnnounce(){
SoundLayerSecond.ManialinkPage = """""";
if(KillStreak == 1){
SoundLayerSecond.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... e_Kill.ogg"/> </manialink>""";
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Double Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
} else if(KillStreak == 2){
SoundLayerSecond.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... tiKill.ogg"/> </manialink>""";
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Multi Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
} else if(KillStreak == 3){
SoundLayerSecond.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... gaKill.ogg"/> </manialink>""";
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Mega Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
} else if(KillStreak == 4){
SoundLayerSecond.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... raKill.ogg"/> </manialink>""";
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Ultra Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
} else if(KillStreak > 5){
SoundLayerSecond.ManialinkPage = """<manialink version="2">
<audio looping="0" hidden="1" play="1" data="https://dl.dropboxusercontent.com/u/427 ... Kill_F.ogg"/> </manialink>""";
foreach(Player in Players){
declare UI <=> UIManager.GetUI(Player);
UI.SendNotice(TextLib::Compose(_("$f00Monster Kill!")), CUIConfig::ENoticeLevel::Default, Null, CUIConfig::EAvatarVariant::Default, CUIConfig::EUISound::Silence, 0);
}
}
}
Void TimerSound(){
if((EndTime - Now) == 30000){
PlaySound("30sec", -1);
}
if((EndTime - Now) == 10000){
PlaySound("cd", 10);
}
if((EndTime - Now) == 9000){
PlaySound("cd", 9);
}
if((EndTime - Now) == 8000){
PlaySound("cd", 8);
}
if((EndTime - Now) == 7000){
PlaySound("cd", 7);
}
if((EndTime - Now) == 6000){
PlaySound("cd", 6);
}
if((EndTime - Now) == 5000){
PlaySound("cd", 5);
}
if((EndTime - Now) == 4000){
PlaySound("cd", 4);
}
if((EndTime - Now) == 3000){
PlaySound("cd", 3);
}
if((EndTime - Now) == 2000){
PlaySound("cd", 2);
}
if((EndTime - Now) == 1000){
PlaySound("cd", 1);
}
}
I always heard these "voices" and now i can't hear these.... I tried to check on dropbox but nothing found, so i tried to ask at my friend to play this mode on his pc and these works.
So, why on my pc they don't work?
And if i want create new sounds, how can i do?
I have already some files in ogg in a new folder, i can upload on dropbox or google drive, but when i have the link, where place it in the script? And the files, need to be placed in some folder of the game?
06/11/2017
Hey guys, today i have changed manialink version="2" with manialink version="3" but it doesn't work again, i tried to change the entire command but... nothing. Please help me, or if is possible have the correct strings that work.... If need the entire script i can post link where found it, ty very much