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


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom story ending help
Author Message
TheDavenia Offline
Member

Posts: 223
Joined: Jun 2011
Reputation: 0
Post: #1
Custom story ending help

Hey guys,
I have made a demo of my custom story.
Still going to add some custom voices and notes to the demo and then its finished!
But i need help with the ending.
How do i make it that if i run into an area the game ends and the credits come?

Thanks,
TheDavenia

Current Project: Nightmare's End(Project Director, Scripter, boss >:D)
06-26-2011 09:22 PM
Find all posts by this user Quote this message in a reply
KikoKuruma Offline
Junior Member

Posts: 23
Joined: Jun 2011
Reputation: 0
Post: #2
RE: Custom story ending help

First you have to set up the script area you want
Then you have to create the callback
then you just use the start credits function

Example:
{
AddEntityCollideCallback("Player", "End_Area", "Endgame", True, 1);
}

Endgame(string &in asParent, string &in asChild, int alState)
{
StartCredits("music file here", true, "text category in .lang file", "Entry in langfile", int alEndNum)
}
thats what the script should look like, but you have to set up the lang file in a certain way.
asTextCat - the category to be used in the .lang file (must be “Ending”)
asTextEntry - the entry in the .lang file (must be “MainCredits”)
06-26-2011 09:37 PM
Find all posts by this user Quote this message in a reply
TheDavenia Offline
Member

Posts: 223
Joined: Jun 2011
Reputation: 0
Post: #3
RE: Custom story ending help

Bump
(Need it real quick xD)
(06-26-2011 09:37 PM)KikoKuruma Wrote:  First you have to set up the script area you want
Then you have to create the callback
then you just use the start credits function

Example:
{
AddEntityCollideCallback("Player", "End_Area", "Endgame", True, 1);
}

Endgame(string &in asParent, string &in asChild, int alState)
{
StartCredits("music file here", true, "text category in .lang file", "Entry in langfile", int alEndNum)
}
thats what the script should look like, but you have to set up the lang file in a certain way.
asTextCat - the category to be used in the .lang file (must be “Ending”)
asTextEntry - the entry in the .lang file (must be “MainCredits”)

Thanks
(06-26-2011 09:37 PM)KikoKuruma Wrote:  First you have to set up the script area you want
Then you have to create the callback
then you just use the start credits function

Example:
{
AddEntityCollideCallback("Player", "End_Area", "Endgame", True, 1);
}

Endgame(string &in asParent, string &in asChild, int alState)
{
StartCredits("music file here", true, "text category in .lang file", "Entry in langfile", int alEndNum)
}
thats what the script should look like, but you have to set up the lang file in a certain way.
asTextCat - the category to be used in the .lang file (must be “Ending”)
asTextEntry - the entry in the .lang file (must be “MainCredits”)

Could you help me with that over teamviewer or something?

Current Project: Nightmare's End(Project Director, Scripter, boss >:D)
(This post was last modified: 06-26-2011 10:08 PM by TheDavenia.)
06-26-2011 09:45 PM
Find all posts by this user Quote this message in a reply
KikoKuruma Offline
Junior Member

Posts: 23
Joined: Jun 2011
Reputation: 0
Post: #4
RE: Custom story ending help

(06-26-2011 09:45 PM)TheDavenia Wrote:  Bump
(Need it real quick xD)
(06-26-2011 09:37 PM)KikoKuruma Wrote:  First you have to set up the script area you want
Then you have to create the callback
then you just use the start credits function

Example:
{
AddEntityCollideCallback("Player", "End_Area", "Endgame", True, 1);
}

Endgame(string &in asParent, string &in asChild, int alState)
{
StartCredits("music file here", true, "text category in .lang file", "Entry in langfile", int alEndNum)
}
thats what the script should look like, but you have to set up the lang file in a certain way.
asTextCat - the category to be used in the .lang file (must be “Ending”)
asTextEntry - the entry in the .lang file (must be “MainCredits”)

Thanks
(06-26-2011 09:37 PM)KikoKuruma Wrote:  First you have to set up the script area you want
Then you have to create the callback
then you just use the start credits function

