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

Creating 'Universal' Macros?

As I build up my Pathfinder Bestiary in Roll20 I have been using the 'Character Sheet' method and including the basic Init, Perception and Save Token Action Buttons. This works great until I find another Macro that I would like to apply to each monster but I have to manually add it to each one (mainly because I like the layout of the result). Is there a way to create a macro for the table itself where I can select the token and still have the macro apply to the token? Here's my Save Macro: @{PC-whisper} &{template:pf_generic} @{toggle_accessible_flag} @{toggle_rounded_flag}{{color=@{rolltemplate_color}}} {{header_image=@{header_image-pf_generic}}} {{character_name=@{character_name}}} {{character_id=@{character_id}}} {{subtitle}} {{name=Saves}} {{Rolls a(n) [[1d20+?{modifier|0}]] ?{Save Type|Fortitide|Reflex|Will} Save...}} It works great when it's attached to a Character Sheet but when it's run as a Table Macro I get an error. I realize that some of this is attached to the sheet but I thought if the Token was selected, that it would still draw from the sheet. This would save a LOT of time if I could get this to work since I wouldn't have to add it to each individual Monster. Any thoughts would be appreciated. :) Jim
@{selected|attribute_name}
I was looking at that but am still a newbie - how would you incorporate that into my example above? Thanks!
Never mind - got it! Thanks! Man that will save a lot of time. :)
If anyone else needs it, this seems to work. :) @{selected|PC-whisper} &{template:pf_generic} @{selected|toggle_accessible_flag} @{selected|toggle_rounded_flag}{{color=@{selected|rolltemplate_color}}} {{header_image=@{selected|header_image-pf_generic}}} {{character_name=@{selected|character_name}}} {{character_id=@{selected|character_id}}} {{subtitle}} {{name=Saves}} {{Rolls a(n) [[1d20+?{modifier|0}]] ?{Save Type|Fortitide|Reflex|Will} Save...}}
1479300626
Tetsuo
Forum Champion
Personally, I set the token up as Bar 1 HP, Bar 2, AC, and Bar 3, Init. Here is my attack: /emas "@{selected|token_name}" attacks @{target|Token_Name}. /as "@{selected|token_name}" /emas &{template:pf_attack} {{character_name=@{selected|token_name}}} {{name=Attack Roll}} {{target=@{target|Token_Name}}}{{attack=[[1d20+?{Attack Modifier?}]]}} {{crit_confirm=[[1d20+?{Attack Modifier?}]]}} {{damage=[[?{Damage?}]]}} {{crit_damage=[[?{Damage?}]]}} Generic checks (saves, grapple, skill etc): &{template:pf_generic} {{name=@{selected|token_name} ❖ Check [[d20+?{modifier?|0}]] }} {{header_image=[Init](<a href="http://i.imgur.com/6chOhEE.png" rel="nofollow">http://i.imgur.com/6chOhEE.png</a>)}} And for initiative: &{template:pf_generic} {{name=@{selected|token_name} ❖ Initiative [[d20+@{selected|bar3}&{tracker}]] }} {{header_image=[Init](<a href="http://i.imgur.com/H7zQfO6.png" rel="nofollow">http://i.imgur.com/H7zQfO6.png</a>)}}