Carrying more than one of a certain item between maps
Moderator: GZDoom Developers
Carrying more than one of a certain item between maps
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).
Re: Carrying more than one of a certain item between maps
[wiki=Classes:Inventory]-INVENTORY.INTERHUBSTRIP[/wiki] not good enough for you?
- 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
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.SoulPriestess wrote:[wiki=Classes:Inventory]-INVENTORY.INTERHUBSTRIP[/wiki] not good enough for you?
Re: Carrying more than one of a certain item between maps
It's worse, actually. That strips all of that item I have instead of just leaving me with one.SoulPriestess wrote:[wiki=Classes:Inventory]-INVENTORY.INTERHUBSTRIP[/wiki] not good enough for you?
- 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
Isn't that what the "-" is for?Ichor wrote:It's worse, actually. That strips all of that item I have instead of just leaving me with one.SoulPriestess wrote:[wiki=Classes:Inventory]-INVENTORY.INTERHUBSTRIP[/wiki] not good enough for you?
Re: Carrying more than one of a certain item between maps
Heh, didn't see that. Still, that didn't work either.
Re: Carrying more than one of a certain item between maps
There's a MAPINFO flag. It lets you keep all items (that do not have INTERHUBSTRIP) between levels.
Re: Carrying more than one of a certain item between maps
Yes, but I only want to keep more than one of just one specific item between levels, not all of them.
Re: Carrying more than one of a certain item between maps
Meh, then use ACS to store the item's amount when leaving a map and restore it when entering the next.
Re: Carrying more than one of a certain item between maps
Eh...I was hoping for something simpler, but I guess I'll have to try something else.
Re: Carrying more than one of a certain item between maps
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.
Re: Carrying more than one of a certain item between maps
Would that apply to non-hubs as well (i.e. doom2.wad)?
Re: Carrying more than one of a certain item between maps
If it's not a hub, then each level is its own hub as far as the code is concerned.
Re: Carrying more than one of a certain item between maps
Ok, good. And thank you. The alternative would have been quite messy, and the code for this thing is already messy enough, heh.
Re: Carrying more than one of a certain item between maps
Alright. Here's an "interhubamount" experimental build of ZDoom. Let me know if it works; presumably it should.
And here's the patch.
And here's the patch.