sylae / ligrev

XMPP MUC Utility bot
GNU General Public License v3.0
2 stars 1 forks source link

Replicate old array dice function "xay" #29

Closed sylae closed 7 years ago

sylae commented 8 years ago

The new "xay" includes a print command for bc to print the result automatically, for convenience. However, we should still have a method for passing dice results as arguments for a function (which was xay's original intent.

Perhaps xAy or some such can be used to implement the original functionality.

sylae commented 7 years ago

no this is dumb. if it comes up as a need we'll talk, but spaghetti code for no reason. bc can't even do lists or arrays properly, so just put a bunch of 1d6 or whatever.

see http://phodd.net/gnu-bc/index.html#array