Frictional Games Forum (read-only)
[SOLVED] Finishing Game? - 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: [SOLVED] Finishing Game? (/thread-6419.html)



[SOLVED] Finishing Game? - Linus Ă…gren - 01-29-2011

Well, if you want your game to end at a certain point, and making your own credits come, how do you script that? Smile


RE: Finishing Game? - rmdashrf - 01-29-2011

Code:
// Game
void  StartCredits(string& asMusic, bool abLoopMusic, string& asTextCat, string& asTextEntry, int alEndNum);

In your extra_english.lang file you can do something like
Code:
<CATEGORY NAME="Misc">
<Entry Name="Credits">Credits go here</Entry>
</CATEGORY>

Then when you call StartCredits, use "Misc" for asTextCat and "Credits" for asTextEntry

Check out the Orb Chamber map for reference.