Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

How would I go about making a macro that links to the selected token's character sheet?

I made a macro that displays a few of the key stats of the selected token, but I'd also like it to include a link to the token's character sheet in the case that I—or&nbsp;the players—need more information. I know how to link directly to a sheet from the chat: <a href="http://journal.roll20.net/character/-KFfJ_ur0oDyNw1_eMZ3" rel="nofollow">http://journal.roll20.net/character/-KFfJ_ur0oDyNw1_eMZ3</a> But since it doesn't go by name, and instead ID, how would I go about getting that ID from the selected token? Thanks in advance! ~Sincerely, RiftTalon
Nevermind guys, figured it out on my own! For those wondering, this was the code: [@{selected|token_name}](<a href="http://journal.roll20.net/character/@{selected|Character_ID}" rel="nofollow">http://journal.roll20.net/character/@{selected|Character_ID}</a>) And here is my finished product: ?{Whisper|Public,|Whisper,/w gm} &{template:default} {{name=[@{selected|token_name}](<a href="http://journal.roll20.net/character/@{selected|Character_ID}" rel="nofollow">http://journal.roll20.net/character/@{selected|Character_ID}</a>)}} {{Armor Class=[[@{selected|bar2}]]}} {{Hit Points=[[@{selected|bar1}]]/[[@{selected|bar1|max}]]}} {{Perception=[[@{selected|bar3}]]}}