How to make a certain resource shared

so i need help making a money resource shared between all players, how do i do this?

Players should be able to do this manually by dropping the items from their inventory.

i mean if 1 player spends money, it spends it for everyone. Like shared funds

You can use a property to keep track of the amount and use a screen overlay to show the amount. I’ll put the system together and reply with it once I have time.

1 Like

All you need to do is decrement or increment the counter anytime the cash(you can change this to whatever you want) is spent or gained.
image

Blocks
image
image

This part below is a clock that updates the overlay every half second, it’s not necessary if you update the overlay whenever you update the counter but it can be easier to use a clock like this.

  • Lifecycle
    image

Wires

  • Wire Repeater
    image

Wires

Wire
For some reason it’s not letting me put another picture here but all you need to do is put a wire going from the trigger to the wire repeater.

So like this? There might be a way to save memory, but I’m unsure of one.

You don’t need to use an actual item, a property works by it’s self.

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.