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
aqfitz622 Offline
Junior Member

Posts: 23
Threads: 9
Joined: Nov 2011
Reputation: 0
#1
Script Help

I am continuing my story and this happened

FATAL ERROR: Could not load script file 'custom_stories/test/maps//Applications/Amnesia.app/Contents/Resources/custom_stories/test/maps/Hallways.hps'!
main (13, 1) : ERR : Unexpected token '{'
main (24, 1) : ERR : Unexpected token '{'

here is my Hallways.HPS File

void OnStart()
{
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
}
void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0, "");
}

{
AddUseItemCallback("", "key1", "Mansion_6", "FUNCTION", true);
}

void FUNCTION(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Mansion_6", false, true);
PlaySoundAtEntity("", "unlock_door", "door1", 0, false);
RemoveItem("key1");
}

{
AddUseItemCallback("", "key2", "castle_6", "FUNCTION", true);
}

void FUNCTION(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("castle_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door1", 0, false);
RemoveItem("key2");
}
12-10-2011, 10:25 PM
Find


Messages In This Thread
Script Help - by aqfitz622 - 12-10-2011, 10:25 PM
RE: Script Help - by flamez3 - 12-11-2011, 12:01 AM



Users browsing this thread: 1 Guest(s)