Ahh Ok, I'll try that.
HPS:
void OnStart()
{
AddEntityCollideCallback("Player ", "AreaHelp ", "CollideAreaHelp ", false, 1);
}
void CollideAreaHelp(string &in asParent, string &in asChild, int alState)
{
if(HasItem("cellar_key") == true)
{
SetMessage("Messages", "HasKey", 5);
}
else
{
SetMessage("Messages", "GAH", 5);
}
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
_________________________
Lang:
<LANGUAGE>
<CATEGORY Name="Alone">
<Entry Name="Description">History.</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Note_Test01_Name">History.</Entry>
<Entry Name="Note_Test01_Text">I cannot wait any longer to get started with my experiments, this will give me the chance to actually try it on a human other than some animals, but this was made for humans, and humans only. Once I find my way out of this room, history shall be written. -1832 Thomas Reifk.</Entry>
<Entry Name="Note_Test02_Name">Fear.</Entry>
<Entry Name="Note_Test02_Text">Tonight I heard something walking outside my study, I know it was no human as I had my servant leave and lock the door. I am almost certain that I saw a shadow as well, may the haunting of my earlier years be returning? If this is true then I must find my old friend, for he may be my only hope at stopping this... Thing at haunting anyone else.</Entry>
<Entry Name="Note_Test03_Name">Grant.</Entry>
<Entry Name="Note_Test03_Text">Hello Thomas, congradulations on your discovery of this new drug, this will be a great use to the world. This letter grants you $15,000 to continue research and imrpove this drug. Meanwhile we have three voulenteers that would like to help you with this research, they would like to have the drug tested on themselves.
LIST OF VOULENTEERS:
Davind Rindol-
-Tyler Ornent-
-Neille Caferik.</Entry>
</CATEGORY>
<CATEGORY Name="Messages">
<Entry Name="GAH">GAH! Locked... I will need a key.</Entry>
<Entry Name="HasKey">This key will unlock the door.</Entry>
</CATEGORY>
</LANGUAGE>
(01-22-2012, 04:42 PM)Unearthlybrutal Wrote: You can copy the .hps ![Smile Smile](https://www.frictionalgames.com/forum/images/smilies/smile.gif)
Put this to your .lang, I fixed the second message
GAH! Locked... I will need a key.
This key will unlock the door.
I've fixed your .hps a couple of times. Make sure that you have the latest fix![Smile Smile](https://www.frictionalgames.com/forum/images/smilies/smile.gif)
The map loads but the messages will nto show up.
If this is important... Is there a script to apply a key to open a certain door?