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
Can anyone help me find the Script Error??
danimora2012 Offline
Junior Member

Posts: 47
Threads: 18
Joined: Apr 2012
Reputation: 0
#1
Sad  Can anyone help me find the Script Error??

////////////////////////////
//Run First Time Starting map
void OnStart()
{
AddEntityCollideCallback("Player", "Music_1", "start", true, 1)
}

void start(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "Scary.snt", "Player", 0, false);
}

AddUseItemCallback("", "key_Tomb_1", "Doortodeath_1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("Doortodeath_1", false);
PlaySoundAtEntity("", "unlock_door", "Doortodeath_1", 0.0f, false);
RemoveItem("key_Tomb_1");
AddDebugMessage("Key On Door", false);
}

AddEntityCollideCallback("Player", "Music_1", "start", true, 1)
}


void start(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "Scary.snt", "Player", 0, false);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}

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

}


Im tired of looking and if i mess with it it get's worse...Please...Help me... Sad
09-15-2012, 10:31 AM
Find
EXAWOLT Offline
Member

Posts: 113
Threads: 14
Joined: Apr 2012
Reputation: 3
#2
RE: Can anyone help me find the Script Error??

AddEntityCollideCallback u missed a ";" at the end of some of these

another tip:
When you start the custom-story in amnesia an error report will show up.

It will say something like:
FATAL ERROR
136,6 missing "," and ";"
//or something like that, "136" means that the error is in the 136.th row in your textfile, and ",6" is the letter room 6 (this is just an example)
and "," means that u have missed that letter in that place.

start the map an read where the problem is next time.

simply nuff said




(This post was last modified: 09-15-2012, 03:36 PM by EXAWOLT.)
09-15-2012, 03:34 PM
Find
Kazakarumariou Away
An angry man.

Posts: 283
Threads: 8
Joined: Jul 2012
Reputation: 14
#3
RE: Can anyone help me find the Script Error??

////////////////////////////
//Run First Time Starting map
void OnStart()
{
AddEntityCollideCallback("Player", "Music_1", "start", true, 1);
AddUseItemCallback("", "key_Tomb_1", "Doortodeath_1", "UsedKeyOnDoor", true);
}

void start(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "Scary.snt", "Player", 0, false);
}


void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("Doortodeath_1", false);
PlaySoundAtEntity("", "unlock_door", "Doortodeath_1", 0.0f, false);
RemoveItem("key_Tomb_1");
AddDebugMessage("Key On Door", false);
}


////////////////////////////
// Run when entering map
void OnEnter()
{
}

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

}
09-15-2012, 05:57 PM
Find




Users browsing this thread: 1 Guest(s)