
Hi Mentors I'm looking for some help with a diceroller, initially I thought that what I wanted was simple, but I'm apperently not yet comfortable about the API yet. What I'm looking for is a AM5 Dice roller that can perform the following rolls.: Simple Die roll Quality Die roll Stress Die roll As far as I understands, one needs to make something at listens for the chat API, and does some calculations upon the data, and some loops. The Syntax for rolling could be something like (Stress Roll) "/aroll <type> <Modifier> <ease factor>"" <type> would be "S" for stress, "Q" for Quality", "N" for normal (if needed) <modifier> would be a value between 1 and 20, <ease factor> would be a no optional value, but if it was used, it should be included in the evaluation The difference between the 3 rolls are as follows: Simple die Simple die is just that, 1d10 + modifiers, so it's fairly simple to make (just use the /roll 1d10) Quality die Quality die roll is a bit more complex, it's essentially a "1d10 + modfiers" but.: if the dice is 4 it it should result in "Roll Result is 4 = 4 (Success)" if
the dice is 1 it should roll again, and multiply the next by x2, (1, 5 =
10) "Roll Result is 1,5 + 3 (modifer) = 13 (Success)" if
the dice is another 1, it should multiply the roll by x4. (ie 1,1, 5, =
20) and it should say "Roll Result is 1,1,5 + 3 (modifer) = 23 (Exceptional Success)" Stress die Stress die roll adds one more rule on the dice roll it still is essentially "1d10 + modfiers" but.: if the dice is 4 it it should result in "Roll Result is 4 = 4 (Success)" if the dice is 1 it should roll again, and multiply the next by x2, (1, 5
= 10) "Roll Result is 1,5 + 3 (modifer) = 13 (Success)" if
the dice is another 1, it should multiply the roll by x4. (ie 1,1, 5, =
20) and it should say "Roll Result is 1,1,5 + 3 (modifer) = 23 (Exceptional Success)" if the dice rolls a 0, it should say "Roll result is a Botch" So with the above syntax, .: /aroll Q 5 13 it would generate a result like this (Botch, roll 0) would be "Roll Result is (10+5) 15 vs 13 (Success)" (Failure, roll 3) would be "Roll Result is (3+5) 8 vs 13 (Failure)" (Success, roll 9) would be "Roll Result is (9+5) 14 vs 13 (Success)" (Exceptional Success, roll 1,6) "Roll Result is (2x6 = 12+5) 17 vs 13 (Exceptional Success)" /aroll S 5 13 it would generate a result like this (Botch, roll 0) would be "Roll Result a (Botch), roll Botch Dice" (Failure, roll 3) would be "Roll Result is (3+5) 8 vs 13 (Failure)" (Success, roll 9) would be "Roll Result is (9+5) 14 vs 13 (Success)" (Exceptional Success, roll 1,6) "Roll Result is (2x6 = 12+5) 17 vs 13 (Exceptional Success)" I don't think the complexity of this is insane, I guess I'll eventually get to have to learn the API fully, but if anyone could point me in the right direction, or perhaps have a great idea on how to do this I'll embrace any help I can get. Best Regards L