How do I steal from someone

I’m not just looking to take it out of their inventory but you have to be close enough to take it

1 Like

I don’t think that’s possible.

I’d say something with blocks and inventory managers(is that what they’re called?)

Yes. You should be able to make this by using inventory managers, zones, and complicated other stuff. Give me some time to make a guide.

you could also use player coordinates device

1 Like

The thing is is that when you do that, the other players could also steal.

Ok I’ll wait until you make a guide

This is what I have so far.


Don’t mind the pokeballs. I’m making this in the same game as another game I’m making.

4 Likes

Ok. I think I’m finished. I don’t have another person to test it with, but let me know if it doesn’t work.

What it looks like and does


It is pretty simple unto how it SHOULD work. When 2 players step into opposite zones, it increments counters and updates properties. If both properties are equal, a checker will check to see if both players are in the zones and if they are, make a button where you can steal from another player. Then, it SHOULD check to see how many of an item (I did red seeds) the other player has. It then updates another property to the number of seeds, clears the other players inventory of that item, and grants those to the triggering player.

Materials

x2 Zones
x3 Counters
x3 Properties
x1 Checkers
x1 Overlays
x3 Wires
x1 Inventory Managers
x1 Item Granter

Step 1

Place the 2 zones down next to each other. Pictures will be shown at the end of each step. Place the 2 counters horizontally of the zones and attach the wires to them. Make the wires so that if a player enters the zone, it increments the counter. Make a channel for when the player steps outside the zone called decrement. Then, set the counter’s decrement setting to that channel.
Screenshot 2024-09-29 09.03.53
Screenshot 2024-09-29 09.04.32


Screenshot 2024-09-29 09.05.46

Step 2

Place the 2 properties and name player in zone 1 and 2. Set the property type to true/false and set the default value to false. Set the property scope to player and set the channel it sends on when the property changes to Checker. Also set the broadcast value to No. You can do this for both. Then, place the checker. Set the check when receiving on to Checker, set the check passes to button, and set the check fails to nobutton. Set the number of checks to 2 and the pass condition to All checks must pass. Check #1 and Check #2 are the same. Set check type to Value of Property, comparison to Equal to, and Value to 1. Make sure in Check #1 that the property it is checking is one of the properties we made in this step and Check #2 the other property.
Screenshot 2024-09-29 10.16.53


Screenshot 2024-09-29 10.18.00
Screenshot 2024-09-29 10.18.41

Screenshot 2024-09-29 10.19.19

Step 3

Place the overlay. The overlay type is Button and the position is Bottom Right. The overlay text should be Steal and it isn’t visible on game start. The channel it transmits on when you press it should also be Steal. Show the overlay should be on button and hide overlay should be on nobutton. Also set the visibility scope to player.
Screenshot 2024-09-29 10.29.20


Screenshot 2024-09-29 10.29.49
Screenshot 2024-09-29 10.30.00
Screenshot 2024-09-29 10.30.08

Step 4: Final!

Place the Inventory manager. Set the Item to whatever you want. Use by default should be Yes and show item alerts to No. There is no maximum amount. Set update property to Yes and set the property name to whatever you set your item as. We will make this property next. Last, set the clear inventory to Steal. Ok. Set your last property down. Name is your item, property type is Number, default value is 0, scope is global, and broadcast value is No. Ok, last part. Place the item granter with a wire from the overlay to the granter. Set the wire settings to When button pressed, grant item. Make the granted item your item. Then go into blocks. Make a When receiving on channel… and make the channel Steal. Get the Grant player item (Custom Amount) block and make the amount Get property and in a text box Your item.
Screenshot 2024-09-29 10.45.23


Screenshot 2024-09-29 10.46.02
Screenshot 2024-09-29 10.46.13
Screenshot 2024-09-29 10.43.29

Screenshot 2024-09-29 10.43.54
Screenshot 2024-09-29 10.47.05

Screenshot 2024-09-29 10.48.10
Screenshot 2024-09-29 10.48.32
Screenshot 2024-09-29 10.48.46
Screenshot 2024-09-29 10.49.10

Hope this helped!

3 Likes

Ok I’ll try and use this but could this work at any size?

I think. I was thinking you could use one larger zone and if two (or more) players were in the larger zone, they could still steal from each other.

Also, not sure if you can do this, but you might want to unmark a solution if there is a problem with this.

I guess I could have a lot of small zones so you have to get close

that too

Yeah, I can uncheck mark it

Oh, ok, when I first looked at the title of this post I was thinking of something totally different lol.

1 Like

Lol

Not that kind of steal :sweat_smile:

2 Likes

Ok. Sorry to get off topic but I need to go. I’ll try to get back on the forums later.

I tried using it and when I was in the zone in never gave me the overlay button but it’s fine I won’t need to use this mechanic for some time