Macro tossing error while evaluating table

Discuss macro implementations, ask for macro help (to share your creations, see User Creations, probably either Campaign Frameworks or Drop-in Resources).

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice

Post Reply
Ryralane
Kobold
Posts: 7
Joined: Fri Apr 24, 2009 8:10 pm

Macro tossing error while evaluating table

Post by Ryralane »

I'm having a problem with one of my macros tossing this error: "Illegal argument type java.math.BigDecimal, expecting java.lang.String"
It isn't doing this all the time. It seems that it's only whenever the table rolls the 3d10?

I've isolated the problem to this line:

Code: Select all

[h: Temp=(60+(eval(table("ASpringTemp"))))]
The table it is using is this:
Spoiler
Image
I haven't been able to figure out why it's doing this. Any help?

EDIT: Found a fix. I changed the 0 in the table to (0) and it fixed it.

User avatar
aliasmask
RPTools Team
Posts: 9029
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Macro tossing error while evaluating table

Post by aliasmask »

eval doesn't like numbers, only strings.

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Macro tossing error while evaluating table

Post by wolph42 »

aliasmask wrote:eval doesn't like numbers, only strings.
well you can't blame it really, I also rather evaluate strings then numbers :mrgreen:

Post Reply

Return to “Macros”