Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
(SOLVED) StartCredits script confusion.
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: StartCredits script confusion.

The Wiki Wrote:asMusic - the music to play (including .ogg)
abLoopMusic - determines whether the music should loop
asTextCat - the category to be used in the .lang file
asTextEntry - the entry in the .lang file
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.

asMusic is the music you want to hear during the end credits. It can be anything as long as it is in a .ogg format and is somewhere, but it helps enormously to be inside your custom stories folder.

abLoopMusic is whether you want the music to loop. True = Yes. False = No.

asTextCat is a <Category Name="CATEGORY"> reference to the extra_english.lang file. Since it is a reference, the Category Name (whatever is in quotation marks) should go here.

asTextEntry is a <Entry Name="ENTRY"> reference to the extra_english.lang file. This is the entry or text within the category. This should be where your credits are.

alEndNum, just make it 3.

So code would be:
Spoiler below!
PHP Code: (Select All)
void OnLeave()     //Click on a Level Door to execute
{
StartCredits("music_file.ogg"true"Category""Entry"3);



And that would work greatly if the extra_english.lang file looked like:
<LANGUAGE>
<CATEGORY Name="Category">
<Entry Name="Entry">Thanks for playing my demo![br][br]Credits.[br]</Entry>
</CATEGORY>
</LANGUAGE>

You may have to change the above code to suit your extra_english.lang in terms of the Category and Entry.

Edit: Also, I remember seeing your code a while ago. You do not need StartDemoEnd();. That was more for Frictional Games rather than a Custom Story. You can try working with it, but it is not needed.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 01-04-2015, 01:44 AM by Romulator.)
01-04-2015, 01:41 AM
Find


Messages In This Thread
RE: StartCredits script confusion. - by Romulator - 01-04-2015, 01:41 AM
RE: StartCredits script confusion. - by G510s - 01-04-2015, 08:05 AM
RE: StartCredits script confusion. - by Romulator - 01-04-2015, 08:31 AM
RE: StartCredits script confusion. - by DnALANGE - 01-04-2015, 07:06 PM
RE: StartCredits script confusion. - by G510s - 01-05-2015, 06:46 AM



Users browsing this thread: 1 Guest(s)