I'm experimenting with macro development and I'm at a bit of a loss for how to accomplish my goal. I'm using the 5th edition OGL charactersheet. What I'd like is a token action button for each spell level that does the following: returns a list of all spells known by the sheet represented by that token that looks like this: "Select [[spellname]] from SelectedToken where SpellLevel=3 and SpellPrepared="yes" That list is put into a dropdown and/or a list of clickable links so the player can select what spell to cast Once the spell is selected, it interrogates a list of spell macros in a rollable table (possibly using this script for the list of macros) to see if it can find a match on the spell name If it finds a match, it executes the macro at the appropriate spell level ideally, once it's done, it deducts one from spell slots available for the spell level. The goal here would be to create a single master list of spell macros that everyone could use, both PCs and NPCs. Once the macro is created once, everyone gets it without having to retype things. I'm pretty sure this would involve API work which I haven't done before, but I do have a software development background, so I could probably pick it up. Any thoughts would be appreciated.