The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
.Lang File Help AddQuest bug
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#1
AddQuest bug

i need help with addig a quest. when the player picks up lantern_1, he gets a quest.

this is the code in the .map
SetEntityPlayerInteractCallback("lantern_1", "SetMessage", true);

void SetMessage(string &in timer_name)
{
   SetMessage("map1_messages", "LanternPickup1", 0);
   AddPlayerLampOil(25);
   AddQuest("oil_quest", "OilQuest");
}

and this the entry in the .lang
<CATEGORY Name="Journal">
<Entry Name="OilQuest">Quest_ TEXT.TEXT.TEXT _Text</Entry>
</CATEGORY>

it only shows a bulletpoint in the journal, and the book in the lower right appears.

where is my mistake?

thanks for the help

<<EDIT>>

i just found the mistake by myself. pretty stupid one. it has to be

<CATEGORY Name="Journal">
<Entry Name="Quest_ OilQuest_Text">TEXT.TEXT.TEXT</Entry>
</CATEGORY>

When you are looking for someone, to do the scripting for your Custom Story, ask me!
(This post was last modified: 02-12-2013, 06:35 PM by tonitoni1998.)
02-12-2013, 06:17 PM
Find


Messages In This Thread
AddQuest bug - by tonitoni1998 - 02-12-2013, 06:17 PM
RE: AddQuest bug - by NaxEla - 02-12-2013, 06:35 PM
RE: AddQuest bug - by tonitoni1998 - 02-12-2013, 06:36 PM



Users browsing this thread: 1 Guest(s)