Hey i'm new on this platform but i'm despairing, because a problem i have with my custom story.
I want to show text, when i'm trying to open a locked mansionbase door (not a leveldoor). I followed these instructions (
http://wiki.frictionalgames.com/hpl2/tut...ked_doors) and i used the same prefixes as in the tutorial but it doesnt work. After i asked some guys, who can script really good they dont know how to solve it. Here is our currently progress.
extra_english.lang file; Just pay attention on the ///Message/// category, the rest is working fine:
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">You are returning from your education and you are looking forward to have a cozy evening with your family.[br][br]But wait...[br][br][br]You get a strange feeling as you behold the estate of your family.</Entry>
</CATEGORY>
//////////////////////JOURNAL//////////////////////
<CATEGORY Name="Journal">
<Entry Name="Note_NoteTraum1_Name">Enter Text here.</Entry>
<Entry Name="Note_NoteTraum1_Text">Your now reading the test text.</Entry>
</CATEGORY>
//////////////////////INVENTORY//////////////////////
<CATEGORY Name="Inventory">
<Entry Name="ItemName_KeyDesc">Desk-Key</Entry>
<Entry Name="ItemDesc_KeyDesc">It's for unlocking the desk door.</Entry>
</CATEGORY>
//////////////////////DEATHHINT//////////////////////
<CATEGORY Name="DeathHint">
<Entry Name="Entry1">You have to carry on...</Entry>
</CATEGORY>
//////////////////////MESSAGES//////////////////////
<CATEGORY Name=“Messages”>
<Entry Name =“msgname”>It's dark outside. I should take my lantern.</Entry>
</CATEGORY>
</LANGUAGE>
map.hps; just the script for the message:
//Text on locked door
void DoorLockedPlayer(string &in entity)
{
if(GetSwingDoorLocked(entity) == true)
{
SetMessage("Messages", "msgname", 3);
}
}
//we also tried this but it wont work too
//Text on locked door
void DoorLockedPlayer(string &in entity)
{
if(GetSwingDoorLocked("EXAMPLE_DOOR") == true)
{
SetMessage("Messages", "msgname", 0);
}
}
The Door Name in the mapeditor is "EXAMPLE_DOOR" and the PlayerInteractCallback is "DoorLockedPlayer"
Hope anyone can help me, thanks Smile