
Hello everyone!
I am currently trying to work on a Macro for a new campaign, which basically is supposed to improve the critical hits (and fails) instead of using the card decks. What it is suppposed to do is the following;
Character is rolling a Nat. 20 and is selecting the Macro for the crit hit. He selects which damage type it is supposed to be (slashing, piercing, fire, etc.) and the macro then rolls a 1d20. On a 1, he does the normal damage, but on every other number he gets a different additional action which the Nat. 20 caused. For example, additionally to double the damage, the creature also gets frightened or may lose a limb.
As of now I managed to get it to work up until the damage type. When I select the macro, it asks what damage type it is and then rolls a 1d20, but that#s about it. How to I code it that, depending on what the roll it, it will say what happens in the chat?
That's what I have so far;
?{Which damage type|
Bludgeoning, ***Bludgeoning***
You rolled a [[1d20]]. |
Piercing, ***Piercing***
You rolled a [[1d20]]. |
Slashing, ***Slashing***
You rolled a [[1d20]]. |
Force, ***Force***
You rolled a [[1d20]]. |
Psychic, ***Radiant***
You rolled a [[1d20]]. |
Necrotic, ***Necrotic***
You rolled a [[1d20]]. |
Radiant, ***Radiant***
You rolled a [[1d20]]. |
Poison, ***Poison***
You rolled a [[1d20]]. |
Cold, ***Cold***
You rolled a [[1d20]]. |
Fire, ***Fire***
You rolled a [[1d20]]. |
Lightning, ***Lightning***
You rolled a [[1d20]]. |
Thunder, ***Thunder***
You rolled a [[1d20]]. |
Acid, ***Acid***
You rolled a [[1d20]]. |
}