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
Problem with ending a quest
Thegood Offline
Junior Member

Posts: 20
Threads: 6
Joined: Feb 2012
Reputation: 0
#1
Problem with ending a quest

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?
02-17-2012, 08:35 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Problem with ending a quest

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

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

void OnEnter()
{
}

void OnLeave()
{
}

02-17-2012, 09:26 AM
Find
Thegood Offline
Junior Member

Posts: 20
Threads: 6
Joined: Feb 2012
Reputation: 0
#3
RE: Problem with ending a quest

That didn't work.

Nevermind, I finally got it to work through trial and error Tongue
(This post was last modified: 02-17-2012, 09:35 PM by Thegood.)
02-17-2012, 09:22 PM
Find
Ermu Offline
Member

Posts: 86
Threads: 13
Joined: Jan 2012
Reputation: 2
#4
RE: Problem with ending a quest

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.
02-18-2012, 03:43 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#5
RE: Problem with ending a quest

(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


02-18-2012, 03:46 PM
Find




Users browsing this thread: 1 Guest(s)