Frictional Games Forum (read-only)

Full Version: [SOLVED] Finishing Game?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Well, if you want your game to end at a certain point, and making your own credits come, how do you script that? Smile
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.