Frictional Games Forum (read-only)
[LANG] AddQuest bug - 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: [LANG] AddQuest bug (/thread-20295.html)



AddQuest bug - tonitoni1998 - 02-12-2013

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>



RE: AddQuest bug - NaxEla - 02-12-2013

The entry name should be "Quest_OilQuest_Text".

Code:
<Entry Name="Quest_OilQuest_Text">TEXT.TEXT.TEXT</Entry>



RE: AddQuest bug - tonitoni1998 - 02-12-2013

yes i just saw that too Tongue but thanks Big Grin