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

Macro help

Hi there I am trying to make a macro using&nbsp; <a href="http://farlandworld.com/injuries.html" rel="nofollow">http://farlandworld.com/injuries.html</a> &nbsp;injury table, I have tried using chat gpt but my god did it get confused.&nbsp; What I am looking for: I click the macro Titled: What damage knocked you out? It displays a list of damage types in a drop down menu (acid, bludgeoning, cold, fire, force, lightning, necrotic, piercing, poison, psychic, radiant, slashing, and thunder) I then click a damage type When the damage type is selected the macro will roll a D20 Whatever number is rolled on that D20 the macro will show The rolled number The name of the injury The full description of the injury To give you more context to help you understand the injury I will break it down for you using bludgeoning: 1 (this is the number related to what is rolled so if you get this number on the dice rolled you will get this effect) Brain Injury (this the name of the injury). You have suffered a brain injury. You have disadvantage on Intelligence, Wisdom, and Charisma checks, as well as Intelligence, Wisdom, and Charisma saving throws. If you fail a saving throw against bludgeoning damage, force damage, or psychic damage, you are also stunned until the end of your next turn. Magic such as the regenerate spell can restore your full brain function (this is the description of the said injury). So as an example to give more context A player is knocked out by bludgeoning,&nbsp; He clicks the macro, He will click bludgeoning, The dice is rolled, He rolled a 1 The macro displays The dice (1) The name of the injury corresponding to the dice rolled (so they rolled a 1 so it would show "Brain Injury") The description of the injury (He rolled a 1 so he got the Brain injury so it would show "You have suffered a brain injury. You have disadvantage on Intelligence, Wisdom, and Charisma checks, as well as Intelligence, Wisdom, and Charisma saving throws. If you fail a saving throw against bludgeoning damage, force damage, or psychic damage, you are also stunned until the end of your next turn. Magic such as the regenerate spell can restore your full brain function."
1715522671
vÍnce
Pro
Sheet Author
Hi Barnabus, Have you considered the recursive tables mod (pro sub req.)?
What I have so far: ?{What damage knocked you out?|Acid,acid|Bludgeoning,bludgeoning|Cold,cold|Fire,fire|Force,force|Lightning,lightning|Necrotic,necrotic|Piercing,piercing|Poison,poison|Psychic,psychic|Radiant,radiant|Slashing,slashing|Thunder,thunder} [[1d20]]&nbsp; &amp;{template:default} {{name=@{selected|character_name}}} {{Damage Type=@{selected|repeating_npc_$0_NPC Type}}} {{Roll=[[@{selected|repeating_npc_$0_NPC Type}_roll]]}} {{Injury=**[[1]]** - [[1d20]]}} {{Description=@{selected|repeating_npc_$0_NPC Type}_desc}}
vÍnce said: Hi Barnabus, Have you considered the recursive tables mod (pro sub req.)? I haven't I will take a look