Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ending a custom story?
Author Message
Dizturbed Offline
Member

Posts: 160
Joined: Jun 2011
Reputation: 0
Post: #1
Ending a custom story?

How do i end a custom story? i really want to know.. Confused

-Dizturbed

07-22-2011 09:14 PM
Find all posts by this user Quote this message in a reply
Rapture Offline
Posting Freak

Posts: 1,009
Joined: May 2011
Reputation: 28
Post: #2
RE: Ending a custom story?

(07-22-2011 09:14 PM)Dizturbed Wrote:  How do i end a custom story? i really want to know.. Confused

-Dizturbed
Well I copied this off another person's map and tweaked it for myself. But it works.

Make a Script area. Call it ENDGAME for now.

Put this somewhere in your code.
void ENDGAME(string &in asParent, string &in asChild, int alState)
{
    FadeOut(3);
    SetPlayerActive(false);    
    AddTimer("Timer", 6, "ENDGAME2");
}

void ENDGAME2(string &in asTimer)
{
    StartCredits("credits", false, "Credits", "Yippie", 3);
}

Now go to your .lang

Put this near the bottem, but above the </LANGUAGE>
    <CATEGORY Name="Credits">
        <Entry Name="Yippie">+Nightmare+[br][br][br]*Created by:[br]Rapture[br][br][br]*Testing and Feedback:[br]Friends[br]Family[br][br][br]Thank you very much for playing this! Even though its my first map and its just purely for testing purposes!</Entry>
     </CATEGORY>

Just change the last text near the bottem. I hope it helps, tell me if I messed up and its not working.
(This post was last modified: 07-22-2011 11:54 PM by Rapture.)
07-22-2011 11:53 PM
Find all posts by this user Quote this message in a reply
Dizturbed Offline
Member

Posts: 160
Joined: Jun 2011
Reputation: 0
Post: #3
RE: Ending a custom story?

I know how to do all of that, but i need it to just go to the startmenu, without the credits..

07-23-2011 12:00 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)