Frictional Games Forum (read-only)
First Map. Few Problems - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: First Map. Few Problems (/thread-13928.html)



First Map. Few Problems - PlayPrey - 03-11-2012

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




RE: First Map. Few Problems - Mehis - 03-11-2012

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.



RE: First Map. Few Problems - GreyFox - 03-19-2012

Bump, This Didn't Fix his Problem. And I can't see what his problem is please, he requires more help.

-GreyFox



RE: First Map. Few Problems - PlayPrey - 03-19-2012

i fixed it.. thankts to grey fox