riginal code credit goes to James W. (Though, a lot has been changed)
https://app.roll20.net/forum/post/3051176/script-s...

Some friends requested to add a link to make a spellbook / actionbook: https://app.roll20.net/forum/post/5671448/script-5...
From that someone mentioned that in shaped there is a statblock functionality, so I figured I was most of the way there so I spent some time to make a full on statblock for NPCs. It works for player sheets as well, just doesn't list anything but stats, spells, and actions/attacks... This keeps you from needing to keep all the npc sheets open if the combat involves many different creatures.

https://pastebin.com/mPnDVYUd

To use type !statblock with a token selected and the below will show up in chat. Anything blue is clickable as if it was clicked from the character sheet.