Frictional Games Forum (read-only)
Door won't display message! - 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: Door won't display message! (/thread-22272.html)



Door won't display message! - Imevil23 - 07-29-2013

I've been trying to fix this issue for a good half-hour now. I've just started trying to make a CS and I have forgotten almost everything. I've been looking on the wiki and followed the instructions exactly, but things aren't working out.

Here's the script:

void door(string &in entity)
{
if(GetSwingDoorLocked("Door1") == true)
{
SetMessage("Doors", "locked", 0);
}
}

And the entry and category in the .lang file:

<LANGUAGE>
<CATEGORY Name=“Doors”>
<Entry Name=“locked”>The door appears to be locked.</Entry>
</CATEGORY>
</LANGUAGE>

I've tried a lot, but nothing is working at all. Any help would be greatly appreciated.


RE: Door won't display message! - The chaser - 07-29-2013

void door(string &in asEntity)
{
if(GetSwingDoorLocked("Door1") == true)
{
SetMessage("Messages", "locked", 0);
}
}

<LANGUAGE>
<CATEGORY Name=“Messages”>
<Entry Name=“locked”>The door appears to be locked.</Entry>
</CATEGORY>
</LANGUAGE>


There, fixed it for you. When you make a message, the name of the Category is ALWAYS Messages.


RE: Door won't display message! - Imevil23 - 07-29-2013

(07-29-2013, 09:10 PM)The chaser Wrote: void door(string &in asEntity)
{
if(GetSwingDoorLocked("Door1") == true)
{
SetMessage("Messages", "locked", 0);
}
}

<LANGUAGE>
<CATEGORY Name=“Messages”>
<Entry Name=“locked”>The door appears to be locked.</Entry>
</CATEGORY>
</LANGUAGE>


There, fixed it for you. When you make a message, the name of the Category is ALWAYS Messages.

Okay, so I fixed the script, but I'm still not getting anything out of this. I'll try some other things and if I manage to fix it, I'll let you know.

*EDIT* I got it working! Thanks a lot! I downloaded this lang file helper, and it showed me where the error was. I uhh... shouldn't have copy and pasted, because that screwed everything over. I'll make sure to add your name to the credits when I get this thing done!