Frictional Games Forum (read-only)

Full Version: AddQuest bug
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Code:
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
Code:
<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

Code:
<CATEGORY Name="Journal">
<Entry Name="Quest_ OilQuest_Text">TEXT.TEXT.TEXT</Entry>
</CATEGORY>
The entry name should be "Quest_OilQuest_Text".

Code:
<Entry Name="Quest_OilQuest_Text">TEXT.TEXT.TEXT</Entry>
yes i just saw that too Tongue but thanks Big Grin