Frictional Games Forum (read-only)
Show message when interacting with a door? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Show message when interacting with a door? (/thread-18557.html)

Pages: 1 2 3


Show message when interacting with a door? - srobb - 09-29-2012

I want a message to show up on the screen when the player interacts with this door.

.hps file:

SetEntityPlayerInteractCallback("wifesroom", "showdoortext1", true);



void showdoortext1(string &in asEntity)

{
if(GetSwingDoorLocked(asEntity)== true)
{
SetMessage("Message", "doortext1", 0);
}
}

.lang file:


</CATEGORY>

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

Thanks in advance.


RE: Show message when interacting with a door? - Statyk - 09-29-2012

Is there a problem with it? If so, what is it doing?


RE: Show message when interacting with a door? - srobb - 09-29-2012

It doesn't show any message at all.


RE: Show message when interacting with a door? - FlawlessHappiness - 09-29-2012

You category name is wrong.

It should be "Message" instead of "Messages"


RE: Show message when interacting with a door? - srobb - 09-29-2012

I changed it to "Message". Still won't work.


RE: Show message when interacting with a door? - FlawlessHappiness - 09-29-2012

Show us the whole lang file


RE: Show message when interacting with a door? - srobb - 09-29-2012

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description"> descriptionhere
</Entry>
</CATEGORY>

<CATEGORY Name="Levels">

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





</CATEGORY>

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


RE: Show message when interacting with a door? - Robby - 09-29-2012

You forgot the </LANGUAGE> at the end of the file.


RE: Show message when interacting with a door? - Steve - 09-29-2012

if you haven't forgotten to put it there you still need:
</LANGUAGE>
at the end of the .LANG


RE: Show message when interacting with a door? - srobb - 09-29-2012

It still won't work.


</CATEGORY>

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

</LANGUAGE>