Help with item system

How to I make it so that I can only have either a evil eye, blaster, or quantum portal? Please help! Because I want to players to have only 1 primary, 1 secondary, and 1 utility

Uh don’t you just have to give only those items?
Explain more please
Oh wait

I can create block code rq

1 Like

No, you can only have EITHER those 3 items, like you have to choose one, but then you can’t get another

ok well i have an idea, maybe make it a vending machines device, at the start of game give them enough money for one gadget, and thats it!

Multiple ways my adhd brain is understanding this

  1. You want them to select between them. You would remove the current gadget then give a new one.
  2. You would have buttons and deactivate the others (player relay only) once one is selected
  3. You just give one gadget

item manager checks every second (trigger loop) if the other Gadgets are in hand and will take it out of the inventory

1 Like

Basically, I want you to be able to buy different gadgets, and then
re-equip them

Don’t edit my topic please, it was wrong anyway

1 Like

wait wdym explain more pls

Uh block code
Item manager
Properties

Use three if statements with a property corresponding to each gadget, if “insert property item” selected, remove other properties(corresponding to items)

@AKat this might work…

1 Like

This would be pretty easy to make in my opinion. Just have 3 inventory slots. Then when the player chooses a gadget have that check once for the other gadgets available.

1 Like

But I want you to always be able to go back and select a different blaster

1 Like

Yeah, each gadget would have a different check.

1 Like

so like where you can only grab one a change one at a time idk…

Or if you want to make it really simple, make it so that it grants negative of the other gadgets depending on which gadget you purchase.

1 Like

dum idea warning on my part

Can you sketch the idea out?
Because I don’t think ingame image reference works here
I’m just getting confused.

Alright here is what it means:
The OP wants to know how to make it so that only a certain gadget you bought is in your inventory. There will be three classes of gadgets. You can only have one of each class. To do so, either place a checker on the place where you buy the gadget or select it and have it delete certain gadgets in that class. Or item granters that grant negative amounts of the other items or use the item manager device.


You could use block code, but its much easier without it.

1 Like

So, you want them to only have 1 of those items?

Pretty sure this solves it. Might want to mark this for the solution unless it doesn’t solve every issue.