Carrying more than one of a certain item between maps

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: Carrying more than one of a certain item between maps

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

by Ichor » Mon Jul 27, 2009 3:45 pm

Ok, I finally got a chance to test it, and it seems to be working alright.

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

by Gez » Mon Jul 27, 2009 3:20 am

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

And here's the patch.

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

by Ichor » Sun Jul 26, 2009 5:40 pm

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

by Gez » Sun Jul 26, 2009 5:34 pm

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

by Ichor » Sun Jul 26, 2009 4:39 pm

Would that apply to non-hubs as well (i.e. doom2.wad)?

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

by Gez » Sun Jul 26, 2009 4:10 pm

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

by Ichor » Sun Jul 26, 2009 3:39 pm

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

by Gez » Sun Jul 26, 2009 3:32 pm

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

by Ichor » Sun Jul 26, 2009 3:27 pm

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

by Gez » Sun Jul 26, 2009 3:19 pm

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

by Ichor » Sun Jul 26, 2009 2:46 pm

Heh, didn't see that. Still, that didn't work either.

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

by Project Shadowcat » Sun Jul 26, 2009 2:44 pm

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?

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

by Ichor » Sun Jul 26, 2009 2:34 pm

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.

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

by Project Shadowcat » Sun Jul 26, 2009 1:15 pm

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.

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

by Rachael » Sun Jul 26, 2009 1:07 pm

[wiki=Classes:Inventory]-INVENTORY.INTERHUBSTRIP[/wiki] not good enough for you?

Top