Chris, the code I posted is macro code, not a standalone api script. It utilizes the Scriptcards api script, which has it's own parsing syntax and can allow variable declaration and conditional logic, among many other things. You would first need to install Scriptcards as an api script (I recommend grabbing the latest one and manually installing, as the one-click is currently behind). Then, the code I posted can be put into a macro or character ability. Finally, it relies on two rollable tables to be created, named AlienD6 and AlienStressD6. Add six entries to each table, with the numeric (1-6) value of the die and a corresponding image. Since I don't actually own or play the game (I made the macro for another user), I made a set of die images on my own, which are included below (apparently in a random order when you batch upload to the forum!) in case you want to import them into your library. If the game already comes with rollable tables, you can change the table names in the RollBase and RollStress functions in the code I posted.