2022-08-21 19:04:57 +02:00
|
|
|
#compdef dice dice-roller
|
|
|
|
|
|
|
|
arguments=(
|
2022-08-22 00:07:42 +02:00
|
|
|
'(--coin --advantage --disadvantage --attacks)-a[Roll a set rules multiple times]:(number of attacks)'
|
|
|
|
'(--coin --advantage --disadvantage -a)--attacks[Roll a set rules multiple times]:(number of attacks)'
|
2022-08-21 19:04:57 +02:00
|
|
|
|
2022-08-23 17:27:08 +02:00
|
|
|
'(--coin --advantage --disadvantage --throws)-t[Specify amount of dice to cast]:(number of dice)'
|
|
|
|
'(--coin --advantage --disadvantage -t)--throws[Specify amount of dice to cast]:(number of dice)'
|
2022-08-21 19:04:57 +02:00
|
|
|
|
2022-08-22 00:07:42 +02:00
|
|
|
'(--coin --advantage --disadvantage --surfaces)-s[Use to specify die surfaces]:(number of surfaces):(4 6 8 10 12 20 100)'
|
|
|
|
'(--coin --advantage --disadvantage -s)--surfaces[Use to specify die surfaces]:(number of surfaces):(4 6 8 10 12 20 100)'
|
2022-08-21 19:04:57 +02:00
|
|
|
|
2022-08-22 00:07:42 +02:00
|
|
|
'(--coin --modifier)-m[Add modifier to result of rolls]:(number to add)'
|
|
|
|
'(--coin -m)--modifier[Add modifier to result of rolls]:(number to add)'
|
2022-08-21 19:04:57 +02:00
|
|
|
|
2022-08-23 17:27:08 +02:00
|
|
|
'(--coin --advantage -t --throws -a --attacks -s --surfaces)--disadvantage[Roll 2d20 and take the lowest value]'
|
|
|
|
'(--coin --disadvantage -t -a --throws --attacks -s --surfaces)--advantage[Roll 2d20 and take the highest value]'
|
2022-08-21 19:04:57 +02:00
|
|
|
'(--disadvantage --advantage -a --attacks -s --surfaces -m --modifier)--coin[Toss coin, same as -s 2]'
|
|
|
|
|
|
|
|
)
|
|
|
|
_arguments : $arguments
|