Example:
{
AddEntityCollideCallback("Player", "End_Area", "Endgame", True, 1);
}

Endgame(string &in asParent, string &in asChild, int alState)
{
StartCredits("music file here", true, "text category in .lang file", "Entry in langfile", int alEndNum)
}
thats what the script should look like, but you have to set up the lang file in a certain way.
asTextCat - the category to be used in the .lang file (must be “Ending”)
asTextEntry - the entry in the .lang file (must be “MainCredits”)

Could you help me with that over teamviewer or something?

Post your script here, and i'll be happy to help you!
06-26-2011 10:26 PM
Find all posts by this user Quote this message in a reply
TheDavenia Offline
Member

Posts: 223
Joined: Jun 2011
Reputation: 0
Post: #5
RE: Custom story ending help

(06-26-2011 10:26 PM)KikoKuruma Wrote:  
(06-26-2011 09:45 PM)TheDavenia Wrote:  Bump
(Need it real quick xD)
(06-26-2011 09:37 PM)KikoKuruma Wrote:  First you have to set up the script area you want
Then you have to create the callback
then you just use the start credits function

Example:
{
AddEntityCollideCallback("Player", "End_Area", "Endgame", True, 1);
}

Endgame(string &in asParent, string &in asChild, int alState)
{
StartCredits("music file here", true, "text category in .lang file", "Entry in langfile", int alEndNum)
}
thats what the script should look like, but you have to set up the lang file in a certain way.
asTextCat - the category to be used in the .lang file (must be “Ending”)
asTextEntry - the entry in the .lang file (must be “MainCredits”)

Thanks
(06-26-2011 09:37 PM)KikoKuruma Wrote:  First you have to set up the script area you want
Then you have to create the callback
then you just use the start credits function

Example:
{
AddEntityCollideCallback("Player", "End_Area", "Endgame", True, 1);
}

Endgame(string &in asParent, string &in asChild, int alState)
{
StartCredits("music file here", true, "text category in .lang file", "Entry in langfile", int alEndNum)
}
thats what the script should look like, but you have to set up the lang file in a certain way.
asTextCat - the category to be used in the .lang file (must be “Ending”)
asTextEntry - the entry in the .lang file (must be “MainCredits”)

Could you help me with that over teamviewer or something?

Post your script here, and i'll be happy to help you!

I will send u a PM with the link
(06-26-2011 10:26 PM)KikoKuruma Wrote:  
(06-26-2011 09:45 PM)TheDavenia Wrote:  Bump
(Need it real quick xD)
(06-26-2011 09:37 PM)KikoKuruma Wrote:  First you have to set up the script area you want
Then you have to create the callback
then you just use the start credits function

Example:
{
AddEntityCollideCallback("Player", "End_Area", "Endgame", True, 1);
}

Endgame(string &in asParent, string &in asChild, int alState)
{
StartCredits("music file here", true, "text category in .lang file", "Entry in langfile", int alEndNum)
}
thats what the script should look like, but you have to set up the lang file in a certain way.
asTextCat - the category to be used in the .lang file (must be “Ending”)
asTextEntry - the entry in the .lang file (must be “MainCredits”)

Thanks
(06-26-2011 09:37 PM)KikoKuruma Wrote:  First you have to set up the script area you want
Then you have to create the callback
then you just use the start credits function

Example:
{
AddEntityCollideCallback("Player", "End_Area", "Endgame", True, 1);
}

Endgame(string &in asParent, string &in asChild, int alState)
{
StartCredits("music file here", true, "text category in .lang file", "Entry in langfile", int alEndNum)
}
thats what the script should look like, but you have to set up the lang file in a certain way.
asTextCat - the category to be used in the .lang file (must be “Ending”)
asTextEntry - the entry in the .lang file (must be “MainCredits”)

Could you help me with that over teamviewer or something?

Post your script here, and i'll be happy to help you!

u got msn, skype or steam? Its easyer to talk

Current Project: Nightmare's End(Project Director, Scripter, boss >:D)
(This post was last modified: 06-26-2011 11:43 PM by TheDavenia.)
06-26-2011 11:03 PM
Find all posts by this user Quote this message in a reply
Post Reply 




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