Frictional Games Forum (read-only)

Full Version: How do I add a memento after reading a note?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
<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");
}
(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");
Thanks Statyk! I totally forgot about it:/ The Questname isn't needed btw since it doesn't show up anywhereWink