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
Script Help a function for opening notes?
PixelHurricane Offline
Junior Member

Posts: 24
Threads: 8
Joined: Jul 2012
Reputation: 0
#1
Question  a function for opening notes?

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
07-24-2012, 08:30 PM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#2
RE: a function for opening notes?

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!

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.

The Interrogation
Chapter 1

My tutorials
07-24-2012, 11:44 PM
Find




Users browsing this thread: 1 Guest(s)