Frictional Games Forum (read-only)
Subtitles for .snt files - 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: Subtitles for .snt files (/thread-13616.html)



Subtitles for .snt files - Ardoetia - 02-26-2012

I want to make subtitles on the bottom of the screen with subtitles to a .snt file.


I have looked alittle, but as my deadline is soon, I would love if someone helped me with this quick.


RE: Subtitles for .snt files - SilentStriker - 02-27-2012

I think you need to make a flashback for that



RE: Subtitles for .snt files - Lihas - 02-27-2012

You wouldn't be needing .snt files, just use AddEffectVoice (Search the Engine Scripts section in HPL Wiki). There is a syntax, which decides the entity to play the file at (Player, closet, grunt, Alexander, etc). It would really save time, when making dialogue. Or you could be boring and use SetMessage. Either way, I'm with AddEffectVoice. That's how the dialogue in the main game is made. The only sound file you'll be needing is the .ogg file.


RE: Subtitles for .snt files - Ardoetia - 02-27-2012

And yeah, how to I make boxes explode?


RE: Subtitles for .snt files - Lihas - 02-27-2012

Well, you need to choose the breakable box (container >> wood_box02_breakable.ent) and make a script, and add SetPropHealth function. Example:

void FUNCTION_NAME(string &in asParent, string &in asChild, int alState)

{

SetPropHealth("BOX", 0.0f);
GiveSanityDamage(20.0f, true);
PlayGuiSound("react_scare2.ogg", 1.0f);

}

Replace FUNCTION_NAME to your own function (Note; The script above is triggered when player enters a certain area.)

Replace BOX with your own box name.

That's pretty much it.


RE: Subtitles for .snt files - Ardoetia - 02-27-2012

Typical that the only wrong was that the boxes was the wrong type..