
Hello everyone! I've just started using the API and have been reading a lot from the wiki and forums the past few days. First off, there is a lot of awesome information out there, so thank you to everyone who has taken the time to explain things so well. It has been very helpful. Second, it has been about a decade since I've done a substantial amount of coding, so my skills are very rusty. As a result, I was hoping to see if anyone had a script already before I spent the work to get the rust out of my skills and attempt to write the script myself. So with that introduction, here is what I am wanting to do. I would like to call the same attribute from all of the player character sheets, either sort or compare them, and then have it tell me which is the highest or lowest. Ideally, I would like to be able to build macros that could speak to me as GM or to all of the players. So I imagine there would need to be some way to pull the character name, keep it attached to the attribute value, and then return the character name as the output. For example, there are times when I will give a player with the highest passive perception the option of noticing something first if no one else is actively looking. Instead of memorizing everyone's stats, using the token macro for each character, or looking it up on their character sheets, I would like to have a macro in place to do this comparison. Does anyone have something like this already? If not, I will dig up my coding skills and see if I can put this together. Thanks for any feedback.