RPTools.net

Discussion and Support

Skip to content

It is currently Sun Feb 18, 2018 1:29 pm 






Reply to topic  [ 3 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Kobold
 
Joined: Fri Apr 24, 2009 7:10 pm
Posts: 7
 Post subject: Macro tossing error while evaluating table
PostPosted: Wed Feb 07, 2018 1:39 am 
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:
[h: Temp=(60+(eval(table("ASpringTemp"))))]

The table it is using is this:
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.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 8009
Location: Bay Area
 Post subject: Re: Macro tossing error while evaluating table
PostPosted: Wed Feb 07, 2018 5:02 am 
eval doesn't like numbers, only strings.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9478
Location: Netherlands
 Post subject: Re: Macro tossing error while evaluating table
PostPosted: Wed Feb 07, 2018 5:34 am 
aliasmask wrote:
eval doesn't like numbers, only strings.


well you can't blame it really, I also rather evaluate strings then numbers :mrgreen:

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 3 posts ] 

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:

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 1 guest





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman