Hi all,
I am working on another amnesia custom map and I encountered a problem with a key. I copied this line of code from a working map I had made in the past and it is being screwy. It calls "key1" the default "Machine Room Key". Then "key2" just says, "Picked up ". Take a look and let me know.
This is my .lang file
You are David. The world is your ally. Things have gone good for you in the past. The only bad thing is your mind. You have gone insane, you have wondered into the forest and know not of the way back.
The Tag Reads: "THEY WILL COME, BE CAREFUL"
The Unknown Door Key
What's in the attic?
Attic Key
Why would I lock this door? I hope I'm not getting amnesia like my friend!
It seems I have been wondering. I must find a lantern!
Dear Daniel,
Dear Daniel, [br] My dear friend I know your amnesia is getting worse, but I am completely going insane. The sky, it has no color. Just a black void. I have been seeing things also. Please friend, come and help me. [br] From, [br] David
This is my .hps file
void OnStart()
{
AddEntityCollideCallback("Player", "Mem1", "AddQuest1", true, 1);
AddUseItemCallback ("", "key1", "door1", "FUNCTION", true);
SetEntityCallbackFunc ("key1,", "OnPickup");
}
void FUNCTION (string &in key1, string & in door1)
{
SetSwingDoorLocked (door1, false, true);
PlaySoundAtEntity ("", "unlock_door", door1, 0, false);
RemoveItem (key1);
}
void AddQuest1(string &in asParent, string &in asChild, int alState)
{
AddQuest("lockeddoor", "LockedDoor");
}
void OnLeave()
{
}
void OnEnter()
{
}