[Fixed] Can't pickup more than one of each key.

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
Xaser
 
 
Posts: 10773
Joined: Sun Jul 20, 2003 12:15 pm

Another Typical Stupid Xaser Request

Post by Xaser »

I noticed that you can't pick up a key if you have a key of the same type (when you pick up a blue keycard, for example, you can't pick up any more blue keycards). I find this rather annoying, and in previous Zdoom versions (1.22) it wasn't like this. Could this could be changed?
User avatar
Giest118
Posts: 2914
Joined: Fri Dec 05, 2003 11:02 pm

Post by Giest118 »

Why would you want to pick up two blue keycards?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49194
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Because it was possible in vanilla Doom...? (On the other hand you can take away a key with scripting so it might make some sense to leave the key in the map.)
User avatar
SargeBaldy
Posts: 366
Joined: Tue Jul 15, 2003 3:49 pm
Location: Oregon

Post by SargeBaldy »

I like the idea of being able to grab more than one. Not only was that the original behavior, I like the idea of cleaning them up from all over the place in maps with a bunch of them and stuff.
User avatar
Xaser
 
 
Posts: 10773
Joined: Sun Jul 20, 2003 12:15 pm

Post by Xaser »

SargeBaldy wrote:I like the idea of being able to grab more than one. Not only was that the original behavior, I like the idea of cleaning them up from all over the place in maps with a bunch of them and stuff.
Yeah, especially in certain Mock2 maps (Map25 and map39 in particular).
User avatar
Virgil
Posts: 154
Joined: Sun Sep 28, 2003 10:01 pm

Post by Virgil »

You can still do that, even if you can't pick up the same key more than once. One way to do it is to change the thing special of the keys to a script such as this:

Code: Select all

script 1 (void) //takes blue skull key away if there are more blue skull keys around the level
{
    if(thingcount(T_BLUESKULLKEY, 0) > 0)
    {
        TakeInventory("blue key or whatever", 1);
    }
}
In this variation, you won't get to see the nice shiny blue skull symbol on your status bar until you get the last key. But yeah, it's sort of a pain to have to make scripts just to pick up another key. I think there should be some option in the MAPINFO lump, like "MultKeyPickup 1", that lets you customize multiple key pickup for every individual map.
User avatar
Hirogen2
Posts: 2033
Joined: Sat Jul 19, 2003 6:15 am
Operating System Version (Optional): Tumbleweed x64
Graphics Processor: Intel with Vulkan/Metal Support
Location: Central Germany

Post by Hirogen2 »

giest118 wrote:Why would you want to pick up two blue keycards?
To trigger a script which decides what to do.

Code: Select all

if(count > 1) { print(s:"why pick up another blue card"); }
User avatar
Killo Zapit
Posts: 292
Joined: Wed Jul 16, 2003 9:26 pm
Location: Most likely sleeping.

Post by Killo Zapit »

Could be useful if your cheating/testing with idkfa and need to trigger a special on a key.
User avatar
Giest118
Posts: 2914
Joined: Fri Dec 05, 2003 11:02 pm

Post by Giest118 »

All I can see from this thread is that people want to pick up 4000 blue keycards in the same map and say, "Look at me! I'm the blue-keycard master!"

And um... generally idfa is more useful than idkfa for testing maps.
User avatar
Virgil
Posts: 154
Joined: Sun Sep 28, 2003 10:01 pm

Post by Virgil »

Idkfa != idfa by one letter. I typed the extra 'k' a lot when I was playtesting my levels and then had to start all over again because of a key's special.
User avatar
Xaser
 
 
Posts: 10773
Joined: Sun Jul 20, 2003 12:15 pm

Post by Xaser »

Virgil wrote:Idkfa != idfa by one letter. I typed the extra 'k' a lot when I was playtesting my levels and then had to start all over again because of a key's special.
Hey, thanx for yet another reason to change the bluekey thing!
User avatar
Giest118
Posts: 2914
Joined: Fri Dec 05, 2003 11:02 pm

