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
Help About Key
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#1
Sad  Help About Key

Hello evrybody this is my first post on this forum xD
I creating my first custom story
I created about 3 maps and i wanna make it not so big not so small about
4-5 doors and i make it
i set the first doors are opened by the key and it worked
But what is problem ?
When i set script and lang file it is all set good (i think)
I pick up key it says what i want description is also what i want
but when i come to door what need to unlock i double click in invetory key on doors and Nothing no text This item can not use this way
Door's are still closed
I try again then white text comes "This item can not use this way"
What is problem il set here my script and lang if need just to solve it

Sorry for my bad English Sad

03-08-2014, 11:01 AM
Find
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#2
RE: Help About Key

It's good to post your script so we can see what the problem could be.
03-08-2014, 11:27 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#3
RE: Help About Key

Please post the script here. Maybe encased in php or code.

EDIT: Btw, this was also posted in the wrong section. This should be at the Development Support.

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 03-08-2014, 11:33 AM by PutraenusAlivius.)
03-08-2014, 11:30 AM
Find
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#4
RE: Help About Key

Sorry i sad my first post i don't really know where to put it xD

Here you go my code .hps file same name as .map

void OnStart()

{

AddUseItemCallback("", "Key123", "Door123", "UseKeyOnDoor", true);
AddUseItemCallback("", "Study123", "Doors122", "UseKeyOnDoor", true);
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door123", false, true);
PlaySoundAtEntity("", "unlock_door", "Door123", 0, false);
RemoveItem("Key123");
}

void UseKeyOnDoor2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Doors122", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "Doors122", 0, false);
RemoveItem("Study123");
}

(This post was last modified: 03-08-2014, 12:02 PM by Straxedix.)
03-08-2014, 12:01 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#5
RE: Help About Key

AddUseItemCallback("", "Study123", "Doors122", "UseKeyOnDoor", true);

Should be "UseKeyOnDoor2" Smile

Discord: Romulator#0001
[Image: 3f6f01a904.png]
03-08-2014, 12:14 PM
Find
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#6
RE: Help About Key

Thanks now working perfect Wink
Now Romulator 2 more question xD or to make new thread can tell me how to make Wake up (my first map is forest) how to make like shaking (like original Amnesia) but not going through rooms jsut shaking then comes up and play and second
Do you have or can you make some good forest for me xD i really need it :/

03-08-2014, 12:39 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#7
RE: Help About Key

Well I can't just MAKE you a script because you need to learn how to do that, and I do not know what you need Smile But this may help you;
http://wiki.frictionalgames.com/hpl2/tut...equences?s

And I won't make you a forest map either, but abuse the hell out of the trees in the game, make some large and fat, while others skinny and small, and a mixture of them both. Smile

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 03-08-2014, 12:56 PM by Romulator.)
03-08-2014, 12:55 PM
Find




Users browsing this thread: 4 Guest(s)