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 Fatal Error
7heDubz Offline
Posting Freak

Posts: 1,329
Threads: 40
Joined: Feb 2013
Reputation: 41
#10
RE: Script Fatal Error

(06-15-2013, 09:27 PM)SystemFail Wrote: I tried that a hour ago. When u said that I tried your settings as same as mine. But i am getting the same error. Really i read the scripting basics for many times.

Did you seriously read and understand everything i just wrote that fast?

take a look at your script again and make sure that EVERY effect has a cause. (of which yours doesnt)

Spoiler below!

void OnStart()
{
AddEntityCollideCallback("Player", "Ahmet_Quest_Area", "GetAhmetQuest", true, 1);
AddEntityCollideCallback("Player", "Ahmet_Complete_Area", "FinishAhmetQuest", true, 1);
}

void GetTheQuest(string &in asParent, string &in asChild, int alState)
{
AddQuest("ahmetquest", "AhmetQuest");
}

void FinishTheQuest(string &in asParent, string &in asChild, int alState)
{
CompleteQuest("ahmetquest", "AhmetQuest");
}

// Move this up and get rid of the brackets to void on start because its just using the key on the door. This is a CAUSE. the effect is in red in the next spoiler. \\

{
AddUseItemCallback("", "TheKey_1", "door_1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door_1", 0, false);
RemoveItem("TheKey_1");
}


Spoiler below!

void OnStart()
{
// this paticular peice here has no effect. its a cause without effect. your effect that this point to would be "void GetAhmetQuest" of which you have non. \\

AddEntityCollideCallback("Player", "Ahmet_Quest_Area", "GetAhmetQuest", true, 1);

// here it happens again. i assume you mean the one in this the code that doesnt have "Ah" in it but programs cant assume \\
AddEntityCollideCallback("Player", "Ahmet_Complete_Area", "FinishAhmetQuest", true, 1);


AddUseItemCallback("", "TheKey_1", "door_1", "UsedKeyOnDoor", true);

}

void GetTheQuest(string &in asParent, string &in asChild, int alState)
{
AddQuest("ahmetquest", "AhmetQuest");
}

void FinishTheQuest(string &in asParent, string &in asChild, int alState)
{
CompleteQuest("ahmetquest", "AhmetQuest");
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door_1", 0, false);
RemoveItem("TheKey_1");
}


(This post was last modified: 06-15-2013, 09:48 PM by 7heDubz.)
06-15-2013, 09:46 PM
Find


Messages In This Thread
Script Fatal Error - by SystemFail - 06-15-2013, 08:09 PM
RE: Script Fatal Error - by 7heDubz - 06-15-2013, 08:17 PM
RE: Script Fatal Error - by SystemFail - 06-15-2013, 08:39 PM
RE: Script Fatal Error - by 7heDubz - 06-15-2013, 08:42 PM
RE: Script Fatal Error - by SystemFail - 06-15-2013, 08:44 PM
RE: Script Fatal Error - by 7heDubz - 06-15-2013, 08:56 PM
RE: Script Fatal Error - by SystemFail - 06-15-2013, 09:05 PM
RE: Script Fatal Error - by 7heDubz - 06-15-2013, 09:20 PM
RE: Script Fatal Error - by SystemFail - 06-15-2013, 09:27 PM
RE: Script Fatal Error - by 7heDubz - 06-15-2013, 09:46 PM
RE: Script Fatal Error - by SystemFail - 06-15-2013, 09:56 PM
RE: Script Fatal Error - by 7heDubz - 06-15-2013, 10:11 PM
RE: Script Fatal Error - by SystemFail - 06-16-2013, 12:09 AM



Users browsing this thread: 1 Guest(s)