Code Monkey home page Code Monkey logo

Comments (8)

obiwankennedy avatar obiwankennedy commented on May 28, 2024 1

The command you want if SV = 12

!1d20;$1i:[<=2]{"Perfect Success: $1 "}{$1i:[<=12]{"Success $1 [%2]"}{$1i:[=20]{"Fatal Failure $1"}{"Failure: $1"}}}

The macro you want:

!macro vang([0-9]+) 1d20;$1i:[<=2]{"Perfect Success: $1 "}{$1i:[<=\1]{"Success $1 [%2]"}{$1i:[=20]{"Fatal Failure $1"}{"Failure: $1"}}} 1

To call it:

!vang12

from diceparser.

obiwankennedy avatar obiwankennedy commented on May 28, 2024 1

you want to roll several d20s, but for each you want the result?

3d20...

Sucess, Perfect Success, Failure...

or do we sum up the 3 dice ?

from diceparser.

obiwankennedy avatar obiwankennedy commented on May 28, 2024 1

Ok

This command works like a charm:

2d20i[<10]{"low"}{i[<15]{"high"}{"very high"}}

I have to test the behaviour with instructions:
2d20;$1i:[<=2]{"Perfect Success: $1 "}{$1i:[<=\1]{"Success $1 [%2]"}{$1i:[=20]{"Fatal Failure $1"}{"Failure: $1"}}}

After that, I will deploy the solution, and the fix will be available in discord.

from diceparser.

JoeGans avatar JoeGans commented on May 28, 2024

Fantastic, works a treat! :o]

Minor tweak, to allow for 2, 3 or more d20's all being rolled together? eg, !macro vang([0-9]+) **#**d20 ... pass how many d20's get rolled?

Many thanks, Walts

from diceparser.

JoeGans avatar JoeGans commented on May 28, 2024

Looking for the individual results for each, so three (or more) dice would produce
three (or more) results, rather than a single total ... Thanks, Walts

from diceparser.

obiwankennedy avatar obiwankennedy commented on May 28, 2024

I fixed the issue partially. Still working on it.

from diceparser.

JoeGans avatar JoeGans commented on May 28, 2024

Thanks Obi, your effort is greatly appreciated! ... Walts

from diceparser.

JoeGans avatar JoeGans commented on May 28, 2024

OPP's, sorry about that ... too early in the morning for me! ;) Walts

from diceparser.

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.