I just made a (very simple) custom story as a sort of practice. I have all the files in one folder with the .map file and the .hps file in a folder in that folder called: maps. I tried to add a key to the scripting but the custom story no longer appeared in the amnesia custom stories list on the main menu. I deleted all the key scripting from my .hps file and it still wont work D: I have absolutely no idea what has happened but i know that it would sometimes appear on the list before I added the key, but it would also sometimes not appear. I know pretty much nothing about scripting and had just followed a few youtube tutorials on how to put in a key. please help!
Oh and here's my .hps file with the key:
////////////////////////////
// Run when entering map
void OnStart()
{
AddUseItemCallback("", "BedroomKey_1", "BedroomDoor_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor (string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("BedroomDoor_1", false, true);
PlaySoundAtEntity("", "Unlock_door", "BedroomDoor_1", 0, false);
RemoveItem("BedroomKey_1");
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}