Wild West map-mechanics task

Sorry i’ve asked for so much help on my Wild West mode. I’m just wondering how to get the player to drop their cash and consumables when they get KO’d?

How to make players drop items upon knockout? - #2 by mysz

Mark a solution if your question is solved!

3 Likes

This is so that the player drops a predetermined item. I’m talking about whatever is in their inventory except for their gadget.

Im pretty sure the mechanic you’re talking about is already a feature in GKC and it should be in the map settings

Ok nvm it just gives you the option to “keep” or “delete”

I’ll figure smtn out for you later (I’m in a strict class rn)

1 Like

Unfortunately, I believe it is Gimpossible to drop an item at a non-predetermined location. The best we can do is give the items to the player that knocked them out.
I’ll see if I can figure it out if I have time before Arrow finishes!

That would be great, as it’s supposed to be the player who ko’d you stole your items!!!

1 Like

So you want like a Fortnite Drop system? But they still keep one item?

Here's the solution!

Alrighty.

  1. Get a knockout manager. Then, 2 properties, an item manager, and an item granter for each item that you want to drop, like so.

  1. Set the properties to all be player scope and set them to their respective names. (My nomenclature is lwk kinda garbage.)

  1. Set the item managers to update the amount properties of their respective items.

  1. Add a block to the knockout manager and set it up like this. Set the top parameter of the “set property” block to be the grant property of an item, and then the bottom parameter should be the amount property that is updated by the item manager. Repeat this for each item that is being transferred on knockout.

  1. Almost done! Add this block to each item granter. Make sure that the property it’s getting is the one that was updated by the knockout manager. Set each item granter to grant their respective items, if you haven’t done that already.

  1. It should work! Make sure to test it to see if it works. If it doesn’t, look through the blocks first to see if you set something to be the wrong property.

Sorry if this is a little complicated. I spent a good bit on it.

This might work for what you want to do: Making a player drop all items on knockout (🟩)

Grrrr… this one is more memory efficient, easier, and actually drops the items.

It’s not fair 'cause it should just drop the items where the guy that was knocked out respawns.

Love your idea, but it’s not working. Does the setup know who KO’d that one player so it can grant items? I successfully got it to ‘steal’ the items.

By steal, I assume you mean that the items are removed from the inventory of the player that was knocked out?
If you have the resource and consumables set to delete on knockout, than that would break the system I’ve set up. Sorry I didn’t consider deleting the items when I made the mechanism. :sweat_smile:
Gimme a bit and I’ll fix it!

nothing is impossible!

2 Likes

There ARE certain things that are Gimpossible, for instance, changing the music that is playing mid-game. However, what I said was impossible wasn’t actually impossible because I forgot we could make players drop items.

2 Likes
This should fix it.
  1. Set items and resources to be kept on knockout.
  2. Set the item granters to grant -999999 on recieving ‘Remove items’ or something like that.
  3. At the bottom of the block in the knockout manager add a ‘broadcast on channel as knocked out player’ and have it broadcast to ‘Remove items’.

Let me know if this works!

2 Likes

THANK YOU!!! U da best

1 Like

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