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

SR5 Macros

I have this macro: /me takes [[(?{Damage Resist Dice|24}d6>5s)-?{Damage|1}]] Damage. However, if I am trying to soak a low number of damage, 1 for instance, it says I take damage. I tried adding kh1 into it but I'm not sure of the exact syntax on this and when I try to run it nothing happens. I'd Like it to out put 0 damage when it is 0 or less.
1414564623
The Aaron
Roll20 Production Team
API Scripter
You probably want this in the Specific Questions forum. This Forum is about the Javascript API. Also, I'm not clear on what you're trying to do with your macro. Try reducing to a simpler form: [[(24d6>5) - 1]] Are you saying that if the 1 gets particularly large: [[(24d6>5) - 10]] that you want to have a 0 instead of a negative number? [[{(24d6>5) - 8, 0d0<0}kh1]] That will be bounded by 0 on the low end. Your original formula, modified: /me takes [[{(?{Damage Resist Dice|24}d6>5s)-?{Damage|1}, 0d0<0}kh1]] Damage. Hope that helps!
1414566478
Gauss
Forum Champion
Moved to Specific Use Questions.
I swapped them around (damage resist with Damage) and it worked! Thanks. Sorry I didn't have this in the right forum branch. When I searched I wasn't sure where to place it. To clarify a syntax { is closed by } just like ( is closed by ), is that correct?
I'd like to share some of the macro's I've made for my group that might help others. For some of this to work GMs will have to turn on the tracker AKA Turn order. The macro's should do the rest. (I also have some for GMs to usefor the Flunkies) Initiative Macro: Rolls my initiative and automagically adjusts my Initiative. /me has a total initiative of [[(@{X|Reaction}+@{X|Intuition}-?{Wound Modifier|0}+@{X|InitiativeDice}d6s) &{ tracker }]] Dodge Macro: Rolls my defense roll and automagically subtracts 5 from my initiative score. /me gets a total of [[(@{X|Reaction}+@{X|Intuition}+@{X|Combat Sense}+?{Positive Modifiers|0}-?{Penalty|0})d6>5s]] hits for Dodge! [[5 &{tracker:-}]] off initiative. Full Defense Macro: Rolls my full defense roll and automagically subtracts 10 from my initiative score. /me rolls [[(@{X|Reaction}+@{X|Intuition}+@{X|Agility}+@{X|Combat Sense}+?{Positive Modifiers|0}-?{Penalty|0})d6>5s]] hits for Full defense and subtracts [[10 &{tracker:-}]] from his initiative score. Notes on how to modify: Firstly go to your Character in roll20 under the journal section. Now X is my character name. You can replace that with your characters name which is listed under the ' Bio & Info' tab if you hit Edit . Reaction, Intuition and InitiativeDice are all found on the ''Character sheet' tab. It will be easier to fill out basic info on the character sheet as it fills in other fields automagically. Combat Sense is an adept power that adds to all of my defense rolls so I added it on 'Attributes and Abilities' tab. You can add additional things as well, for instance I added the field 'Smartgun' with the value of 2. So when I make a macro with a gun that has a Smartgun addon I can apply that with @{X|Smartgun} and it will add the value for me automatically. I also have Combat sense as the value for that can change later. As opposed to changing each macro I Simply change the Combat Sense field from 1 to 2 or whatever as it increases and it updates on all the macros as they look for the location value. I have a positive quality that lets me add my agility as opposed to my will on full defense. You would likely replace Agility with Willpower. GMs, here are some for you to use: Keep in mind, they would need you to select their token on the board to roll the initiative and for the macro's to perform. Clicking the "Show as Token Action" in the macro setting will make them show up when you click on the token to move/modify it. GM Initiative Macro: /emas @{selected|token_name} has a total initiative of [[(?{Reaction|3}+?{Intuition|3}-?{Wound Modifier|0}+?{InitiativeDice|1}d6s) &{tracker}]] GM Dodge macro: /emas @{selected|token_name} rolls [[(?{Reaction|3}+?{Intuition|3}+?{Positive Modifiers|0}-?{Penalty|0})d6>5s]] hits for Dodge! [[5 &{tracker:-}]] off initiative. GM Full Defense Macro: /emas @{selected|token_name} rolls [[(?{Reaction|3}+?{Intuition|3}+?{Willpower|3}+?{Positive Modifiers|0}-?{Penalty|0})d6>5s]] hits for for full defense and subtracts [[10 &{tracker:-}]] off initiative.
Hey there, I will be playing in a SR5 Missions game in a few weeks and would like to prep some macros in advance. Is there a way to do basic rolls where it just shows the dice rolled in order from highest to lowest without adding them all together? I can then see how many successes and how many failures quickly. I tried the macro for sorting the rolls but it still gives total at end. Any help would be appreciated and I do not know if the GM will have character sheets to be filled in. Thanks, Richard B.