I fixed almost everything on my custom story except one thing.
Here is a short description after the description I will show you my codes and some Pictures.:
------------------
Description: So you will find this secret key that will unlock this secret door. you can't miss the door but you can miss the key, if you don't pay enough attention. The door is a LEVEL door that will bring you to Libary.map. Here comes the codes:
-------------------------------
Name on Door: secret
Name on key: keycloset2 (don't ask why it's called keycloset2)
--------------------------------
The key is working, what I mean with that is when I use the key on the door, the key will dissapear from my Inventory... And the door is still locked
And one last thing, when making maps. does every caps need to be small or? is it okay to call a map: Libary.map and the same with some of my notes is also with Capital like: Miner1
Can you please give us youur .HPS file.
It is located here :
Mydouments\Amnesia\YOURSTORY\hpl.log
We need that.
THank you, overall it looks good.
Be 100% sure the NEXT map = PRECISELY the same name in your level-editor as in your maps folder.
+ check if the startear is also the same.
Hi DnALANGE. There is really nothing special about my HPS to realfloor.map
Actually only that code. As I gave just above, that's it.
As I said I am newbie (also to scripting). I just wanted a engine to tell my story, and Amnesia had the best
level design and was fiting perfect to my story and I wanted to make maps for fun. didn't think I got sucked into making my own custom story that is almost done. I can admit there could have been more scripting in the map, but I am moving over to unity when this project is done. I have to many ideas I can't make all, xD and I been stuck on this custom for 2 years, Manly because I needed to focus on my Web-school and my youtube channel. But DnLANGE you are the best, I mean it. You have been helping me alot, I appreciate that.
The Picture illustrate how the in level editor is have been put up. or else
the code for my HPS to realfloor is only:
void OnStart()
{
AddUseItemCallback("", "keycloset2", "secret", "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("secret", false, true);
PlaySoundAtEntity("", "unlock_door", "secret", 0, false);
RemoveItem("keycloset2");
}
and I went into document/Amnesia/Main/myname/custom/shelter and it went into a empty folder there is no HPS. FOLDER. O_O
Sorry I can't help more than that.
Sorry grammar
(This post was last modified: 12-07-2013, 11:16 PM by Pandachoko.)
SetLevelDoorLocked(string& asName, bool abLocked);
Meaning
SetLevelDoorLocked("YOURDOORNAME", true); //Will LOCK the door
SetLevelDoorLocked("YOURDOORNAME", false); //Will UNLOCK the door,witch YOU need. try this.
DnALANGE
Kurton, Romulator and DnLANGE, I would Like to thank you all. for the support. To finish my custom story. It is done, my custom story is done. Thank you. Now I only need a voice acting, where are voice shall be played at the end in the credits, which I will do tomorrow with one of my friend.
THANK YOU !!! and if you ever interested in the custom story, someday, and it will be downloadable,
Look in the credits, your name are there also others that helped me through this forum.
Your name will be at the end so won't miss them! BUT THANK YOU!. and I will not take any more of your time Thanks for all the support. This is what I can call a community!
And DnLANGE can't wait to try out you new Custom Story!
CHEERS AND HAVE A NICE DAY!
And you DnLANGE you explantion at the end gave sense, I was blind xD