02-07-2013, 02:54 PM
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
and my extra_english.lang file looks like this
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
Code:
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);
}
}
Code:
<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>
Any help is appreciated