Frictional Games Forum (read-only)
How do I add a memento after reading a note? - 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: How do I add a memento after reading a note? (/thread-17534.html)



How do I add a memento after reading a note? - Lukaboy8 - 08-06-2012

Hello everybody,

I want to add a memento after I read a note but I don't know how to do it.

In the extra_english.lang below you can see the memento and note.

<LANGUAGE>
<CATEGORY Name="Journal">
<Entry Name="Note_Startnote_Name">Here should be the title of the note</Entry>
<Entry Name="Note_Startnote_Text">Here should be the text from the note</Entry>
<Entry Name="Quest_EntranceHallKey_Text">Here should be the text of the memento</Entry>
</CATEGORY>
</LANGUAGE>

Luke


RE: How do I add a memento after reading a note? - Statyk - 08-06-2012

<LANGUAGE>
<CATEGORY Name="Journal">
<Entry Name="Note_Startnote_Name">Here should be the title of the note</Entry>
<Entry Name="Note_Startnote_Text">Here should be the text from the note</Entry>
<Entry Name="Quest_EntranceHallKey_Name">Questname</Entry>
<Entry Name="Quest_EntranceHallKey_Text">Here should be the text of the memento</Entry>
</CATEGORY>
</LANGUAGE>

Pick the note entity and go to the Entity tab on the right. Fill in the PlayerInteractCallback box with "entrancequest_func" (no quotations). Then in your .hps put, Outside the OnEnter and OnStart:

void entrancequest_func(string &in asEntity)
{
AddQuest("entrancequest", "EntranceHallKey");
}


RE: How do I add a memento after reading a note? - lolmaster - 08-06-2012

(08-06-2012, 03:52 PM)Statyk Wrote: Here should be the title of the note
Here should be the text from the note
Questname
Here should be the text of the memento



Pick the note entity and go to the Entity tab on the right. Fill in the PlayerInteractCallback box with "entrancequest_func" (no quotations). Then in your .hps put, Outside the OnEnter and OnStart:

void entrancequest_func(string &in asEntity)
{
AddQuest("entrancequest", "EntranceHallKey");
}

Isn't it:
<Entry Name="Quest_EntranceHallKey_Text">Here should be the text of the memento</Entry>

AddQuest("entrancequest", "Quest_EntranceHallKey_Text");


RE: How do I add a memento after reading a note? - Lukaboy8 - 08-06-2012

Thanks Statyk! I totally forgot about it:/ The Questname isn't needed btw since it doesn't show up anywhereWink