Frictional Games Forum (read-only)

Full Version: a function for opening notes?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way you can open a journal using a code?
I basically want it to work as when you spawn you automatically read a note as a kind of intro/hint
For that you maybe should use the Custom Story description Tongue?

Answer might be there tho: http://wiki.frictionalgames.com/hpl2/amn..._functions

Ill paste it for ya, maybe u can somehow get it displayed with these codes, not sure tho!

Code:
Journal

void AddNote(string& asNameAndTextEntry, string& asImage);


Adds a note to the player's journal.



asNameAndTextEntry - entries in the .lang file. Must end with _Name and _Text and be in category “Journal”!


asImage - the background image to be used

void AddDiary(string& asNameAndTextEntry, string& asImage);


Adds a diary to the player's journal.



asNameAndTextEntry - entries in the .lang file. Must end with
_NameX and _TextY whereas X and Y are numbers of the parts (_Name1:
first diary, _Text1: first page) and be in category “Journal”!


asImage - the background image to be used

void ReturnOpenJournal(bool abOpenJournal);


Only called in the pickup diary callback! If true the journal displays the entry else not.