RPTools.net

Discussion and Support

Skip to content

It is currently Fri Jan 19, 2018 4:44 am 






Reply to topic  [ 1 post ] 

Previous topic | Next topic 

  Print view

Author Message
User avatar  Offline
Deity
 
Joined: Tue Jul 01, 2008 6:48 pm
Posts: 6237
 Post subject: getLibProperty() - Unknown Token?
PostPosted: Fri Jul 17, 2009 9:09 pm 
I'm running into a curious error that I didn't expect. I have a campaign with two library tokens, Lib:4e and Toolkit. Lib:4e has a number of commonly accessed lists on it. They're fixed, and they are not default values for properties - there are no default properties on the Lib:token.

So, I have a number of macros that use getLibProperty() to get certain items from the Lib:4e token. Those macros are called from my NPC and PC tokens (in the typical fashion, using the macro() roll option).

Anyway, while the PC/NPC tokens are on the same map with the Lib:4e token, everything worked just fine. However, when I moved the PC/NPC tokens to a new map (but left Lib:4e behind, as you are supposed to), I get "error executing getProperty() unknown token Lib:4e."

So, here's the thing: in the macros, I specified that the property needs to be drawn from Lib:4e, because I have other Lib:tokens on it (I was just making sure to be explicit). So, the call to getLibProperty looks like this:

Code:
[h:infoList getLibProperty("TrueMarks""Lib:4e")]
 



What I've found is, if I leave off the "Lib:4e" argument, it works fine, and will draw the property from the Library Token it's currently running on (which is fine; and is how it's explained in the wiki). What I found odd is that it seems like, if I specify that it should draw the property from the token it's currently running on, it fails.

Thoughts? Did I miss something obvious? I'm only recently a heavy user of getLibProperty().

_________________

What I'm Working On

MapTool Tutorials:
Introduction to Tokens
Introduction to Properties
Introduction to Macro Writing
Introduction to Light and Sight


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

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 are 3 users online :: 0 registered, 0 hidden and 3 guests (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 3 guests





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

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman