(07-09-2015, 09:25 AM)Rahmerh Wrote: Hey!
I'm still far from done with my custom story, but I was wondering about doing something fun with the credits. I was thinking about having some easter eggs/collectibles in the game. Would it be possible to have something like this in the credits:
"Potatoes found: 3/5"
And if they find 4, it'd be "4/5".
I know the credits are in the extra_english.lang, so you probably can't reach it, I was just wondering if there's a trick for it.
Yeah, unfortunately because it's in the extra_english.lang file, you can't edit that since whatever is written in there is predetermined and more or less "read only".
But you might be able to get around it, say, doing something with global variables. I don't work with them, so I can't tell you how to set them up if there's a special way to do so, but I could see this working:
void BeginCredits(string &in asParent, string &in asChild, int alState)
{
StartCredits("credit_music.ogg", true, "Ending", "Credits_"+GetGlobalVarInt("potato_count"), 3);
}
Looking at StartCredits:
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
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.
You can see that if you copy pasted your credits a few times over, you could probably make a few Credits entries with the Entry Name being Credits_0 (don't forget this one), Credits_1, Credits_2, etc, making your changes.
With the Global Variable, using the +GetGlobalVarInt("potato_count"), you would simply need to keep track of how many potatoes the character has picked up. I don't know how specifically to set up global.hps, but you would set "potato_count" to be 0, and each time a potato is picked up, you would add one to the global variable.
Keep in mind, I have never tested this, but I could see it working :o
Quote:Also, a question about something else.
I want to have some violin music from the 1800s in my custom story. Can I just download the music and put it in? I don't think I have to credit the author, since he's been dead for 200 years... Can I just use it?
General Copyright Law states that you cannot use someone's intellectual property, that is, something someone has created or owns fully, if they are still alive. Furthermore, you cannot use their work until 100 years past their death date.
Since you stated that the music was from the 1800s, as long as the artist died sometime before 1915, I believe you should be okay to use it. However, be sure to observe any copyright laws present in your country as they may require you to credit the source of any work which you may have not made yourself.
Keep in mind that while it should be okay to use, Let's Player's on YouTube which may potentially record their experiences with your Custom Story may run into issues when using such work. While they're responsible for addressing it, if complaints become heavy, re-releasing the story with the song removed may be required.