Frictional Games Forum
LANG File does not work or I am stupid - Printable Version

+- Frictional Games Forum (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: LANG File does not work or I am stupid (/thread-56549.html)



LANG File does not work or I am stupid - PowerPlay - 10-23-2019

Hello! I have tried for Hours now to just get one message to pop up when I enter a script area. I can't do it, I am losing my mind. What is wrong with these? Please help.


LANG FILE
Spoiler below!
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">
ADD DESCRIPTION LATER
</Entry>
</CATEGORY>


<CATEGORY Name="Messages">

<Entry Name="LanternReminder">It's quite dark. I should find a light source to bring with me</Entry>

</CATEGORY>


<CATEGORY Name="Inventory">

</CATEGORY>

</LANGUAGE>

HPS File
Spoiler below!
void OnEnter()
{
    FadeOut(0.0f);

    FadeIn(5.0f);
}

void OnStart()
{
AddEntityCollideCallback("Player", "LanternBlock", "LanternDarkMessage", true, 1);

}

void LanternDarkMessage(string &in entity)
{
SetMessage("Messages", "LanternReminder", 4);

}

void OnLeave()
{

}



RE: LANG File does not work or I am stupid - MatiCekuriel - 10-24-2019

Quote:void LanternDarkMessage(string &in entity)

Try to replace this whith :


Code:
void LanternDarkMessage(string &in asParent, string &in asChild, int alState)