Giter VIP home page Giter VIP logo

Comments (5)

ArtemGr avatar ArtemGr commented on June 12, 2024

max(d10!,d6!)k1

This doesn't work, does it?

Is adding abbreviations/macros for specific systems something you're willing to do?

I have plans for the bot to remember the rolls under shortcuts. So if there is a lengthy roll that does what you need, then I'd rather focus on making it available under a shortcut.

I was going to implement it in the following way:

/r strength max(d10!,d6!)k1

Rolls and remembers the dice specification as "strength".

/r strength

Rolls strength again.

from sidekick.

Rimhollow avatar Rimhollow commented on June 12, 2024

Ah, right, sorry--I meant max(d10!,d6!), which works fine. Got confused while transcribing it to Github, apparently.

Shortcuts sounds like a great idea, and should work for most Savage Worlds rolls. It would be handy to do math with them, e.g.

/r swd10 max(d10!,d6!)
/r swd10 +4

To make a d10 trait roll with a +4 bonus. Although that syntax could get confusing, as it could be interpreted as redefining "swd10" as "+4". Maybe you'd want to use = as an explicit assignment operator?

from sidekick.

ArtemGr avatar ArtemGr commented on June 12, 2024

Maybe you'd want to use = as an explicit assignment operator?

Good idea!

from sidekick.

ArtemGr avatar ArtemGr commented on June 12, 2024

I think I'll mark the memorized rolls with a sigil, e.g.

/r $swd10 = max(d10!,d6!)
/r $swd10 +4

This will simplify greatly the task of fishing for memorized names in expression.

P.S. I wonder if treating it in the shell way would be better, e.g.

/r swd10 = max(d10!,d6!)
/r $swd10 +4

from sidekick.

ArtemGr avatar ArtemGr commented on June 12, 2024

Check it out.

/r $swd10 = max(d10!,d6!)
/r $swd10

from sidekick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.