Hi,
I'm having so much fun playing with Twine, even as a newbie! Part of that newness, though, is that I don't totally know the limits of what can and can't be done.
I'm hoping to identify the two largest variables from a list. Let me make up a basic example of what I mean, so that it hopefully makes sense. I might not be specifying variables in the best way to accomplish this, either.
Imagine a game where you can interact with three friends: Joe, Bill, and Steve. Based on character choices you make at the start, you will be raising or lowering your $joescore, $billscore, and $stevescore. After this initial period, I want to be able to select which two of the three scores are the highest and print them on the page: "Your best friends are (result 1) and (result 2)." In other words, imagine that Joe' score gets raised with adventurous choices, Bill's with responsible choices, and Steve's with friendly choices. So, based on what kind of character you choose for yourself in the opening passages, you would be told that your two best friends are the boys who best reflect your chosen behaviors.
Is this possible? How would I go about doing so? I'm currently hung up on 1) using logical operators to choose between multiple variables, not just two, and 2) on how I would record these choices for output to the player. Thank you so much for any help!