Maximum number of keys in a map?

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Maximum number of keys in a map?

Re: Maximum number of keys in a map?

by Graf Zahl » Sun Feb 25, 2018 3:25 am

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

Re: Maximum number of keys in a map?

by invictius » Sun Feb 25, 2018 2:08 am

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?

Re: Maximum number of keys in a map?

by Gez » Sat Feb 24, 2018 8:35 am

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.

Maximum number of keys in a map?

by invictius » Sat Feb 24, 2018 8:20 am

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?

Top