[LVL ED] New Question: How to create a door - 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: [LVL ED] New Question: How to create a door (/thread-16326.html) |
RE: 3 Questions: Cave In and Destroying bookshelf - Nervly - 06-20-2012 (06-20-2012, 02:56 PM)FastHunteR Wrote: use a .txt file, write it inside(youn can use notepad++) and save it as a .hps file with the name of your map it should work on. Example: The custom_story_settings file its already configured by me, I just don't have the extra_english.lang file. So, since I have to name the script the same as the name of the map, I can only have one script per map? RE: 3 Questions: Cave In and Destroying bookshelf - Cruzore - 06-20-2012 Yes, and only 1 script is needed, since you can put everything you need in 1 script. RE: 3 Questions: Cave In and Destroying bookshelf - Nervly - 06-20-2012 (06-20-2012, 07:39 PM)FastHunteR Wrote: Yes, and only 1 script is needed, since you can put everything you need in 1 script.Oh, nice. So I can have many scripts in 'test.hps' for 'test.map', for example, and that scripts are only for 'test.map', and for a 'test_2.map' I need a 'test_2.hps' with the scripts I want only for that 'test_2.map', right? RE: 3 Questions: Cave In and Destroying bookshelf - Cruzore - 06-20-2012 Yes, exactly. and if you need a way to script over the maps, store numbers in global variables, and check for them in the other script. This way you can, let's say, get a lever to be turned in 1 map and let it open a door on the other. RE: 3 Questions: Cave In and Destroying bookshelf - MaZiCUT - 06-20-2012 Make like a little shake as if the castle or the whole building you are in is shaking and then the wind blows and you hear steps, "PickAFileInTheSoundFolder.snt" so the player looks backwards, then it would be perfect time to deactivate the bookshelf in condition and activate the ruined bookshelf. RE: 3 Questions: Cave In and Destroying bookshelf - Nervly - 06-21-2012 (06-20-2012, 10:29 PM)CrazyArts Wrote: Make like a little shake as if the castle or the whole building you are in is shaking and then the wind blows and you hear k, "PickAFileInTheSoundFolder.snt" so the player looks backwards, then it would be perfect time to deactivate the bookshelf in condition and activate the ruined bookshelf.That sounds nice, but it would be somewhat weird, because since you have the hammer in your hand and you smash the bookshelf, it would be like, you are destroying it while looking back. I guess I'll use the FadeIn/Out option. But thank you +1 Rep to you So, I have the script in the .txt file and I saved it as a .hps file, it has the same name of the map and it is in the /maps folder. How do I activate the script in-game/level editor? RE: 3 Questions: Cave In and Destroying bookshelf - Cruzore - 06-21-2012 You can't activate the script in the level editor, start the game and start it in either custom stories option or use the development environment to start it immediatly, then you use your hammer on your shelf and it should work. RE: 3 Questions: Cave In and Destroying bookshelf - Nervly - 06-21-2012 (06-21-2012, 01:05 PM)FastHunteR Wrote: You can't activate the script in the level editor, start the game and start it in either custom stories option or use the development environment to start it immediatly, then you use your hammer on your shelf and it should work.It's no working :/ Quote:void OnStart() Here is the script. I replaced the sound, the name of the shelf and of the hammer. RE: 3 Questions: Cave In and Destroying bookshelf - Cruzore - 06-21-2012 What exactly is not working? it won't start your custom story, it doens't appear in your custom stories option or it won't destroy the shelf? RE: 3 Questions: Cave In and Destroying bookshelf - Nervly - 06-21-2012 (06-21-2012, 01:11 PM)FastHunteR Wrote: What exactly is not working? it won't start your custom story, it doens't appear in your custom stories option or it won't destroy the shelf?The shelf is not destroying. I select the hammer from the inventory, and click the shelf but: No object to use item on! |