Im confused again. Eggnoodle's Voting

I was thinking of checking the highest value if highest, set tie to false, else if equal to highest, set tie to true, which after checking all indexes are cleared then broadcast results, then in the broadcast results blockcode, you would see if tie is set to false, if it is then broadcast a message that will vote out the player id with the highest amount of votes. (this is in my previous post, highestname should = a player id and a little tinkering to my original blockcode)
PS: if you need any pictures I can make some tomorrow.

2 Likes

When it comes to blocks i kinda need pics. If you would be so kind to send some pics over it would be highly appreciated. Thanks for helping me.

Please ask for help in the original post as making extra posts causes clutter.

Since I believe you don’t have any player ID’s I will give you a basic way to record player ID’s

Make something similar to this: Player ID's (Difficulty 5/10 🟨),
The layout should look like this (Player ID and Player ID_Index are number properties):


Create some more properties named Player Name and PlayerVotedOut, Player Name should be scoped to player and PlayerVotedOut should be scoped to global, Player Name should be text properties:
Screenshot 2023-11-13 8.50.11 AM
The trigger’s blockcode should be modified to this from getrithed’s guide:
Screenshot 2023-11-13 8.53.06 AM

Now on creating who is getting voted out:

Add these properties: (the notification device is just the blockcode device needed later on, could be any blockcode device):


num of numbered properties should be set to 10 since you are counting 10 players, p1#votes should be extended to 10 rather than up to 3 since you have 10 players and isTie? is a boolean true/false property, everything other than PlayerName and PlayerID should be set to global and everything except PlayerName, PlayerVotedOut, highestname and isTie? should be set to a number property.
Now modify my previous blockcode from the blockcode device from this:


To this:


Now create another block that activates on receiving “Send Vote Results” and add this:

Make the end vote channel end the vote gui or teleport them out of the voting area, make sure that the “PlayerID” property and “isEliminated” channels are available, you can do this by adding channels named 1isEliminated, 2isEliminated, 3isEliminated, etc, etc so that when you call on them, you eliminate the player when their ID is called, you can also use the PlayerVotedOut property for telling who is getting voted out.

Hope this helps!

Btw: this is a modification to The Ritheked Version of Voting 2.0 (Difficulty 🟪) but as a more raw block-code to the property version with How to make lists | TUTORIAL | Difficulty: 🟨 implemented.

1 Like

I couldn’t because it was closed off.

1 Like

Thank you! I am going to keep this open for a bit longer if I have any questions after implemanting it.

Hey @Magenta_Dragon. Sorry I kept you waiting. When you first asked for help in the block code nearly a month ago, I checked back on the guide and realized it wasn’t the most efficient way to check voting results. I did link you to one of Blackhole’s posts as a alternative way to do it, but I guess you were having trouble trying to follow the posts. I was less active recently, so I didn’t know you needed more help until I checked the forums today. As of right now, I currently don’t know how to efficiently do this and I’m also busy working on other stuff at school so not sure if I have time to figure out the solution. Thanks for your patience though!

1 Like

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