Post by Giest118 »

All you have to do is use idfa and NOT idkfa and your problems are over, dammit! What's difficult to understand about that?

And I still don't get why one would want to collect 4000 blue keycards in one level just for the sake of collecting 4000 blue keycards in one level.
User avatar
Killo Zapit
Posts: 292
Joined: Wed Jul 16, 2003 9:26 pm
Location: Most likely sleeping.

Post by Killo Zapit »

giest118 wrote:All you have to do is use idfa and NOT idkfa and your problems are over, dammit! What's difficult to understand about that?

And I still don't get why one would want to collect 4000 blue keycards in one level just for the sake of collecting 4000 blue keycards in one level.

Ah ha! But what if you want to test a special on a key through a door locked by another key! ... Er... well I guess idclip would work. Actually, idkfa is much more commonly known then idfa. Or what if you need to use give all for inventory items? Yeah that’s the ticket!
User avatar
cccp_leha
Posts: 1816
Joined: Wed Jul 16, 2003 7:21 am
Location: NJ, USA

Post by cccp_leha »

For testing purposes, I personally bind a key to "give all".
User avatar
Giest118
Posts: 2914
Joined: Fri Dec 05, 2003 11:02 pm

Post by Giest118 »

Maybe I sould have underlined the 'k'... alright,

use idfa and NOT idkfa. Idkfa is stupid. WHY DO PEOPLE USE IDKFA WHEN IDFA IS SO MUCH MORE USEFUL FOR TESTING!? WHY!!!!????
SERIOUSLY!

I will not rest until someone gives me a 902947493-paragraph explanation as to why you would want to pick up more than one key of the same type in the same map.

Obviously, people would want to pick up 4000 blue-keycards just so they could say, "I have a handfull of blue keycards and a headfull of... er... blue."

And I must say again, idfa and not idkfa.

And I will repeat everything I just said, only to make a point.

Maybe I sould have underlined the 'k'... alright,

use idfa and NOT idkfa. Idkfa is stupid. WHY DO PEOPLE USE IDKFA WHEN IDFA IS SO MUCH MORE USEFUL FOR TESTING!? WHY!!!!????
SERIOUSLY!

I will not rest until someone gives me a 902947493-paragraph explanation as to why you would want to pick up more than one key of the same type in the same map.

Obviously, people would want to pick up 4000 blue-keycards just so they could say, "I have a handfull of blue keycards and a headfull of... er... blue."

And I must say again, idfa and not idkfa.

And I will repeat everything I just said, only to make a point.

Maybe I sould have underlined the 'k'... alright,

use idfa and NOT idkfa. Idkfa is stupid. WHY DO PEOPLE USE IDKFA WHEN IDFA IS SO MUCH MORE USEFUL FOR TESTING!? WHY!!!!????
SERIOUSLY!

I will not rest until someone gives me a 902947493-paragraph explanation as to why you would want to pick up more than one key of the same type in the same map.

Obviously, people would want to pick up 4000 blue-keycards just so they could say, "I have a handfull of blue keycards and a headfull of... er... blue."

And I must say again, idfa and not idkfa.

And I will repeat everything I just said, only to make a point.

Maybe I sould have underlined the 'k'... alright,

use idfa and NOT idkfa. Idkfa is stupid. WHY DO PEOPLE USE IDKFA WHEN IDFA IS SO MUCH MORE USEFUL FOR TESTING!? WHY!!!!????
SERIOUSLY!

I will not rest until someone gives me a 902947493-paragraph explanation as to why you would want to pick up more than one key of the same type in the same map.

Obviously, people would want to pick up 4000 blue-keycards just so they could say, "I have a handfull of blue keycards and a headfull of... er... blue."

And I must say again, idfa and not idkfa.

Return to “Closed Bugs [GZDoom]”