Key pad with a set sequence of keys? Created 20 years ago2004-05-10 02:46:26 UTC by Missmaul Missmaul

Created 20 years ago2004-05-10 02:46:26 UTC by Missmaul Missmaul

Posted 20 years ago2004-05-10 02:46:26 UTC Post #26268
Okay, there's a prefab on Prefabland that demonstrates this, but it's a broken link, so I turn here for help.

I'm looking to create something that requires a lot of buttons to be pressed in a certain sequence. (It's actually a DDR machine, but for all practical purposes assume I need a keypad.) I'm really not good with entities, so does anyone have some kind of tutorial that talks about how to do this?

In case this isn't totally clear, this is what I need to do:

There are 4 buttons on the ground. To access the next part of the secret, the player has to jump on the buttons 12 times in a certain sequence (say, up right right left down up down left left right down down). If they do the right sequence, a door opens (or something). If they don't, nothing happens.

Any help would be appreciated. Thanks.
Posted 20 years ago2004-05-10 10:11:09 UTC Post #26286
Jeesh Do you realise just how complex this map would have to be?

P.s. What would be the point in this anyway? If only you know how to open the secret then wouldn't it be a bit weird and all?

Mind you I am guilty of making this bin in an office that if you shot exactly 100 times a door opened somewhere. Sort of like a cheat.
Posted 20 years ago2004-05-10 10:11:13 UTC Post #26287
www.freewebs.com/cyax/ << Should be on his website
Posted 20 years ago2004-05-10 10:21:45 UTC Post #26290
My god. some of those maps were horrendous! (sorry to be blunt and all)
Posted 20 years ago2004-05-10 10:30:55 UTC Post #26291
Missmaul, I've tried to do this a while ago and it's very well possible but may require a lot of entities. What I did:

All four buttons target the resetter. Except the one that the player has to touch first. That one triggers a multimanager that sets the target of that button to the resetter and the target of the next button in the sequence to the multimanager that does the same for the following button. And so on, untill the whole sequence is done, in wich case the last multimanager that is triggered triggers a door and calls the resetter.

The resetter is a multimanager that sets all buttons targets to their original targets. This target-change is done with trigger_changetargets.

I hope this is clear to you... Oh, bytheway, please note that such puzzels are very annoying if the solution isn't hidden somewhere around...
Posted 20 years ago2004-05-10 11:14:56 UTC Post #26295
Well To do this you will need alot of multimanagers
You can have the button, then the trigger on the button, and then an invisible func_walltoggle over the trigger, So when you hit one button(trigger) It triggers the func_walltoggle of so you can press the other button, and, errrrr well take it from there its way to complex for me, and mind boggling, although it can be done, I just don't have the time to explain it.
Unbreakable UnbreakableWindows 7.9 Rating!
Posted 20 years ago2004-05-10 12:47:06 UTC Post #26309
Kind of a different approach, Unbreakable...

But what if the player stands on the wrong button? Then things have to be reset... and that will require another technique.

Believe me, I've did this once. I made a small keyboard, where the player had to enter a 4-digit code. Just looked at it and it took me about 35 entities. The keyboard also featured a cancel and an OK key BTW... :) But I explained my way a few posts earlier... It does require some experience with entities though.

Missmaul, take a look here:
http://collective.valve-erc.com/index.php?area=entity&game=hl
and search for multimanager and trigger_changetarget, the main entities you'll need for this trick.
Posted 20 years ago2004-05-10 16:43:18 UTC Post #26346
Don't forget, it should be fun for the player. This doesn't sound like it would be any fun in a game. :
Posted 20 years ago2004-05-10 18:01:46 UTC Post #26368
multiplayer? co-op? single? what kind of map is it? but it sounds boring...
Luke LukeLuke
Posted 20 years ago2004-05-10 18:29:43 UTC Post #26380
Ok, thanks for the help, guys. I appreciate it.

And don't ask what kind of map it is. It's not really meant to be played seriously, so...yeah. :)
Posted 20 years ago2004-05-11 02:59:20 UTC Post #26425
I remember having seen a sadistic mod somewhere, that featured puzzles in the style of: Search the right 3 buttons and press them in the right order. Do so within 2 minutes or you're dead. Notice the walls are covered with about 200 buttons.

I haven't even bothered downloading it. Maybe that was because the mappers only used white, grey, black and brown in their maps... Anyway...
Posted 20 years ago2004-05-11 09:03:01 UTC Post #26478
Half-Quake: Amen perhaps Captain?
Posted 20 years ago2004-05-11 11:49:26 UTC Post #26515
I remember it from your descripion. 'Sadistic' was used frequently in the review.
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 20 years ago2004-05-11 14:04:21 UTC Post #26524
Half-Quake: Amen. Indeed.

Yegh, don't remember me to that name! ;)
You must be logged in to post a response.