Carrying more than one of a certain item between maps

Moderator: GZDoom Developers

User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Carrying more than one of a certain item between maps

Post by Ichor »

How about something like +INVENTORY.CARRYOVERMAPS (for lack of a better name), where more than one of a specific item can be carried over between maps instead of stripping all but one of them? I know about the mapinfo option, but that would allow all of the items to be carried over. As far as I know, there's nothing that allows just one item to be carried over (like gold or something).
User avatar
Rachael
Posts: 13950
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Carrying more than one of a certain item between maps

Post by Rachael »

[wiki=Classes:Inventory]-INVENTORY.INTERHUBSTRIP[/wiki] not good enough for you?
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: Carrying more than one of a certain item between maps

Post by Project Shadowcat »

SoulPriestess wrote:[wiki=Classes:Inventory]-INVENTORY.INTERHUBSTRIP[/wiki] not good enough for you?
I think it is... I looked at the Wiki article and there's a LOT of stuff in there. It can be hard to pick out what you need. Quite daunting, really.
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Re: Carrying more than one of a certain item between maps

Post by Ichor »

SoulPriestess wrote:[wiki=Classes:Inventory]-INVENTORY.INTERHUBSTRIP[/wiki] not good enough for you?
It's worse, actually. That strips all of that item I have instead of just leaving me with one.
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: Carrying more than one of a certain item between maps

Post by Project Shadowcat »

Ichor wrote:
SoulPriestess wrote:[wiki=Classes:Inventory]-INVENTORY.INTERHUBSTRIP[/wiki] not good enough for you?
It's worse, actually. That strips all of that item I have instead of just leaving me with one.
Isn't that what the "-" is for?
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Re: Carrying more than one of a certain item between maps

Post by Ichor »

Heh, didn't see that. Still, that didn't work either.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Carrying more than one of a certain item between maps

Post by Gez »

There's a MAPINFO flag. It lets you keep all items (that do not have INTERHUBSTRIP) between levels.
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Re: Carrying more than one of a certain item between maps

Post by Ichor »

Yes, but I only want to keep more than one of just one specific item between levels, not all of them.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Carrying more than one of a certain item between maps

Post by Gez »

Meh, then use ACS to store the item's amount when leaving a map and restore it when entering the next.
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Re: Carrying more than one of a certain item between maps

Post by Ichor »

Eh...I was hoping for something simpler, but I guess I'll have to try something else.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Carrying more than one of a certain item between maps

Post by Gez »

Well, it wouldn't be too hard to add an inventory.interhubamount which would have a default value of 1, and then deprecate INTERHUBSTRIP to be interpreted as a interhubamount of 0.
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Re: Carrying more than one of a certain item between maps

Post by Ichor »

Would that apply to non-hubs as well (i.e. doom2.wad)?
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Carrying more than one of a certain item between maps

Post by Gez »

If it's not a hub, then each level is its own hub as far as the code is concerned.
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Re: Carrying more than one of a certain item between maps

Post by Ichor »

Ok, good. And thank you. The alternative would have been quite messy, and the code for this thing is already messy enough, heh.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Carrying more than one of a certain item between maps

Post by Gez »

Alright. Here's an "interhubamount" experimental build of ZDoom. Let me know if it works; presumably it should.

And here's the patch.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”