Maximum number of keys in a map?

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
invictius
Posts: 429
Joined: Fri Aug 03, 2012 6:44 am

Maximum number of keys in a map?

Post by invictius »

I think in zdoom you can make the skull 3 colours and another 3 separate instead of keycards but I'm sure with scripting it could be impossible. What about prboom wads?
Gez
 
 
Posts: 17835
Joined: Fri Jul 06, 2007 3:22 pm

Re: Maximum number of keys in a map?

Post by Gez »

You can define up to 255 lock numbers in [wiki]LOCKDEFS[/wiki]. So you could have 255 different keys in a single map without problems.

In fact, you can have even more unique keys than that, but you are limited to 255 locks. That means that some keys would be redundant, or perhaps some locks would require multiple keys, or perhaps some keys would not open any lock at all. If that's not enough, you can also define up to 256 [wiki=Classes:PuzzleItem]Puzzle Items[/wiki] that can work largely like keys. And then an unlimited number of other token inventory items that you can check with scripts. If you want to make a map where you have to collect 10 000 different items in order to open all the doors, you technically can. (You'll probably get bored out of your mind designing it before it's 1% complete, but that's a different issue.)

For PrBoom, you're limited to Boom's locks. That means you have the following locks only:
  • Red lock (vanilla: skull or key)
  • Yellow lock (vanilla: skull or key)
  • Blue lock (vanilla: skull or key)
  • All colors lock (Boom, skull or key)
  • Red skull lock (Boom)
  • Yellow skull lock (Boom)
  • Blue skull lock (Boom)
  • Red card lock (Boom)
  • Yellow card lock (Boom)
  • Blue card lock (Boom)
  • All keys lock (Boom: all six keys)
Note that the Boom locks are only available in Boom's generalized locked door type. They didn't add separate locked door specials for these combinations.
invictius
Posts: 429
Joined: Fri Aug 03, 2012 6:44 am

Re: Maximum number of keys in a map?

Post by invictius »

Gez wrote:You can define up to 255 lock numbers in [wiki]LOCKDEFS[/wiki]. So you could have 255 different keys in a single map without problems.

In fact, you can have even more unique keys than that, but you are limited to 255 locks. That means that some keys would be redundant, or perhaps some locks would require multiple keys, or perhaps some keys would not open any lock at all. If that's not enough, you can also define up to 256 [wiki=Classes:PuzzleItem]Puzzle Items[/wiki] that can work largely like keys. And then an unlimited number of other token inventory items that you can check with scripts. If you want to make a map where you have to collect 10 000 different items in order to open all the doors, you technically can. (You'll probably get bored out of your mind designing it before it's 1% complete, but that's a different issue.)

For PrBoom, you're limited to Boom's locks. That means you have the following locks only:
  • Red lock (vanilla: skull or key)
  • Yellow lock (vanilla: skull or key)
  • Blue lock (vanilla: skull or key)
  • All colors lock (Boom, skull or key)
  • Red skull lock (Boom)
  • Yellow skull lock (Boom)
  • Blue skull lock (Boom)
  • Red card lock (Boom)
  • Yellow card lock (Boom)
  • Blue card lock (Boom)
  • All keys lock (Boom: all six keys)
Note that the Boom locks are only available in Boom's generalized locked door type. They didn't add separate locked door specials for these combinations.
What are some wads that use puzzle items, I don't think I've ever played any?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Maximum number of keys in a map?

Post by Graf Zahl »

ZDoom community map 1 contains one, taken from Hexen (the pump gear near the start.)
Post Reply

Return to “General”