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

getting basic character info without having to open the character sheet and macros referencing calculated fields

So, first off, first post, loving roll20 (as do my far away friends who I game with). I've been playing with macros and they seem pretty cool. I've hit a wall. What I'd like to do is be able to see some basic info for a selected token without opening up the character sheet. (Also, it would be very nice if I could access the character sheet directly from the token). For instance, I may want to know a character's basic stats. I have a macro on the token that might look like (note: using savage worlds, but this is not an issue specific to that system) /w GM @{Selected|Name}: AGI:@{Selected|Agility} and I get a nice message of: (To GM): Joe Hero: AGI:8!, I could do without the "!", but it's a small price to pay. So it works! And it's much easier and faster than going to the character list, finding the character, looking up the value, and closing the character sheet. However, if I want to use a calculated field, say for SavageWorlds, the parry or toughness, the command: /w GM @{Selected|Name}: Parry:@{Selected|Parry} gets me a result of : (To GM): Joe Hero: Parry:((4!-((1 - 0) * 4))/2)+2 Blah. now I've found a few forum entries about this, most notably this one , but without suggestions that don't really work and no real conclusion that I can see. So, I thought it was worth it's own thread. Also, maybe there is a better way for me to get what I want. E.g. How to get an attribute or two from a character via his token without having to go through the time-consuming process mentioned earlier in this post. The more time I am futzing around looking up info, the less time my players and I are having fun. Again, LOVE roll20! Thanks!
Try putting double brackets around it /w GM @{Selected|Name}: Parry:[[@Selected|Parry}]] Does this fix it?
Jake M. said: Try putting double brackets around it /w GM @{Selected|Name}: Parry:[[@Selected|Parry}]] Does this fix it? Thanks for responding. Unfortunately, I get the following from that: SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but "@" found.
I don't know if this will help any, but you don't have to go into the character list to open up the character sheet. Just hold shift and double-click on the token and the character sheet for that token pops up. It'll at least eliminate you having to scroll through the character list. I can't help with macros- I have no idea about that.
Jason W. said: I don't know if this will help any, but you don't have to go into the character list to open up the character sheet. Just hold shift and double-click on the token and the character sheet for that token pops up. It'll at least eliminate you having to scroll through the character list. I can't help with macros- I have no idea about that. That is hugely helpful! Thanks Jason!
No problem. I accidentally stumbled across it myself, while fooling around with the tokens, just the other day. The token does have to be linked to the character sheet in question, of course.
1411865130

Edited 1411865139
Gauss
Forum Champion
Jason , Jake was on the right track but forgot the first "{". /w GM @{Selected|Name}: Parry:[[@ { Selected|Parry}]]
Gauss said: Jason , Jake was on the right track but forgot the first "{". /w GM @{Selected|Name}: Parry:[[@ { Selected|Parry}]] Thanks Gauss, I also missed the missing "{". regardless, from yours I get... SyntaxError: Expected ")", ".", "[", "d", "e", "t", [ |\t], [+|\-|*|\/|%] or [0-9] but "!" found. It's a conundrum.
1411866089
Gauss
Forum Champion
What is the value of "Parry"?
Gauss said: What is the value of "Parry"? If I do a macro with just: @{Selected|Parry} I get : ((4!-((1 - 0) * 4))/2)+2
1411867528
Gauss
Forum Champion
Remove the "!" mark after "4".
1411869025

Edited 1411869107
Yeah the exclamation is the problem. the savage world sheet calls the fighting attribute for the parry formula, but the fighting attribute adds an exclamation. <select name="attr_fighting" class="dtype" value="4!" style='width:70px;'> <option value="4!">d4</option> <option value="6!">d6</option> <option value="8!">d8</option> <option value="10!">d10</option> <option value="12!">d12</option> <option value="12!+1">d12+1</option> <option value="12!+2">d12+2</option> <option value="12!+3">d12+3</option> <option value="12!+4">d12+4</option> Without mentor you dont have the ability to do a custom sheet so you are stuck with that problem unless the sheet author fixes it, might be worth asking them in the character sheet forum the reasoning behind putting it there in the first place
1411870472
Lithl
Pro
Sheet Author
API Scripter
Zepth said: Without mentor you dont have the ability to do a custom sheet so you are stuck with that problem unless the sheet author fixes it, might be worth asking them in the character sheet forum the reasoning behind putting it there in the first place If Fighting is something that can be rolled separately from using it for Parry, then the reason is likely because the system uses exploding dN dice, and the author wanted to make macros simpler. I suspect writing a macro like /roll 3d@{fighting} is easier to grok for the average user than /roll 3d@{fighting}!
thanks guys. it's a community character sheet, so I'd rather not muck with it at this point. I'll inquire with the author. thanks. meanwhile, the double-click to open character sheet definitely helps. Cheers!