Counter-based teams

How can I make a game where if one button gets pressed more often, it is a team game, and if the other one gets pressed more often, it is every man for himself.

2 Likes

Could explain better? Are the buttons game overlays? Is their exact number of presses for the button? It makes it more simple if their is a exact number.

This’ll take a lil bit of block code (just warning you!!), but I’m working on it :slight_smile:

1 Like

put a counter above the button, then make it so that whichever has more on the counter, happens.

ok Hdangerzones has it

no, they are just the button devices. I will have a spawn pad for before the game with an enclosed area and the two buttons, and when the game starts, you will teleport into the arena.

1 Like

button pressed → in or decrement counter. counter, when certain amount reached, team switcher. if amount not reached. keep the mode as it is.

2 Likes

I will try finding a way.

Thank you!!!:+1::+1::+1::+1::+1::+1:

Voting system

I’m trying to minimize the amount of block code, so this is what you’ll need!

  • Property x2
  • Counter x2
  • Button x2
  • Trigger x2

Set your property to the two possibilities: FFA (free for all) and cooperative. Also make sure each property type is a number.

Wire each button to a counter (button pressed > increment counter).
Now, go into each counter and select the “Property” menu. (I’m using the FFA counter as the example, you need to do this for both.)

Enable it to update a property, and select the corresponding property.

Currently working on the block code, will edit this post with updates :slight_smile:

UPDATE!!!
One of the counters should be invisible and can’t be activated through collision. Set the delay to how long they’ll have to vote. I used 120, so they’ll have 2 minutes to vote!


Now, wire that trigger to the other one (triggered > trigger).

Now, go into your second trigger and put in the following block code:


The bottom part is bonus. If each side gets an even amount of votes, you can make it broadcast on “Revote”. This is optional, but if you want this to be an option go into your counter settings and make them both reset when receiving on “Revote” (located in the channels menu).

Teams vs FFA system

If it’s FFA, then leave everything! Easp peasy. Now, if it’s teams, this is where you’ll need a system.

You’ll need:

  • Relay x1
  • Team switcher x2
  • Trigger x1

ASdd your relay, and make sure it targets “All Players”. Make it relay when receiving on “Cooperative Mode”.


Now, wire it to an invisible, no collision trigger. (relay triggered > trigger). Put in the following blocks:

Now, add your team switchers. Set both to switch to a specific team, but one should switch to Team 1, while the other switchees to Team 2.

Make the first team switcher (the one that switches to team 1) switch when receiving on “T1”, and the second (that sets you to Team 2) to switch when receiving on “T2”.


4 Likes

Thank you so much! this is making so much sense so far!

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