Revival System [🟨]

Hey!

This guide will teach you how to create a revival system, a system that accomplishes tagging within your own team. Tagging Teammate = Reviving
Tip: When you are playing with friends [1] let them SUFFER. Then, LAUGH at them. HAHA.


This way will not work with multiple teams. Only 1 team can be allowed to have it this way. [2]


Final Product


Ahh


So first, we want to detect if the player is tagged or “fallen” right? So I have a property for that, called “isPlayerTagged” which is a true and false.

Lemme show you.

We have it start out at false because the player doesn’t start out tagged.

Great, but we need it to change when tagged, or hurt. So whenever that happens, run these blocks.
image
These blocks basically just set the value of the tagged property to true.

Counter Way

Basically @Here_to_help reminded me that you can use counters instead of a true/false. I’m not doing it this way, just because it works out better for my map, but most of the time this will work better.

The tagged property is number instead and instead of running those blocks you increment a counter. The counter should update the property, and have a starting value of 0. It should also decrement on “revival”.

So now, we need to update these properties [on the player coordinates].


PlayerX and PlayerY.

Images


It’s the same for the other one, but just a different name.

since you clicked this, you get to suffer :slight_smile:
Sigma, sigma boy, sigma boy, sigma boy
Sigma, sigma boy, sigma boy, sigma boy
Sigma, sigma boy, sigma boy, sigma boy
Ok 3 lines is enough. I won’t let you read this anymore, anymore will make your braincells disappear

So, now we want the property for revival coordinates to be updated upon the whole team [3] So for that, we’ll use a relay. All players in specific team. That same team.

Player Moves → Trigger Relay

So now we need some blocks to run upon that. All it does is set the current x and y values to the revival ones.

Simple so far.

Now revival properties.


It’s the same, but global. Also, Y property is the same, but different name.
[You can also make it team scoped, but it won’t make a difference.]

Nicely done. But, we are not done yet. In the player coords. we need some blocks. This is the distance formula, calculating the distance between it all.


The distance variable carries the distance. Then, if the distance was in between -1.5 and 1.5, and the true/false property was true, then set the true/false property as false, broadcast message on revival. Then, whatever you want to happen to the player when revived, is done when receiving on “revival.” However, this is only done if the team number is 1. Aka, the team that can revive.

Also, for the counter way you would need to check if the isPlayerTagged property is equal to 1. You can also remove the part where you set the property to false. Or just do nothing at all so your friends can SUFFER.


Debugging

If you noticed, I have some activity feed in the blocks. That REALLY helps with the debugging. When it works, it provides an activity feed saying, “You are revived!”

You can also include an activity feed on the bottom of the if statement, like this.

Add Activity Feed Item For Everyone | Create Text With | [var] distance

I love eating people


Done!

However, this system is flawed, it works, but sometimes it just randomly follows another team. [4]

Also this system allows two people that need reviving to tag each other, and be revived.

@T_Sonic54 and yip [5] helped me playtest this, so shoutout to them!

How Hard Is This?
  • 1/10
  • 2/10
  • 3/10
  • 4/10
  • 5/10
  • 6/10
  • 7/10
  • 8/10
  • 9/10
  • 10/10
  • 11/10
0 voters

If you reply NEVER say “nice guide” the :heart: button exists :exploding_head:

sigma boy bardy out.


  1. Ehh, you probaby have none but I’m still putting the tip in here ↩︎

  2. As far as I know ↩︎

  3. The one that can revive. ↩︎

  4. I was testing on different tabs, maybe it works better when they all move at the same time. ↩︎

  5. on discord ↩︎

27 Likes

Great guide!
One suggestion: instead of using a true/false property, you can just use a number property and use counters so you don’t have to use 500 memory just to make it true.
1 - true
0 - false
Make true by increasing.
Make false my restarting.

8 Likes

I WAS going to do that but I realized that the blocks might not work. But now that I look at that, I realize I could have stored that in a property so nice catch! I’ll do that later.

6 Likes

nice guild [1]

Might as well steal the format for my upcoming guide. It’s nice that more advanced coding guides are still being made.


  1. kosmo would be proud ↩︎

7 Likes

Reboot card next?

3 Likes

Honestly that would be simple to implement would it not?
Just add a checker that when you tag your friend to revive them, it only works if property “Revive Cards” is greater than 0

5 Likes
Like this?

Intro

…

Final Product

…

Steps

…

Debugging

…

Outro

…

also @harharharhar83 you were replying to wired right?

3 Likes

This post was flagged by the community and is temporarily hidden.

Yes :DDDDDDDDDDDDDDD.

3 Likes

what device does this block code go in?

The blocks just have to run on behalf of the relay. That’s all. Most people would use a trigger.
SIGMA

2 Likes

Bit of a delay but time for some constructive critisizums critisms criti- y’know what I give up
Explanation: 9/10
*edit: fixed
Rarity: 8/10
Surprisingly this is a system that has only been done once before even though it seems common.
Fun: 8/10
*edit: he fixed it yay!
Pictures: 10/10
You used a good amount of pictures.
Effort: 8/10
This is a good system that looks like it took a while to make and you put a decent amount of effort into the guide
Spelling & Grammar: 10/10
No mistakes as far as I can see (which is pretty far I got 20/20 vision)
Formatting: 10/10
Nice job! The guide was split up using bars and heading and over all made it look better and easy to read.


Overall: 9/10

6 Likes

The explanation may not have been the most obvious but

This is for the distance calculation

And this is for the updating of the revival coords.

And this is the blocks for the coords

Some of the explanation things were before the actual step explaining what I was going to do. I still have to add some though.


i was not in the mood for humor that day lol


I saw one by leahciM but it didn’t make sense because you can’t tag people on your team.

'83 is tasty



I’ll change it but for my system it’s better just because of organization + it’s with other blocks

I AM A PROUD EATER OF '83

1 Like

Ehh, I guess you have a point here. But like it just makes it so much simpler because you can just use a counter and not block code. Organization, though…
I guess it does be better to be true/false. But like just leave yourself a note or something and it’d be fine. You’re not going to not understand what means what, and you can set it to variables in the future.


Woah woah woah buddy that’s a bit far.

2 Likes

You right, I’m just a little sleep deprived…

I agree…

2 Likes

I was trying to make freeze tag using this, but when the not tagged player went to untag the tagged players, they would still not be able to move
Here are the images


am i doing something wrong, also please ignore my horrible grammar

All of the non-taggers are on the same team, right? They’re all on team 1?


Note: It’s really late so I won’t be able to help you, sorry.

Sorry for just responding to this, i just saw this

Uhhh, isnt that, kind of, mean

1 Like

yeah, they are all on the same team

ahh
Try making the screen zoom out at 90%
Maybe that’s why the activity feed isn’t working.

also @harharharhar83 I updated the guide

3 Likes