Buu342 Posted May 13, 2012 Hello, is it possible to have the exit available to the player but will only work if the player has pressed a switch? Example The player starts in his bedroom. Inside are a bed and a chair(sitting on it will end the level, but i dont want it to yet). The player must then leave his bedroom, explore the base and must press a switch. When he does, the chair can now make the player leave the map. So basicly the player must return to the bedroom, touch the chair and end the level. Is that possible? Thanks 0 Share this post Link to post
Gez Posted May 13, 2012 It's possible, but only if you script the level, so you'll have to use ACS or FraggleScript. Doing so will restrict the number of ports that can play your map. 0 Share this post Link to post
MSPaintR0cks Posted May 13, 2012 If you want to stay within the original engine limits, you could create a invisible wall around the chair that lowers when you have pressed the switch and thus makes the the chair accessible to the player. 0 Share this post Link to post
Memfis Posted May 13, 2012 I think it should be possible with voodoo dolls. I'm trying to do it right now. 0 Share this post Link to post
GreyGhost Posted May 13, 2012 There's probably several solutions, depending on the target source port. A voodoo doll on a conveyor with an exit line near the end is one option, pressing the switch in the base removes the first barrier to the exit and returning to use the chair removes the second - I could post a demo wad later. Another option is an ACS script that disables the chair exit until the other switch is pressed, something similar to the example on this page. 0 Share this post Link to post
Memfis Posted May 13, 2012 Here is a solution with vanilla actions only - http://speedy.sh/6WPzN/domichek.zip (exit works after you enter the white "teleporter") The downside is that the player loses 1 HP. It may be possible to make voodoo doll eat one health potion before the barrel explosion, but I need to think about this. 0 Share this post Link to post
40oz Posted May 13, 2012 this is a lot of tedious work for an exact effect, when the basic gist of it is that you want the player to go somewhere, and then backtrack to where he originally was, which can be done a variety of ways. (The original Doom levels are loaded with examples of this!) A switch can operate a door that gives you access to the exit switch, or the switch could be barricaded by a door that requires a key, etc. Is it absolutely necessary that the exact linedef of your exit switch stays inactive at one point, and usable at another? And why is everybody so quick to suggest scripts? 0 Share this post Link to post
andrewj Posted May 13, 2012 Another idea: Have two copies of the bedroom, one where the chair does nothing, and a second one where the chair exits the map. Lets say they both sit at the end of a certain hallway. Initially the 2nd one is closed off. When the player presses the switch, it opens the 2nd bedroom and closes the first. (in fact you probably need a walk line that closes the 1st bedroom, and the switch opens the second). Anyway, when the player finally gets back they probably won't notice travelling a little bit further to get "back" to the bedroom (which is now the 2nd one). 0 Share this post Link to post
Gez Posted May 13, 2012 40oz said:And why is everybody so quick to suggest scripts? Because it's the best tool for that job. On the Hardwareworld forums, someone is asking for the best way to fix a plank to a wall to make a shelf. "Get a couple of angle brackets, screws, and a screwdriver", says one. "Wait, instead of a screwdriver, you can use a wrench to grab the screws and then you get leverage to drive the screws", says someone else. "That way, you don't need a screwdriver!" "Ugh that's too fancy. Just pile up cinderblocks on the floor and lay the plank on the cinderblock piles", interjects the last person. "Why are you so quick to suggest screws?" 0 Share this post Link to post
GreyGhost Posted May 13, 2012 Here's a quick and dirty example using a voodoo doll. The teleport pad represents your chair (which opens the exit door) and the "hidden somewhere in the Base" switch (which is shootable on the near side if you get tired of walking) opens the other door. Being a test map, I've replaced the walkover exit (at the red line) with a teleporter that returns the doll to its start point, so you can run it through those doors as often as you like. The length and speed of the conveyor isn't critical, for your purpose in a real map it could be made slower and much shorter. 0 Share this post Link to post
TimeOfDeath Posted May 13, 2012 lols, whatever Gez. :P Vanilla is compatible with so many more source ports than zdoom. vanilla example - the reddish switch is the exit switch, you can press it repeatedly but it doesn't exit until after you press the wood switch. 0 Share this post Link to post
Memfis Posted May 13, 2012 TOD: haha, so simple! Why I didn't think of using Romero's head? :) 0 Share this post Link to post
Buu342 Posted May 13, 2012 Thanks for your replies. Im not quite sure on which one to use, but i rather do scripting because i don't need to create more things or complicate the way that people exit. im not the best scripter, though i can do things like display messages and cameras, but im not sure on what to do. Anyone help? 0 Share this post Link to post
TimeOfDeath Posted May 13, 2012 zdoom-compat example - uses an 'actor hits floor' thing, pressing the switch gives the thing the "End - Normal" special (make sure to also tag your chair sector something unique). Memfis - at least yours looks like a real bedroom. :) 0 Share this post Link to post
Melon Posted May 13, 2012 This page on the ZDoom wiki has an example of a script that ends the level after you've hit some other switch in the level. 0 Share this post Link to post
Buu342 Posted May 13, 2012 TimeOfDeath said:zdoom-compat example - uses an 'actor hits floor' thing, pressing the switch gives the thing the "End - Normal" special (make sure to also tag your chair sector something unique). Memfis - at least yours looks like a real bedroom. :) thanks! that worked perfectly. I HAVE 1 PROBLEM. When i press the switch, i also wanted to execute a script that would display a message. 0 Share this post Link to post
40oz Posted May 14, 2012 Gez said:"Ugh that's too fancy. Just pile up cinderblocks on the floor and lay the plank on the cinderblock piles", interjects the last person. "Why are you so quick to suggest screws?" Doom mapping is not that primitive. 0 Share this post Link to post
Buu342 Posted May 14, 2012 TimeOfDeath said:Here you go. Thanks! That worked BUT you made some mistakes, thus making the switch not work. You put the script number in map number. Also the script was 239. You only wrote script one. So i just put a one in the map and script number and it worked like a charm. Thanks! Also could some one help me with this? http://www.doomworld.com/vb/doom-editing/60007-change-players-skin-without-changing-the-doom-marines-skin/ Thanks! Ill put everyone in the credits! 0 Share this post Link to post