The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Text not appearing on door
Spaysh Offline
Junior Member

Posts: 11
Threads: 6
Joined: Feb 2013
Reputation: 0
#1
Text not appearing on door

Hey guys, just wondering why my doors won't display the messages when they are interacted by the player, the code for the map is
void LockedDoor1(string &in entity)
{
    if(GetSwingDoorLocked("Locked_Door_1") == true)
    {
        SetMessage("Message", "LockedDoor1msg", 0);
    }

}
void TortureDoorLocked(string &in entity)
{
    if(GetSwingDoorLocked("Torture_Door_1") == true)
    {
        SetMessage("Message", "TortureDoorLockedmsg", 0);
    }

}
void MonsterDoorLocked(string &in entity)
{
    if(GetSwingDoorLocked("MonsterDoor") == true)
    {
        SetMessage("Message", "MonsterDoorLockedmsg", 0);
    }

}
and my extra_english.lang file looks like this
<LANGUAGE>
   <CATEGORY Name="CustomStoryMain">
      <Entry Name="Description">Trying out HPL Editor!</Entry>
   </CATEGORY>
   <CATEGORY Name="Inventory">
    <Entry Name="ItemDesc_Key1">Key to Cellar</Entry>
    <Entry Name="ItemName_Key1">Cellar Key</Entry>
    <Entry Name="ItemDesc_crowbar>A sturdy crowbar used to pry doors</Entry>
    <Entry Name="ItemName_crowbar>Crowbar</Entry>
   </CATEGORY>
   <CATEGORY Name=“Message”>
    <Entry Name =“LockedDoor1msg”>This door is locked, maybe if I had a key...</Entry>
    <Entry Name =“MonsterDoorLockedmsg”>This door is locked with a mechanism.</Entry>
    <Entry Name =“TortureDoorLockedmsg”>This door is slightly locked, might be able to pry open...</Entry>
   </CATEGORY>
</LANGUAGE>
I have been looking at this for ages now and I still cannot see what is the problem, all the door names are spelt correctly, so its not that.
Any help is appreciated
02-07-2013, 02:54 PM
Find


Messages In This Thread
Text not appearing on door - by Spaysh - 02-07-2013, 02:54 PM
RE: Text not appearing on door - by The chaser - 02-07-2013, 03:18 PM
RE: Text not appearing on door - by The chaser - 02-07-2013, 03:51 PM
RE: Text not appearing on door - by Adrianis - 02-07-2013, 06:11 PM
RE: Text not appearing on door - by Spaysh - 02-07-2013, 04:15 PM



Users browsing this thread: 1 Guest(s)