I need help. So when a sentry is dead and drops an item, I want it so only one team can pick it up. I tried using barriers but the item would just spawn on top of it. I considered using an item granter, but I decided against it because it would be too easy.
Sorry if I did anything wrong. I already searched it up.
How the Game works
So basically this is how my game works in simple terms:
(I’m not advertising just trying to explain it to you)
It’s a war. Each team has a King. The enemy team has to knock out
the king. The king will drop an item that the enemy team collects
and uses it to win the game.
Make a property called “Team” make it number property, make it 0 but becomes 1 when your on the right team. Then make it activate a trigger when the sentry is k1lled.
The trigger has block code like this:
If | Get Property | "Team" = 1 | Transmit on | "Item"
@JustAToaster Can you send a screenshot on what the block code looks like?
I don’t know much about block code, sorry.
1 Like
What does “Team” = 1 mean?
Where do I find that block?
Thanks so much!! I’ll test this out
1 Like
How did you get the number 1 connected to “team?”
I think I did something wrong
The property called “Team” is a number property, you need to place down the property device and name it “Team” then make it a number property that defaults at 0
Edit - Wait I know what you mean now, Im pretty sure its in the logic section, its the = sign with two holes on either side. You need to put that block inbetween the “Get property - Team” block and the “1” block.
Get the “1” block from the math section, I think it looks like 0 on default.
1 Like
Yeah I’ve got this so far
Ohhhh that makes sense. I was looking at the Essentials cause
the block was dark blue
So if I put the number 1 does that mean only team 1 can pick up the item?
Make a separate system so if the player becomes team 1 their property becomes 1 which activates the system, oh yea, make the property player scope.
Basically lets say you have a button that makes the player team 1, then that button also triggers a trigger that has block code like this:
Set Property |"Team"
Amount |1
What device do I name “item” for the broadcast message on channel?
Is it the sentry?
The channel “Item” activates an item granter
Oh…there’s no way to protect an item drop with a barrier?
I never got a barrier. I’m asking if there is a way to protect it
with a barrier. I gtg for dinner I’ll be here tomorrow
Thanks for everything
What are you talking about? Where did you get a barrier
1 Like
Is the team that can pick up the item always the same? If so…
First, place a relay. Make it relay as all players on the team that shouldn’t be able to take the item.
Copy the relay. Let’s name one of them James, and the other one Larry.
Then, place a barrier over the sentry. Give it team activation scope, and have it off by default.
The last device you’ll need is a wire repeater. Give it the same delay as the respawn time on your sentry.
Connect the sentry to James like so: sentry knocked out → relay
Connect James to the barrier such that: relay → activate barrier
Connect the sentry to the wire repeater so that: sentry knocked out → repeat wire pulse
Connect the wire repeater to Larry so that: repeat wire pulse → relay
Finally, connect Larry to the barrier so that: relay → deactivate barrier
The only problem with this is that, if the other team doesn’t pick up the item before the sentry respawns, the team that’s meant to be unable to pick it up will be able to do so.
If you want to fix this, I have a couple questions:
- Should the team that’s unable to pick the item up ever be able to have that item?
- If they can, how are they able to?
- How complicated of a system are you willing to make?
2 Likes
So basically this is how my game works in very simple terms:
(I’m not advertising just trying to explain it to you)
It’s a war. Each team has a King. The enemy team has to knock out
the king. The king will drop an item that the enemy team collects
and uses it to win the game.
Also, the king will never respawn it is a one time d3ath.
No, because there are two Kings.
Anything to fix this. I don’t want too much block code but I can try.
I know the basics of devices and tech.
ALSO: I’m currently at 77% memory used so nothing too big
1 Like
This is actually a pretty simple fix then!
You don’t need any of the stuff I described earlier.
Place down a relay and an inventory item manager. The item manager should override the max amount of the item down to 0. It should not be active by default and should have a team activation scope.
When the game starts, after the kings have been selected and changed to their team, have the relay broadcast as all players on the king’s team to activate the item manager.
Woops!
Sorry for taking so long. I thought I’d posted this, but it was actually sitting in my drafts.
2 Likes
Thanks! Do I connect the relay and item manager to the sentry?
And does this mean the teams can’t pick up the item at all?
Meaning they can’t win the game?
waitwaitwait what if the sentries each drop different items??
MINDBLOWN!!