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
Expected ;
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#1
Expected ;

Ok, i give up, WHAT THE HELL IS WRONG WITH THIS SCRIPT, I thinks that im missing a ; somewhere, BUT I SWEAR IM NOT. Unless im blind...



FATAL ERROR: Could not load script file 'custom_stories/Outskirts/maps/Intro/Intro.hps'!
main (15, 77) : ERR : Expected ';'




void OnStart()
{
FadeOut(0.0f);
AddTimer("Fader", 1.0f, "Refade");
AddUseItemCallback("", "Lab", "LabDoor", "OpenLabDoor", true);
SetEntityPlayerLookAtCallback("Boo", "TableScare", true);
AddEntityCollideCallback("Player", "LockBehind", "LockBehind", true, 1);
AddUseItemCallback("", "StudyRoom", "StudyDoor", "OpenStudyDoor", true);
AddUseItemCallback("", "StudyRoom", "StudyDoor2", "LockStudyDoor", true);
AddEntityCollideCallback("Player", "ActivateOtisAnyway", "ActivateOtisAnyway", true, 1);
AddEntityCollideCallback("Player", "CheckOnPatient", "CheckOnPatient", true, 1);
SetEntityConnectionStateChangeCallback("lever", "func_shelf");
PlayMusic("09_amb_safe.ogg", false, 0.8, 2, 0, true);
AddEntityCollideCallback("Player", "StartMislead", "MisleadPlayer", true, 1);
AddEntityCollideCallback("Player", "StopMislead", "StraightenPlayer", true), 1);
AddEntityCollideCallback("Player", "HopefulCollide", "SpawnStayHere", true, 1);
SetEntityPlayerInteractCallback("NoGoingBack", "TellPlayerNoGoingBack", false);
}

void SpawnStayHere(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("CharlesComeBack", true);
}

void TellPlayerNoGoingBack(string &in asEntity)
{
SetMessage("Thoughts", "NoGoingBackMate", 3);
}

void StraightenPlayer(string &in asParent, string &in asChild, int alState)
{
StopMusic(1, 0);
AddTimer("CatchABreathItsNotReal", 2, "ContinueStraighten");
}

void ContinueStraighten(string &in asTimer)
{
PlayMusic("01_amb_darkness.ogg", true, 0.8, 2, 0, true);
}

void MisleadPlayer(string &in asParent, string &in asChild, int alState)
{
StopMusic(1, 0);
AddTimer("NewMusic", 2, "ContinueMusic");
}

void ContinueMusic(string &in asTimer)
{
PlayMusic("dan_suitor.ogg", false, 0.9, 1, 0, false);
}

void Refade(string &in asTimer)
{
FadeIn(4.0f);
}

void func_shelf(string &in asEntity, int alState)
{
if (alState == 1)
{
SetMoveObjectState("shelf",1.0f);
PlaySoundAtEntity("", "quest_completed.snt", "shelf_move_1", 0, false);
return;
}
}


void CheckOnPatient(string &in asParent, string &in asChild, int alState)
{
SetMessage("Thoughts", "CheckOnPatient", 6.0f);
}

void ActivateOtisAnyway(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Otis", false);
SetEntityActive("Otis2", true);
AddEnemyPatrolNode("Otis2", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("Otis2", "PathNodeArea_3", 10, "");
}

void LockStudyDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("StudyDoor2", true, true);
RemoveItem("StudyRoom");
SetEntityActive("Otis", false);
SetEntityActive("Otis2", true);
AddEnemyPatrolNode("Otis2", "PathNodeArea_2", 2, "");
}

void LockBehind(string &in asParent, string &in asChild, int alState)
{
SetMessage("Thoughts", "LockBehind", 6.0f);
SetEntityActive("StudyDoor", false);
SetEntityActive("StudyDoor2", true);
SetSwingDoorClosed("StudyDoor2", false, false);
}

void OpenLabDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("LabDoor", false, true);
RemoveItem("Lab");
}

void OpenStudyDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("StudyDoor", false, true);
}

void TableScare(string &in asEntity, int alState)
{
SetMessage("Thoughts", "Shit", 3.0f);
GiveSanityDamage(10, true);
AddTimer("", 2.0f, "ActivateOtis");
PlaySoundAtEntity("", "react_scare.snt", "Player", 0, false);
}

void ActivateOtis(string &in asTimer)
{
SetEntityActive("Otis", true);
AddEnemyPatrolNode("Otis", "PathNodeArea_1", 2, "");
StartPlayerLookAt("castle_1", 20.0f, 20.0f, "");
AddTimer("", 2.0f, "StopLook");
}

void StopLook(string &in asTimer)
{
StopPlayerLookAt();
}

[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
(This post was last modified: 01-29-2012, 08:53 AM by Tripication.)
01-29-2012, 08:27 AM
Find


Messages In This Thread
Expected ; - by Tripication - 01-29-2012, 08:27 AM
RE: Expected ; - by flamez3 - 01-29-2012, 08:47 AM
RE: Expected ; - by Tripication - 01-29-2012, 08:49 AM



Users browsing this thread: 2 Guest(s)