Frictional Games Forum (read-only)
Script Help! - 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: Script Help! (/thread-10333.html)



Script Help! - HplGeek - 09-15-2011

Hi! Big Grin

Need help with a script.
I want a Credit roll to start once the Game starts up.
Need this for my intro.

Have been searching for a while in the main amnesia>redits>Maps
But never found such script. And no Credits category in the .lang file.

Maybe this is too much to ask for,
but i need a Credits Scipt for the .Hps file.
And the Category in the .Lang file. As i am not sure whats needed in the .Lang file i need it too.

Thanks for taking your time reading this Tongue



RE: Script Help! - Obliviator27 - 09-15-2011

Code:
void StartCredits(string& asMusic, bool abLoopMusic, string& asTextCat, string& asTextEntry, int alEndNum);
   Starts the end credits screen.    asMusic - the music to play (including .ogg)
  abLoopMusic - determines whether the music should loop
  asTextCat - the category to be used in the .lang file (must be “Ending”)
  asTextEntry - the entry in the .lang file (must be “MainCredits”)
  alEndNum - Amnesia has 3 different endings and displays a code  at the bottom. Determines which code is displayed. 0-2 will display  codes, any other integer will not.

http://wiki.frictionalgames.com/hpl2/amnesia/script_functions
^ That link there is your holy bible of script functions. It tells you basically all you need to know. Smile




RE: Script Help! - HplGeek - 09-15-2011

(09-15-2011, 02:36 PM)Obliviator27 Wrote:
Code:
void StartCredits(string& asMusic, bool abLoopMusic, string& asTextCat, string& asTextEntry, int alEndNum);
   Starts the end credits screen.    asMusic - the music to play (including .ogg)
  abLoopMusic - determines whether the music should loop
  asTextCat - the category to be used in the .lang file (must be “Ending”)
  asTextEntry - the entry in the .lang file (must be “MainCredits”)
  alEndNum - Amnesia has 3 different endings and displays a code  at the bottom. Determines which code is displayed. 0-2 will display  codes, any other integer will not.

http://wiki.frictionalgames.com/hpl2/amnesia/script_functions
^ That link there is your holy bible of script functions. It tells you basically all you need to know. Smile
Thanks Alot Big Grin


RE: Script Help! - Your Computer - 09-15-2011

I'd recommend to use your own credits system for the beginning of the game.