[Fixed] Can't pickup more than one of each key.
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.
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.
-
-
- Posts: 10773
- Joined: Sun Jul 20, 2003 12:15 pm
Another Typical Stupid Xaser Request
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?
-
- Posts: 2914
- Joined: Fri Dec 05, 2003 11:02 pm
-
- Lead GZDoom+Raze Developer
- Posts: 49194
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
-
- Posts: 366
- Joined: Tue Jul 15, 2003 3:49 pm
- Location: Oregon
-
-
- Posts: 10773
- Joined: Sun Jul 20, 2003 12:15 pm
-
- Posts: 154
- Joined: Sun Sep 28, 2003 10:01 pm
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:
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.
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);
}
}
-
- 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
To trigger a script which decides what to do.giest118 wrote:Why would you want to pick up two blue keycards?
Code: Select all
if(count > 1) { print(s:"why pick up another blue card"); }
-
- Posts: 292
- Joined: Wed Jul 16, 2003 9:26 pm
- Location: Most likely sleeping.
-
- Posts: 2914
- Joined: Fri Dec 05, 2003 11:02 pm
-
- Posts: 154
- Joined: Sun Sep 28, 2003 10:01 pm
-
-
- Posts: 10773
- Joined: Sun Jul 20, 2003 12:15 pm
-
- Posts: 2914
- Joined: Fri Dec 05, 2003 11:02 pm
-
- Posts: 292
- Joined: Wed Jul 16, 2003 9:26 pm
- Location: Most likely sleeping.
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 thats the ticket!
-
- Posts: 1816
- Joined: Wed Jul 16, 2003 7:21 am
- Location: NJ, USA
-
- Posts: 2914
- Joined: Fri Dec 05, 2003 11:02 pm
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.
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.