Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I add a memento after reading a note?
Author Message
Lukaboy8 Offline
Junior Member

Posts: 25
Joined: Aug 2012
Reputation: 0
Post: #1
How do I add a memento after reading a note?
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
(This post was last modified: 08-06-2012 02:51 PM by Lukaboy8.)
08-06-2012 02:47 PM
Find all posts by this user Quote this message in a reply
Statyk Offline
Modmau5

Posts: 3,634
Joined: Sep 2011
Reputation: 200
Post: #2
RE: How do I add a memento after reading a 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_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");
}

(This post was last modified: 08-06-2012 03:52 PM by Statyk.)
08-06-2012 03:52 PM
Visit this user's website Find all posts by this user Quote this message in a reply
lolmaster Offline
Member

Posts: 159
Joined: Jul 2012
Reputation: 5
Post: #3
RE: How do I add a memento after reading a note?
(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");

[Image: 20885.png]

08-06-2012 04:51 PM
Find all posts by this user Quote this message in a reply
Lukaboy8 Offline
Junior Member

Posts: 25
Joined: Aug 2012
Reputation: 0
Post: #4
RE: How do I add a memento after reading a note?
Thanks Statyk! I totally forgot about it:/ The Questname isn't needed btw since it doesn't show up anywhereWink
08-06-2012 06:15 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)