Frictional Games Forum (read-only)
SetMessage doesn't work? [solved] - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: SetMessage doesn't work? [solved] (/thread-18876.html)



SetMessage doesn't work? [solved] - rammstein1999 - 10-21-2012

Hello everybody,


I'm working on a custom story (no name yet Tongue), and I wanted to make a text intro,
but if I use SetMessage it doesn't work... Nothing happens, the map just loads, and you can play,
but no message shows and no sound plays...

(Solved: I forgot one Capital letter
Dodgy )

my code is:




void Intro(string &in asTimer)
{
if(asTimer == "fade_in") {
FadeIn(3);
}

if(asTimer == "intro01") {
SetMessage("Intro_Text", "line01", 13);
}

if(asTimer == "intrsnd") {
PlayGuiSound("enabled01", 2);
}

if(asTimer == "intro02") {
SetMessage("Intro_Text", "line02", 8);
}
if(asTimer == "intro03") {
SetMessage("Intro_Text", "line03", 4);
}
if(asTimer == "intro04") {
SetMessage("Intro_Text", "line04", 6);
}
if(asTimer == "intro05") {
SetMessage("Intro_Text", "line05", 5);
}
}
void OnStart(){
//-- Intro --//
FadeOut(0);
AddTimer("fade_in", 00, "intro");
AddTimer("intro01", 03, "intro");
AddTimer("intrsnd", 16, "intro");
AddTimer("intro02", 20, "intro");
AddTimer("intro03", 29, "intro");
AddTimer("intro04", 34, "intro"); AddTimer("intro05", 41, "intro");
}

Does Anybody know what's wrong, or what I should do?


RE: SetMessage doesn't work? - Statyk - 10-21-2012

Can you post your extra_english.lang?


RE: SetMessage doesn't work? - Robby - 10-21-2012

It's solved, as I see.


RE: SetMessage doesn't work? - Statyk - 10-21-2012

That should kind of be in big letters. Or you know, changing the topic prefix to [SOLVED] is always nice.


RE: SetMessage doesn't work? - FlawlessHappiness - 10-21-2012

You could also take a blank sound file, and then just write subtitles