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
Show message when interacting with a door?
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#15
RE: Show message when interacting with a door?

(09-30-2012, 01:00 PM)The chaser Wrote: Hmm... as same as "journal" it could be possible that you had to put just "messages". So, this tutorial is a very good one to add messages to a locked door. Wink

http://wiki.frictionalgames.com/hpl2/tut...cked_doors

And the .lang file should be like this:

<LANGUAGE>

<CATEGORY Name="CustomStoryMain">

<Entry Name="Description"> descriptionhere

</Entry>

</CATEGORY>



<CATEGORY Name="Levels">



<Entry Name="level_hub_1">...</Entry>



</CATEGORY>



<CATEGORY Name="Messages">

<Entry Name="doortext1">Hmm... My wife's room... I wonder why it's locked.</Entry>

</CATEGORY>

<LANGUAGE>

And your .hps like this:

void showdoortext1(string &in asEntity)



{

if(GetSwingDoorLocked("wifesroom")== true)

{

SetMessage("Messages", "doortext1", 0);

}

}


You don't actually need the SetEntityPlayerInteractCallback.
Also, when the .lang file doesn't work, you can see it even before playing the story. If the description doesn't appear, that means to be that your .lang file is wrong. A single error and all will be gone.
Angel
</LANGUAGE>

you forgot this you have double

<LANGUAGE>

CURRENTLY WORKING ON:
Final Light = 40%
Need of voice actors.
09-30-2012, 01:31 PM
Find


Messages In This Thread
RE: Show message when interacting with a door? - by Steve - 09-30-2012, 01:31 PM



Users browsing this thread: 1 Guest(s)