Forum Discussion
1st, 2nd, and 3rd place winners on a podium
Try the attached sample. I wrote triggers only for players 1 - 4. You need to go to layers first, second, and third place, and add the rest of them to each layer. Each player has two triggers. Copy the triggers for player4, paste them, and change all occurrences of player4 to the corresponding variable for player5.
I also added logic to (somewhat) handle scores that are equal. It doesn’t list a tie (which would take a lot more effort and changes to the podium). It just gives the place to the player that comes first, and gives the other player the next place.
Actually, I think it might be easier to sort these in JavaScript, and return the first three names and scores, but I’m not at the moment where I can fiddle with JS. Besides, I dislike using JS except as a last resort, because it prevents future maintenance if there isn’t someone available that can program JS.
Related Content
- 4 years ago