Macro weirdness

If you need support for dice roller or the forums, post here.
Post Reply
Message
Author
User avatar
Zhym
Rider of Rohan
Rider of Rohan
Posts: 20556
Joined: Fri Jul 26, 2013 1:14 am

Macro weirdness

#1 Post by Zhym »

I just tried to roll [1d6]+[1d3]. But, not remembering the macro syntax, I entered it as [1d6+1d3]. Here's what I got:

Falling: [1d6+1d3] = 5+1000 = 1005

Well, that character is pretty well dead. :lol:

How does 1d3 end up getting converted to 1,000? That's 10^3, obviously, but I don't see how 1d3 turns into 10^3.

User avatar
ToniXX
Site Admin
Site Admin
Posts: 3225
Joined: Sat Sep 19, 2009 5:21 pm
Location: Long Beach, CA

Re: Macro weirdness

#2 Post by ToniXX »

Whoah, that's weird. Hmmmm I'll have to take a look at the code and see if I can figure out why that happened. In the meantime, the best solution to this problem is to not do that anymore! LOL!

No but seriously I'll see what's going on.
"Sir, our research shows that the bird is equal to or greater than the word."

User avatar
Starbeard
Rider of Rohan
Rider of Rohan
Posts: 4615
Joined: Mon Jul 28, 2014 2:09 pm
Location: California

Re: Macro weirdness

#3 Post by Starbeard »

I've noticed that too.

I've also noticed that if you write a dice code outside of brackets, it can screw up any dice codes inside of brackets.

The macro "Strength test (3 dice ≤ STR 12): [3d6]" works out as intended:
Strength test (3 dice ≤ STR 12): [3d6] = 11

But if use the dice code in the description, it comes out weird.
"Strength test (3d6 ≤ STR 12): [3d6]" produces:
Strength test (0 ≤ STR 12): [3d6]

Using multiple formulas can lead to strange behaviour too.
"Ability scores (3d6 down the line): [3d6] [3d6] [3d6] [3d6] [3d6] [3d6]" produces:
Ability scores (0 down the line): [3d6] = 11 [3d6] = 11 [3d6] = 16 [3d6] = 7 [3d6] = 13 [3d6]

"Sword (ThAC0 19, STR +1, 1d8): [1d20+1], [1d8+1]" is okay:
Sword (ThAC0 19, STR +1, 1d8): [1d20+1] = 6+1 = 7, [1d8+1] = 7+1 = 8

But "Sword (ThAC0 19, 1d8): [1d20] [1d8]" produces:
Sword (ThAC0 19, 1): [1d20] = 13 [1d8]

Post Reply

Return to “Help and Support”