Skill: result1(Adv/Dis: result2)
Code: Select all
[H: skillChoice = input(
"Skill| Acrobatics, Animal Handling ,Arcana, Athletics, Deception, History, Insight, Intimidation, Investigation, Medicine, Nature, Perception, Performance, Persuasion, Religion, Sleight of Hand, Stealth, Survival |Skill|LIST|VALUE=STRING"
)]
[H: abort(skillChoice)]
[H: roll1 = 1d20]
[H: roll2 = 1d20]
[H: check = 0]
[H, if(Skill == "Acrobatics"): check = Dex + (proficiency*Acrobatics)]
[H, if(Skill == "Animal Handling"): check = Wis + (proficiency*Animal Handling)]
[H, if(Skill == "Arcana"): check = Int + (proficiency*Arcana)]
[H, if(Skill == "Athletics"): check = Str + (proficiency*Athletics)]
[H, if(Skill == "Deception"): check = Cha + (proficiency*Deception)]
[H, if(Skill == "History"): check = Int + (proficiency*History)]
[H, if(Skill == "Insight"): check = Wis + (proficiency*Insight)]
[H, if(Skill == "Intimidation"): check = Cha + (proficiency*Intimidation)]
[H, if(Skill == "Investigation"): check = Int + (proficiency*Investigation)]
[H, if(Skill == "Medicine"): check = Wis + (proficiency*Medicine)]
[H, if(Skill == "Nature"): check = Int + (proficiency*Nature)]
[H, if(Skill == "Perception"): check = Wis + (proficiency*Perception)]
[H, if(Skill == "Performance"): check = Cha + (proficiency*Performance)]
[H, if(Skill == "Persuasion"): check = Cha + (proficiency*Persuasion)]
[H, if(Skill == "Religion"): check = Int + (proficiency*Religion)]
[H, if(Skill == "Sleight of Hand"): check = Dex + (proficiency*Sleight of Hand)]
[H, if(Skill == "Stealth"): check = Dex + (proficiency*Stealth)]
[H, if(Skill == "Survival"): check = Wis + (proficiency*Survival)]
<br>
[R: strformat("<b>%{Skill}</b> Check: ")]
{if(roll1>=20, '<span style="font-size:1.5em; color: #31B404;">', '<span>')}
{if(roll1==1, '<span style="font-size:1.5em; color: #DF0101;">', '<span>')}
[t:roll1+check] </span></span></b></span>
(Adv/Dis: {if(roll2>=20, '<span style="font-size:1.5em; color: #31B404;">', '<span>')}
{if(roll2==1, '<span style="font-size:1.5em; color: #DF0101;">', '<span>')}
[t:roll2+check]</span></span></b></span>)
It works great and my players enjoy using it, but my bard has been having trouble with his because of the Jack of all trades ability, which adds half your proficiency, rounded down, to any skill you're not proficient in. I originally got around this by altering it like this:
Code: Select all
[H: skillChoice = input(
"Skill| Acrobatics, Animal Handling ,Arcana, Athletics, Deception, History, Insight, Intimidation, Investigation, Medicine, Nature, Perception, Performance, Persuasion, Religion, Sleight of Hand, Stealth, Survival |Skill|LIST|VALUE=STRING"
)]
[H: abort(skillChoice)]
[H: roll1 = 1d20]
[H: roll2 = 1d20]
[H: check = 0]
[H, if(Skill == "Acrobatics"): check = Dex + floor(proficiency*Acrobatics)]
[H, if(Skill == "Animal Handling"): check = Wis + floor(proficiency*Animal handling)]
[H, if(Skill == "Arcana"): check = Int + floor(proficiency*Arcana)]
[H, if(Skill == "Athletics"): check = Str + floor(proficiency*Athletics)]
[H, if(Skill == "Deception"): check = Cha + floor(proficiency*Deception)]
[H, if(Skill == "History"): check = Int + floor(proficiency*History)]
[H, if(Skill == "Insight"): check = Wis + floor(proficiency*Insight)]
[H, if(Skill == "Intimidation"): check = Cha + floor(proficiency*Intimidation)]
[H, if(Skill == "Investigation"): check = Int + floor(proficiency*Investigation)]
[H, if(Skill == "Medicine"): check = Wis + floor(proficiency*Medicine)]
[H, if(Skill == "Nature"): check = Int + floor(proficiency*Nature)]
[H, if(Skill == "Perception"): check = Wis + floor(proficiency*Perception)]
[H, if(Skill == "Performance"): check = Cha + floor(proficiency*Performance)]
[H, if(Skill == "Persuasion"): check = Cha + floor(proficiency*Persuasion)]
[H, if(Skill == "Religion"): check = Int + floor(proficiency*Religion)]
[H, if(Skill == "Sleight of Hand"): check = Dex + floor(proficiency*Sleight of hand)]
[H, if(Skill == "Stealth"): check = Dex + floor(proficiency*Stealth)]
[H, if(Skill == "Survival"): check = Wis + floor(proficiency*Survival)]
<br>
[R: strformat("<b>%{Skill}</b> Check: ")]
{if(roll1>=20, '<span style="font-size:1.5em; color: #31B404;">', '<span>')}
{if(roll1==1, '<span style="font-size:1.5em; color: #DF0101;">', '<span>')}
[t:roll1+check] </span></span></b></span>
(Adv/Dis: {if(roll2>=20, '<span style="font-size:1.5em; color: #31B404;">', '<span>')}
{if(roll2==1, '<span style="font-size:1.5em; color: #DF0101;">', '<span>')}
[t:roll2+check]</span></span></b></span>)
Is there something I'm missing, because I tested every skill on every character before running games.