I am trying to make a Skill check macro for my players, but I have no Idea how I can do it the way I want it.
I want a macro wich opens a selection window with a list of all the skills. Then if someone selects one I want it to automatically roll a d20 and add the correct Ability Modifier, then display the number in the chat.
Right now I have a macro for every single skill with the most basic of code.
Here is an example with the Acrobatics skill:
For skills without proficiency
Code: Select all
[1d20+DEXMod]
Code: Select all
[1d20+DEXMod+PROFBonus]
Here is my code I have right now for the new macro:
Code: Select all
[input("Skill| Acrobatis, Animal Handling ,Arcana, Athletics, Deception, History, Insight, Intimidation, Medicine, Nature, Perception, Performance, Persuation, Religion, Slight of Hand, Stealth, Survival |Skill|LIST|VALUE=STRING")]
I tried using eval() on the input by giving it a name and then using if() to make something happen if one specific skill is picked, but I only got errors.
Code: Select all
[h: skillChoice = input(
"Skill| Acrobatis, Animal Handling ,Arcana, Athletics, Deception, History, Insight, Intimidation, Medicine, Nature, Perception, Performance, Persuation, Religion, Slight of Hand, Stealth, Survival |Skill|LIST|VALUE=STRING"
)]
[h: skill = eval(skillChoice)]
[if(skill = Acrobatics), Code:{
[1d20+DEXMod]
};{}]
Is there any way to let the macro do something specific if you put in a specific skill? I am looking frantically through all forums I can find, but I can't understand most of them. Please help me.