Frictional Games Forum (read-only)
Problem with ending a quest - 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: Problem with ending a quest (/thread-13383.html)



Problem with ending a quest - Thegood - 02-17-2012

I'm trying to get a quest (CampingQuest) to end after it picks up an object (EndQuest1), but whenever I pick up said object, it doesn't end the quest.

void OnStart()
{
SetEntityPlayerInteractCallback("EndQuest1", "EndQuest", false);
}

void OnEnter()
{
}

void OnLeave()
{
}

void EndQuest(string &in asEntity)
{
CompleteQuest("CampingQuest", "CampingQuest");
}

Anyone have any idea what the problem is?



RE: Problem with ending a quest - flamez3 - 02-17-2012

void OnStart()
{
SetEntityPlayerInteractCallback("EndQuest1", "EndQuest", false);
}

void EndQuest(string &in asEntity)
{
CompleteQuest("CampingQuest", "CampingQuest");
}

void OnEnter()
{
}

void OnLeave()
{
}



RE: Problem with ending a quest - Thegood - 02-17-2012

That didn't work.

Nevermind, I finally got it to work through trial and error Tongue



RE: Problem with ending a quest - Ermu - 02-18-2012

Where have you added the Quest if at all? I think, if it's in different .hps file for other map, the current .hps cannot import it from there.


RE: Problem with ending a quest - SilentStriker - 02-18-2012

(02-18-2012, 03:43 PM)Ermu Wrote: Where have you added the Quest if at all? I think, if it's in different .hps file for other map, the current .hps cannot import it from there.
Quests are not writed in .hps it's written in .lang so works over every map as long as you call them in your map Wink