Frictional Games Forum (read-only)

Full Version: First Map. Few Problems
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi there! Smile

im trying to make a amnesia custom story.
But my key dosen't unlock my specified door, ( the key's name and description works )
And my note is blank ( nothing there O.O )


Any solutions?


pp1.hps
PHP Code:
///////////////
//
void OnStart()
{

AddUseItemCallback("UseKeyOnDoor""LOL""DoorLocked1""UseKeyOnDoor"true);
}

void UseKeyOnDoor(string &in asItemstring &in asEntity)
{
    
SetSwingDoorLocked("DoorLocked1"falsetrue);
    
PlaySoundAtEntity("unlocked""unlock_door"asEntity0.0ffalse);
    
RemoveItem("LOL");


extra english.lang
PHP Code:
<LANGUAGE>
    <
RESOURCES>
    </
RESOURCES>
    <
CATEGORY Name"CustomStoryMain">
        <
Entry Name"Description">This is my very first custom story for amnesiai hope people enjoy, and no im not good at making these.. so thats why it probably isnt so good.. and if PewDiePie plays thisthat would mean alot to me, and im gonna try not to make it specific for you.. :)   BTW it might not be scary.. who knows.. :O</Entry>
    </
CATEGORY>
    <
CATEGORY Name"Journal">
        <
Entry Name="Note01_Name">Welcome to your end</Entry>
        <
Entry Name="Note01_Text">LOL</Entry>
    </
CATEGORY>
    <
CATEGORY Name="Inventory">
        <
Entry Name="ItemName_LOL">Old Key</Entry>
        <
Entry Name="ItemDesc_LOL">Is this the key to that door?</Entry>
    </
CATEGORY>
</
LANGUAGE

AddUseItemCallback("UseKeyOnDoor", "LOL", "DoorLocked1", "UseKeyOnDoor", true);


You need to change that to something else. You don't even have to name that. It's now calling the same function all over again.
Bump, This Didn't Fix his Problem. And I can't see what his problem is please, he requires more help.

-GreyFox
i fixed it.. thankts to grey fox