Hi everyone!
I'm super new to this so this might be something really simple that I'm encountering...
**I use a Macbook if this changes anything...I'm using the textedit app to code.**
So, I've set up my custom story - I've made 2 maps (01_start.map and 02_hallway.map), the extra_english.lang file, the custom_story_settings file and I'm just starting on the coding for map 1. The problem I'm having is I'm trying to make a level door that is locked, and a key to unlock it. I've got the door locked, and it makes the locked sound, but it doesn't display the message I've asked it to. Also, I've tried to rename the key and it's description but that isn't working either, nor does it actually unlock the door. Here are all my files.
extra_english.lang:
<LANGUAGE>
<RESOURCES>
</RESOURCES>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">blah blah.</Entry>
</CATEGORY>
<CATEGORY Name=“Messages”>
<Entry Name=“doorlock1”>It’s locked. I must’ve left my key in my room somewhere.</Entry>
</CATEGORY>
<CATEGORY Name=“Inventory”>
<Entry Name=“ItemDesc_key_study_1”>This is the key for the door downstairs.</Entry>
<Entry Name=“ItemName_key_study_the 1”>Hallway Key</Entry>
</CATEGORY>
</LANGUAGE>
custom_story_settings.cfg
<Main
ImgFile = "customstory.png"
Name = "1942"
Author = "Hannah129"
MapsFolder = "maps/"
StartMap = "01_start.map"
StartPos = "PlayerStartArea_1"
/>
level 1 coding (this is saved in the same place as *maps* with the same name as my first map in my custom story, and it's saved as 01.start.hps.rtf)
void OnStart ()
{
AddUseItemCallback (“”, “key_study_1”, “level_wood_1”, “FUNCTION”, true);
}
void OnEnter ()
{
}
void OnLeave ()
{
}
void FUNCTION (string &in item, string &in door)
{
SetLevelDoorLocked (“level_wood_1”, false);
PlayGuiSound (“unlock_door.snt”, 100);
RemoveItem (“key_study_1”);
}
I've checked over and over and over again and I can't seem to find anything wrong! Is this a really simple error I've made, am I going crazy? I literally just started yesterday so I'm really new to this, I don't do coding so...
Thanks anyone in advance!