The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Key Name Problem
TheMadmaxster Offline
Junior Member

Posts: 18
Threads: 7
Joined: Jan 2012
Reputation: 0
#1
Key Name Problem

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()
{

}
(This post was last modified: 10-10-2012, 06:22 PM by TheMadmaxster.)
10-10-2012, 02:41 AM
Find


Messages In This Thread
Key Name Problem - by TheMadmaxster - 10-10-2012, 02:41 AM
RE: Key Name Problem - by Adny - 10-10-2012, 03:00 AM
RE: Key Name Problem - by TheMadmaxster - 10-10-2012, 03:07 AM



Users browsing this thread: 1 Guest(s)