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
Need help on my custom story!
TerrorsEnd Offline
Junior Member

Posts: 22
Threads: 4
Joined: Jun 2012
Reputation: 0
#9
RE: Need help on my custom story!

(06-26-2012, 04:49 AM)Damascus Wrote: Missing a quotation mark in CompleteQuest. Also keep in mind that "Unexpected end of file" will always specify the last line in the script, so it's no help in finding where the actual error is.

////////////////////////////
// Run when entering map
void OnEnter()
{
AddEntityCollideCallback("Player", "Breakout_Quest_Area", "GetBreakoutQuest", true, 1);
AddUseItemCallback("", "Monsterdoorkey_1", "Monsterdoor", "UsedKeyOnDoor", true);

AddQuest("namequest", "NameQuest");

CompleteQuest("namequest", "NameQuest");

AddEntityCollideCallback("Player", "scr_monster_spawn_1", "SpawnEnemy1", true, 1);

}

void SpawnEnemy1(string &in asParent, string &in asChild, int alState);
{
SetEntityActive("Enemy1", true);
AddEnemyPatrolNode("Enemy1", "PathNodeArea 1", 0.9r,"");
AddEnemyPatrolNode("Enemy1", "PathNodeArea_2", 30.0t,"");
AddEnemyPatrolNode("Enemy1", "PathNodeArea_3", 0.0r,"");
AddEnemyPatrolNode("Enemy1", "PathNodeArea_4", 30.0t,"");
}

void MyFunc(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Monsterdoor", false, true);
PlaySoundAtEntity("", "unlock_door", "monsterdoor", 0, false);
RemoveItem("Monsterdoor_key1");
}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}
This quotation mark helped but now I get this error: 17,1 : ERR : Unexpected token '{'

Which is this one:
void SpawnEnemy1(string &in asParent, string &in asChild, int alState);
{
06-26-2012, 09:48 AM
Website Find


Messages In This Thread
Need help on my custom story! - by TerrorsEnd - 06-26-2012, 01:34 AM
RE: Need help on my custom story! - by TerrorsEnd - 06-26-2012, 01:48 AM
RE: Need help on my custom story! - by TerrorsEnd - 06-26-2012, 02:27 AM
RE: Need help on my custom story! - by TerrorsEnd - 06-26-2012, 02:37 AM
RE: Need help on my custom story! - by Damascus - 06-26-2012, 04:49 AM
RE: Need help on my custom story! - by TerrorsEnd - 06-26-2012, 09:48 AM
RE: Need help on my custom story! - by TerrorsEnd - 06-26-2012, 10:52 AM
RE: Need help on my custom story! - by TerrorsEnd - 06-26-2012, 01:00 PM



Users browsing this thread: 1 Guest(s)