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

Help with a Macro

1597607496
Michael I.
Pro
Sheet Author
First off I do have and prefer to use a Macro Sheet that I call Game Macros. Currently this is a Macro only one character uses but I would like to make it so I can have it on the Game Macros sheet so other Character can use it. I have looked at so long I cant see the issues (so I am calling for help) So issues 1)I have a a macro that says Bob rolls for [skill] against TN 14. /me @{Bob|translation_rolls_for} ?{Choose Skill? | Awe, @{Bob|translation_awe}| Lore, @{Bob|translation_lore}} @{Bob|translation_against_tn} ?{@{Bob|translation_target_number}|14}. This works if made as a solo macro on Bob's Character Sheet 2) I have a macro that rolls the skill /r (1t[feat] + ?{Choose Skill? | Awe,[Awe] @{Bob|awe}| Lore,[Lore] @{Bob|lore}}t[@{Bob|weary}]) + @{Bob|total_shadow} > ?{@{Bob|translation_target_number}|14} This also works as a solo macro from Bob's Character sheet producing the correct roll. But if I try to combine the macro to get Example: Bob rolls for Awe against TN 14  (1t[feat] + [Awe] 3t[normal]) + 4 > 14 Instead I get  There was an error with your formula. Please try again. 3) Lastly I need help to make this a little more user friendly so it can go into the Games Macro sheet. by somehow replacing Bob with character_name Any Help will be appreciated
1597622431

Edited 1597622662
Oosh
Sheet Author
API Scripter
Michael I. said: But if I try to combine the macro to get Example: Bob rolls for Awe against TN 14  (1t[feat] + [Awe] 3t[normal]) + 4 > 14 Instead I get  There was an error with your formula. Please try again. What's the actual combined code you're trying to run, can you post that? Is it just one macro pasted after the other? Lastly I need help to make this a little more user friendly so it can go into the Games Macro sheet. by somehow replacing Bob with character_name The easiest way to do this is to use a @{ selected |translation_awe} call in the macro. That will pull the Attribute from whichever character sheet is linked to the currently-selected token. For players, their own token is usually the only thing they can select anyway.
1597629243
Michael I.
Pro
Sheet Author
Yes its one after the other. Example: /me @{Bob|translation_rolls_for} ?{Choose Skill? | Awe, @{Bob|translation_awe}| Lore, @{Bob|translation_lore}} @{Bob|translation_against_tn} ?{@{Bob|translation_target_number}|14}. /r (1t[feat] + ?{Choose Skill? | Awe,[Awe] @{Bob|awe}| Lore,[Lore] @{Bob|lore}}t[@{Bob|weary}]) + @{Bob|total_shadow} > ?{@{Bob|translation_target_number}|14} Yes I can use selected (and may have to resort to using that, but this one is rolled a lot to perform skill rolls, sometimes from Maps where they do not have Tokens, I was trying to use @{Macros|prefix} trick with @{character_name} to replace Bob but so far cant seem to get it to work.  
1597639119

Edited 1597640006
Oosh
Sheet Author
API Scripter
If I'm understanding correctly, you're trying to run both of those macros without the linebreak in between them? "/r" or "/roll" only works if it's the first thing sent to chat. You won't be able to combine that with an emote and re-use the ?{Query} values with a standard macro, though there's probably a way to do it with API - PowerCards might be something worth looking at since you have a Pro sub. If you'd rather not use the API for any reason, you either need to make the whole thing an emote by wrapping the second macro in [[ ]] and removing the "/r", then putting it on the same line as the first one, or use a template, e.g. &{template:default} {{name=Roll Macro}} {{ @{Bob|translation_rolls_for} ?{Choose Skill? | Awe, @{Bob|translation_awe}| Lore, @{Bob|translation_lore}} @{Bob|translation_against_tn} ?{@{Bob|translation_target_number}|14}.}} {{ [[(1t[feat] + ?{Choose Skill? | Awe,[Awe] @{Bob|awe}| Lore,[Lore] @{Bob|lore}}t[@{Bob|weary}]) + @{Bob|total_shadow} > ?{@{Bob|translation_target_number}|14}]] }} The macro also needs some way of knowing which sheet to grab the Attributes from. If you're storing it on a common Macros sheet, you're stuck with {selected} or {target}, really. There might be some script around that can automatically link a Player's actions with a particular character sheet, so if player Dave runs the macro, the script will insert "Bob" into every Attribute call, but without API I can't see how you'll achieve it from a common sheet. One of the API boffins might know more about that. You can always make a new version for each player with hard-coded character calls, and save it on their character sheet, then they don't need to select anything. It's 20 seconds' work to CTRL-H in Notepad or similar, and replace every instance of "Bob" with "Alice", then paste it into Alice's character sheet and save it.
1597647432
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Unfortunately, the easiest thing would be to make sure they all have tokens on the page. I do this on my Theater of the Mind scenes page. All player tokens are lined across the top of the page which really only consists of a huge rollable token of scenes. I use the maplock API to keep the tokens in place so restless players don't move them around the screen.
1597682541
GiGs
Pro
Sheet Author
API Scripter
When playing Theatre of the Mind-style, you dont need battlemaps. But it still makes your life a lot easier if you continue to use tokens. You just aren't using them as pieces on a combat board, you are using them to access roll20 functionality that depends on tokens.
1597686650

Edited 1597687422
Michael I.
Pro
Sheet Author
OK Thank you to everyone who has responded: Thank you, some people know me as (aragent) I help maintain a lot of the TOR (The One Ring) stuff on roll20 for that community (and maintain my Macros for that community) so I try and build them with that in mind. So Again Thank everyone.