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
emento error
wazzUPP11 Offline
Junior Member

Posts: 3
Threads: 2
Joined: Mar 2013
Reputation: 0
#1
emento error

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!
(This post was last modified: 03-14-2013, 11:08 PM by wazzUPP11.)
03-14-2013, 12:57 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Memento error

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

"Veni, vidi, vici."
"I came, I saw, I conquered."
03-14-2013, 07:10 AM
Find
Nice Offline
Posting Freak

Posts: 3,812
Threads: 37
Joined: Jan 2012
Reputation: 153
#3
RE: Memento error

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


Sorry but we cannot change your avatar as the new avatar you specified is too big. The maximum dimensions are 80x80 (width x height)
03-14-2013, 04:08 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#4
RE: Memento error

Moved to Development Support.
03-14-2013, 06:29 PM
Find
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#5
RE: Memento error

PHP Code: (Select All)
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");


In Ruins [WIP]
03-14-2013, 10:20 PM
Find




Users browsing this thread: 1 Guest(s)