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

Trying to roll AD&D2e style skill check but not working right.

I am trying to do a standard skill check in a macro but can't seem to get it to work right. The check is rolling 1d20 and checking to see if the roll is less than the skill value +/- any modifiers. If I use this is just kicks out the mod+(1 or 0) depending on if it was <> 18. /me rolls skill check [[1d20<?{Skill value|18}+?{Modifier|0}]] I've tried various ()'s and can't seem to get those to work either. I'm also wondering if it's possible to get a "SUCCESS" message for these like you can when you use /roll 1d20<12.
1390767961
Gold
Forum Champion
You may also ask in the ROLL2E Tavern (campaign which I think you're already a member of, if not then find it under LFG because it is a group on this site for people implementing AD&D 2nd Edition on Roll20 specifically). Or if you get a satisfactory answer it would be appreciated if you post it there, if you like. The way I do it personally, so far, is more manual and less programatic: just have the Player roll 1d20 and announce (tell or show in chat) the result of their roll. That's it. Like tabletop. The player announces what they rolled, DM mentions any bonus or penalty to apply, and the number is verbally compared to the target number, and the DM tells the result. I understand you want to do it with the dice roller. Hopefully someone can tell the right way.
1390772932

Edited 1390773065
Tom
Plus
Sheet Author
Try this: /roll d20<[[?{Skill Value|18}-?{modifier|0}]] I believe you actually want a negative modifier in there to make the difficulty HIGHER than 18, correct? It's been awhile since I played AD&D2, but I believe that's how it went. If not flip it. I've tested it out and it seemed to work. Your problem was your brackets. You want your difficulty calculated, not your dice roll. So its a d20 vs calculation. The other issue popped up when using "1d20" vs "d20". The latter works. The former doesn't. Not sure why. Might have something to do with exploding dice, but that's just a guess on my part.
1390777066

Edited 1390777668
You can apply the roll to the ability score (which is what I was doing) and it works instead of reducing the dice roll by the "bonus" modifier. so if you had a +3 bonus to the check : 1d20<18+3 (18 skill, +3 bonus) Although doing the same thing as 1d20-+3<18 works as well even with a reduced modifier, -3 would add +3 to the roll (1d20--3<18). I just added the modifier to the top of the skill/ability instead of adjusting the roll. Thanks for the help, I was hoping I could do the command w/o the /roll with the emote but your command works so I'm happy. this is what I ended up for the skill check: /roll1d20<[[?{Skill value|18}+?{Modifier|0}]] FYI, this is what I use for "opposed" ability checks. This will show you by how much you made the roll by... /me rolls skill check [[?{Skill value|18}-(1d20-(?{Modifier|0}))]] So each person trying to pull the other down would make the ability check and whomever had the highest result won. (A negative result would be a failure regardless).
1390778696
Tom
Plus
Sheet Author
Oh! So the modifier is supposed to be added to the die roll instead of the target? My macro applies the mod to the skill value, which is why I used a negative. Here's a new version, complete with an emote. /me makes a Skill Check /roll [[d20+?{modifier|0}]]<?{skill value|18} that should work.
1390780573
Gauss
Forum Champion
Just a note: "++" (plus plus) and "--" (minus minus) currently result in a bug that will prevent the roll from working.
1390836743

Edited 1390836762
Gauss said: Just a note: "++" (plus plus) and "--" (minus minus) currently result in a bug that will prevent the roll from working. Are you sure? In my opposed check I used a - to the modifier and if the player enters a negative value it results in -- and the math functions as it should.
1390880699
Gauss
Forum Champion
As of this post 1d20++5 and 1d20--5 did not work for me so the bug appears to be still in existence.
Odd, I just ran the opposed check macro with a -2 modifier and a +3 modifier and both worked. Here it is again: /me makes an opposed check by [[?{Skill value|18}-(1d20-(?{Modifier|0}))]] Now if you mean does it work if the USER types --2 or ++3? No that doesn't but then a user shouldn't type that and expect it to work ;)
1390959840

Edited 1390960101
Gauss
Forum Champion
In your example, when you put a negative value in the Modfier query it is "-(-)" which is not "--". Tom's formula and one of your examples did not have "-(-)" so I was stating it wouldn't work for a double negative value. In short, while "--" or "++" causes a bug "-(-)" or "+(+)" does not.