Acme::CoC::Dice - Dice role module for CoC TRPG.
use Acme::CoC::Dice; my $dice_role = Acme::CoC::Dice->role('1d100'); print $dice_role->{dices}; # this property can have some result with giving parameter as '2d6'. print $dice_role->{sum};
Acme::CoC::Dice is getting random number like 1d100.
role
Gets random number like dice roling. Format is "ndm" ("n" and "m" is Natural number). For example, it's like "1d6".
my $result = Acme::CoC::Dice->role('1d6');
role_skill
Runs "role" with giving "1d100". Usually we can play dice as "1d100" for using skill on CoC-TRPG. This method is for it.
my $result = Acme::CoC::Dice->role_skill; my $result = Acme::CoC::Dice->role_skill(50); ## 50 is given for success threshold.
bedoshi
Copyright 2021- bedoshi
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Acme::CoC::Dice, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::CoC::Dice
CPAN shell
perl -MCPAN -e shell install Acme::CoC::Dice
For more information on module installation, please visit the detailed CPAN module installation guide.