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

Putting buttons in Char Sheet text fields

1599001999
Mike deBoston
Compendium Curator
In the character sheet, each spell has a description field. I can put a link to a Journal entry with the spell description, but the URL is really complicated and impossible to memorize. It looks like this: `[Fireball desc](<a href="http://journal.roll20.net/handout/-MF5EZRozFf1t06YtWx0)`" rel="nofollow">http://journal.roll20.net/handout/-MF5EZRozFf1t06YtWx0)`</a> I'd like to put a macro button in the text field like this: `[Fireball desc](~spell-fireball)` Then the spell-fireball macro would put another button in the chat with a link to the journal. I know, it's two steps, but it would be a lot easier to get the correct links into character sheets with this intermediate step. Can buttons go into (repeating) text fields on character sheets?
1599010130
Oosh
Sheet Author
API Scripter
I'm not sure I understand the problem - why don't you put that first button `[Fireball desc]( <a href="http://journal.roll20.net/handout/-MF5EZRozFf1t06YtWx0)`" rel="nofollow">http://journal.roll20.net/handout/-MF5EZRozFf1t06YtWx0)`</a> into your spell macro? You don't need to memorise it, just paste that into the spell description field and it should work as is. That will open the handout if the button is clicked - isn't that the desired functionality? You could link to a macro which then prints another button which then opens the Journal, but I don't understand why you would want to. Which sheet are you using?
1599016284
Mike deBoston
Compendium Curator
Hi Oosh, thanks for answering. I'm using the Savage Worlds character sheet, and since no compendium is supported for it yet, I would like to build a poor man's version. When I'm creating a character sheet I'm hoping to avoid the steps of having to look up the URLs to paste them into the spell descriptions. My goal is to use the intermediate macro step as a way to make the URLs easy to memorize so I can just type them in. I could use this for spell and skill descriptions... There are lots. If I'm going to copy/paste from a source sheet (a list of spells), I might as well put the spell descriptions in the source page and just copy/paste them into a character sheet. I could avoid the links altogether. So... A link to a macro that prints another button which then opens the Journal is exactly what I'd like. Or maybe I'll just put the text directly into the macro. Text formatting is more limited, but I don't need much.
1599018072
Mike deBoston
Compendium Curator
Another reason to put a macro into a skill description: The skill is "improvise weapon". You can roll Notice to find a weapon to use, roll Fighting -2 to hit with it, roll Damage or Damage +2 if your Notice roll was particularly good. This could be built into a macro linked from the skill description.
1599018206
Oosh
Sheet Author
API Scripter
Ah ok... it might be easier to set up a character sheet with your journal links. So, say call it Spells to make it simple. On the Attributes &amp; Abilities page, create your Attributes, e.g. fireball&nbsp; -&nbsp; <a href="http://journal.roll20.net/handout/-MF5EZRozFf1t06YtWx0" rel="nofollow">http://journal.roll20.net/handout/-MF5EZRozFf1t06YtWx0</a> You could then create buttons with [Click Me](@{spells|fireball}) If you have to change or remake Journal entries, you only have one place to look to update the address, rather than sifting through macros. I *think* if you copy a game, the Journal links stay the same, but I could be wrong on that. If they do, you can essentially copy the game each time you want to build a new campaign with that spell system. Would that work?
1599019553
Mike deBoston
Compendium Curator
Yes, that's excellent! Thank you!
1599028253

Edited 1599028494
Oosh
Sheet Author
API Scripter
No problem! Another thing that might be of interest - if you're making a custom Compendium type deal with the Journal, you might be interested in this trick for styling links. A quick example - if you made another character sheet to store values on, called Style, and made these two Attributes&nbsp; -&nbsp; Values&nbsp; (the " is the first character in the string, and needs to be there) item&nbsp; -&nbsp; " style="background-color:white;color:blue;display:block;border:1px solid;border-radius:5px;text-align:center;margin:5px;padding:2px spell&nbsp; -&nbsp; " style="background-color:purple;color:white;display:block;border:1px solid;border-radius:5px;text-align:center;margin:5px;padding:2px Then you can call these Attributes to pretty up your links, like this (with @{spell|fireball} and @{item|longsword} being the links to the journal): &amp;{template:default} {{name=Journal Links}} {{1= [Fireball]( @{spell|fireball} @{style|spell} ) }} {{2= [Longsword]( @{item|longsword} @{style|item} ) }} Giving some nicer looking links, color coded however you want to break up the styles: A little clunky to set up, but easy enough to call once the Attributes are there, and it sounds like you'll have quite a few links to create.