Frictional Games Forum (read-only)
emento error - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: emento error (/thread-20731.html)



emento error - wazzUPP11 - 03-14-2013

Hello all and thank you for taking the time to help me with my lame coding skills Tongue, im trying to add a memento and im typing this in my .hps file:

void OnStart()

{
//Gives quest for finding key.
AddQuest("bloodtrail", "Bloodtrail");

//CALLBACKS
AddEntityCollideCallback("Player", "Bloodtrail", "Bloodtrail", true, 1);
AddEntityCollideCallback("Player", "bloodtrailF", "bloodtrailF", true, 1);
}

void Bloodtrail(string &in asParent, string &in asChild, int alState);
void bloodtrailF(string &in asParent, string &in asChild, int alState);

CompleteQuest("bloodtrail", "Bloodtrail");

This into my .lang file:

<LANGUAGE>

<CATEGORY Name="CustomStoryMain">

<Entry Name="Description">For the best experience play at night, alone with headphones.</Entry>

</CATEGORY>

<CATEGORY Name="Journal">


<Entry Name="Quest_Bloodtrail_Text">Follow the sacrificial victims blood trail.</Entry>

</CATEGORY>

</LANGUAGE>

And my two areas set in game to start and end the mementos are Bloodtrail and bloodtrailF. I cant find a solution. Im receiving this error:
FATOL ERROR: Could not load script file
(locaton of my .hps file)
main (15, 15): ERR :Expected identifier.

PLEASE HELP!


RE: Memento error - PutraenusAlivius - 03-14-2013

If you collided with Bloodtrail, the quest starts, but if you collided with bloodtrailF, it ended?


RE: Memento error - Nice - 03-14-2013

i suggest you post questions like this here : http://www.frictionalgames.com/forum/forum-39.html


RE: Memento error - Statyk - 03-14-2013

Moved to Development Support.


RE: Memento error - NaxEla - 03-14-2013

PHP Code:
void OnStart()
{
    
AddEntityCollideCallback("Player""Bloodtrail""FollowQuest"true1);
    
AddEntityCollideCallback("Player""bloodtrailF""FollowQuest"true1);
}

void FollowQuest(string &in asParentstring &in asChildint alState)
{
    if(
asChild == "Bloodtrail")
        
AddQuest("bloodtrail""Bloodtrail");
    else
        
CompleteQuest("bloodtrail""Bloodtrail");