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
Locked Door Message not Working, Help Needed. (Awarding Virtual Cookie)
Zaffre Away
Posting Freak

Posts: 867
Threads: 50
Joined: Jul 2012
Reputation: 30
#2
RE: Problem with "extra_english.lang"

Hm... your file seems to be lacking in some parts. Here's how it should be written.

<LANGUAGE>
<CATEGORY Name="Messages">
<Entry Name="lockeddoor1">This door is locked.
</CATEGORY>
</LANGUAGE>

You also need the appropriate coding. For instance, let's presume that the name of a door is "mansion_1", and you want it to display the callback. You'll need to type this.

void OnStart()
{
SetEntityPlayerInteractCallback("mansion_1", "DoorLockedMsg", true);
}

void DoorLockedMsg(string &in entity)
{
SetMessage("Messages", "lockeddoor1", 0);
}

It helps if you can explain the coding like it would be in a conversation. What this code says is that when the map starts, it will add a callback for interacting with the door named "mansion_1". That callback asks the category "Messages" in the file "extra_english.lang", to display the entry "lockeddoor1" for a predetermined amount of time.

This should work. Also, if the coding is correct, check for typos in your extra_english.lang file. I often forget to put quotes or the </Entry> after I finish an entry.

Hope this helps.

As of September 2nd, 2014, I've left the Frictional forums. Check my profile for more details.
09-03-2012, 01:58 AM
Find


Messages In This Thread
RE: Problem with "extra_english.lang" - by Zaffre - 09-03-2012, 01:58 AM
RE: Problem with "extra_english.lang" - by Frodos - 09-03-2012, 02:26 AM
RE: Problem with "extra_english.lang" - by Zaffre - 09-03-2012, 02:53 AM
RE: Problem with "extra_english.lang" - by Frodos - 09-03-2012, 03:56 AM
RE: Problem with "extra_english.lang" - by Zaffre - 09-03-2012, 04:22 AM
RE: Problem with "extra_english.lang" - by Frodos - 09-03-2012, 04:29 AM
RE: Problem with "extra_english.lang" - by Zaffre - 09-03-2012, 04:20 PM
RE: Problem with "extra_english.lang" - by Frodos - 09-03-2012, 11:05 PM
RE: Problem with "extra_english.lang" - by Zaffre - 09-03-2012, 11:11 PM
RE: Problem with "extra_english.lang" - by Frodos - 09-03-2012, 11:13 PM



Users browsing this thread: 1 Guest(s)