(04-17-2014, 02:03 PM)Romulator Wrote: I can help :3
The way I see it, you can do this one of two ways You can give the item directly from the code, or you can make it drop from the shirt, preferably underneath it.
The first one, which you get directly from the shirt:
That, I BELIEVE would work, but you would have to just test it to make sure you receive a key at all. Change the appropriate stuff that you need to (anything enclosed in a <> but don't delete the "" marks). The thing in the lang file is ItemName_<itemname> and ItemDesc_<itemname>. You can change the graphical image to whatever is in the redist/graphics/item/ folder.
The other method, which is make a key appear from underneath and fall to the ground is this:
This one, you have to place the appropriate key underneath the shirt, name it whatever the name of the key is in the Level Editor, and untick "Active" from the Level Editor.
Didn't knew it was that easy!
But I tried this script once for a locked door, I should interact with it and a message should be displayed. Didn't work.
I think ''SetEntityPlayerInteractionCallback'' works only for pickable items, like notes or oil.
But i'm gonna try it anyway.
Thanks!
EDIT: As I said, didn't work. I think you ave to place a script area in front of the shirt to be able to interact with it.
ANOTHER EDIT: This time, I looked through the map of "Deterioration", and skimmed to the place, where I found the key in the shirt and indeed, you have to place a script area.
Thanks for your help, but now, I know the FULL TRUTH!