It is currently Wed Feb 21, 2018 10:44 pm

All times are UTC - 7 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Macro weirdness
PostPosted: Fri Feb 09, 2018 1:42 pm 
Offline
Ranger Lord
Ranger Lord
User avatar

Joined: Thu Jul 25, 2013 7:14 pm
Posts: 15167
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Macro weirdness
PostPosted: Fri Feb 09, 2018 1:49 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Sat Sep 19, 2009 11:21 am
Posts: 2660
Location: Long Beach, CA
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.

_________________
"Eternal nothingness is O.K. if you're dressed for it."


Top
 Profile  
Reply with quote  
 Post subject: Re: Macro weirdness
PostPosted: Fri Feb 16, 2018 2:07 pm 
Offline
Ranger Lord
Ranger Lord
User avatar

Joined: Mon Jul 28, 2014 8:09 am
Posts: 2889
Location: England
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]


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group