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 skill check Macro

Can anyone help me fix this code? without the Skill section it works perfectly but I want that section so that its visible to the DM and all players what skill check i am rolling. &{template:default} {{name=Skill Check}} {{Skill=[[?{Choose Skill| Acrobatics,Acrobatics| Alchemy,Alchemy| Alteration,Alteration| Athletics,Athletics| Combat Style,Combat Style| Command,Command| Commerce,Commerce| Conjuration,Conjuration| Deceive,Deceive| Destruction,Destruction| Enchant,Enchant| Evade,Evade| Illusion,Illusion| Investigate,Investigate| Logic,Logic| Lore,Lore| Mysticism,Mysticism| Navigate,Navigate| Observe,Observe| Persuade,Persuade| Profession [Smithing],Profession [Smithing]| Restoration,Restoration| Ride,Ride| Stealth,Stealth| Subterfuge,Subterfuge| Survival,Survival}]]}} {{Target=[[?{Target number?}]]}} {{Roll=$[[1.computed]]}} {{successes=[[floor([[{ [[{ [[@{Naar|1d100}]]+1d0, 1d1+?{Target number?} }kl1]], 10}kh1 % [[ 1+?{Target number?} ]] ]]/10)]]}}
1673726236

Edited 1673805797
timmaugh
Forum Champion
API Scripter
If you include the Skill section or exclude the Skill section, you are including/excluding a roll, meaning that your inline roll indices are going to be off by 1.  So when you get to your Roll section: {{Roll=$[[1.computed]]}} That roll index of "1" is going to refer to a different part of the larger/complex roll in the successes section. It doesn't look like the Skill section needs to be an inline roll, at all. You're not referring to a token property or character ability, so there's nothing that will be "computed" about the text you return from the query. That means you can try the Skill section like this: {{Skill=?{Choose Skill| Acrobatics,Acrobatics| Alchemy,Alchemy| Alteration,Alteration| Athletics,Athletics| Combat Style,Combat Style| Command,Command| Commerce,Commerce| Conjuration,Conjuration| Deceive,Deceive| Destruction,Destruction| Enchant,Enchant| Evade,Evade| Illusion,Illusion| Investigate,Investigate| Logic,Logic| Lore,Lore| Mysticism,Mysticism| Navigate,Navigate| Observe,Observe| Persuade,Persuade| Profession [Smithing],Profession [Smithing]| Restoration,Restoration| Ride,Ride| Stealth,Stealth| Subterfuge,Subterfuge| Survival,Survival}}} ...and see if it works better for you. Alternatively, if you leave it as an inline roll, you'd have to increment all subsequent roll indices you reference so that they adjust appropriately (1 becomes 2, 2 becomes 3, etc.)
1673732389

Edited 1673732455
GiGs
Pro
Sheet Author
API Scripter
It looks like that doesn't need all those commas either, it could just be ?{Choose Skill| Acrobatics|Alchemy|Alteration|Athletics|Combat Style|Command|Commerce|Conjuration|Deceive|Destruction|Enchant|Evade|Illusion| Investigate|Logic|Lore|Mysticism|Navigate|Observe|Persuade|Profession [Smithing]|Restoration|Ride|Stealth|Subterfuge|Survival}
1673732638
GiGs
Pro
Sheet Author
API Scripter
This section raises a few questions: {{successes=[[floor([[{ [[{ [[@{Naar|1d100}]]+1d0, 1d1+?{Target number?} }kl1]], 10}kh1 % [[ 1+?{Target number?} ]] ]]/10)]]}} Can you describe what that is representing (and also, do your sheets include an attribute named 1d100?)
1673734282

Edited 1673734321
Works perfectly, many thanks  timmaugh