Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I add a memento after reading a note?
Lukaboy8 Offline
Junior Member

Posts: 25
Threads: 10
Joined: Aug 2012
Reputation: 0
#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
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#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
Find
lolmaster Offline
Member

Posts: 170
Threads: 9
Joined: Jul 2012
Reputation: 6
#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");


08-06-2012, 04:51 PM
Find
Lukaboy8 Offline
Junior Member

Posts: 25
Threads: 10
Joined: Aug 2012
Reputation: 0
#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




Users browsing this thread: 4 Guest(s)