The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Script Help It just doesn't work! <-[SOLVED] 1 more thing...[SOLVED]
Zjurc Offline
Junior Member

Posts: 43
Threads: 8
Joined: Jan 2012
Reputation: 0
#1
It just doesn't work! <-[SOLVED] 1 more thing...[SOLVED]

I'm at the edge of my nerve system now because I am JUST ABOUT to finish my custom story and I have 4 script areas left.
3 of them is to display a message (to close the plot, of course) and the last 1 is the credits area.


I have set them up and everything is correct
(otherwise the game would display errors and the map wont open entirely) and etc.

Soooo what's the problem?

They. Simply. Refuse. To work.

Here's the HPS (its not a complete hps, of course. just the 4 areas):

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "TruthOne", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_2", "TruthTwo", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_3", "TruthThree", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_4", "credits", true, 1);
}

void TruthOne(string &in asEntity, int alState)
{
SetMessage("Truth", "One", 0);
SetPlayerRunSpeedMul(0.1);
StopSound("01_amb_darkness.ogg", 3);
}

void TruthTwo(string &in asEntity, int alState)
{
SetMessage("Truth", "Two", 0);
PlayMusic("01_paper_self.ogg", true, 1.0, 0, 0, false);
}

void TruthThree(string &in asEntity, int alState)
{
SetMessage("Truth", "Three", 0);
}

void credits(string &in asEntity, int alState)
{
FadeOut(0.1);
StartCredits("ending.ogg", true, "Ending", "MainCredits", 0);
}

Any ideas on why aren't they working?

PS: the 'ending.ogg' is in my CustomStoryName>music file. I guess it will work?

Thanks in advance :]
(This post was last modified: 02-11-2012, 08:03 PM by Zjurc.)
02-11-2012, 03:41 PM
Find


Messages In This Thread
It just doesn't work! <-[SOLVED] 1 more thing...[SOLVED] - by Zjurc - 02-11-2012, 03:41 PM
RE: It just doesn't work! - by Your Computer - 02-11-2012, 03:48 PM
RE: It just doesn't work! - by flamez3 - 02-11-2012, 03:58 PM
RE: It just doesn't work! - by Zjurc - 02-11-2012, 04:23 PM
RE: It just doesn't work! - by flamez3 - 02-11-2012, 04:26 PM
RE: It just doesn't work! - by Zjurc - 02-11-2012, 04:28 PM
RE: It just doesn't work! - by Zjurc - 02-11-2012, 07:14 PM



Users browsing this thread: 1 Guest(s)