I have a datamap set up like this to give each name a number value:
(set: $people to (dm:
Except that it has 32 names, not 5. The numbers increase over the course of the game.What I'm trying to make is a result screen at the end of the game, where the name with the highest total is displayed along with the associated value.
I want it to find the maximum value of $people, put it into $result, then print each name of $people whose value matches $result.
So if Alice has a value of 12, and that's the highest, it should print "Alice: 12". Or, if Bob and Celia are tied with 14, if should print "Bob, Celia: 14".
I'm not sure how to do this. If anyone could help me out, it would be greatly appreciated.
I'm using Harlowe 2.1.0 in Twine 2.2.0.