Frictional Games Forum (read-only)
Credits/Ending The Game [Resolved] - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Credits/Ending The Game [Resolved] (/thread-8000.html)



Credits/Ending The Game [Resolved] - WatzUpzPeepz - 05-15-2011

I need it for a demo I'm making and I would like to know how make credits appear and the game finish when the player enters a area Huh
Thanks!


RE: Credits/Ending The Game - triadtimes - 05-15-2011

StartCredits(string& asMusic, bool abLoopMusic, string& asTextCat, string& asTextEntry, int alEndNum);

asMusic - the music to play (including .ogg)
abLoopMusic - determines whether the music should loop
asTextCat - the category to be used in the .lang file (Like <CATEGORY Name = "Credits">)
asTextEntry - the entry in the .lang file (<Entry Name = "Credits">)
alEndNum - Amnesia has 3 different endings and displayed a code at the bottom. Determines which code is displayed (Use -1 if you don't want one)

Example:
In Level Script -
StartCredits("ending_daniel.ogg", false, "Endings", "Credits", -1);

In .lang File -
<CATEGORY Name = "Endings">
<Entry Name = "Credits">CREDITS GO HERE</Entry>
</CATEGORY>