In order to get info from a token it must first be impersonated. There are many ways to do this, but if you were to simply put this line in to the chat it wouldn't know which token to get the info from.
You can either create a macro on the token then the default impersonation would be that token. You can check the box in the properties of the macro to set "Apply to Selected Tokens". You can put the token's id in the function. You can use
Wiki: switchToken(). You can right click token and select Impersonate and use that statement in the chat.
The most common way to run macros is to create a token named "lib:_____" where ___ is the name you give it. So, lets say it was an attack library then you may put lib:attack. One you have your macro written in your lib:token it's best to call it from a globally shared location like the Campaign Window. There are a couple of ways to do it, but I recommend using user defined functions. The most common way for beginners is to use
[macro:].
I have a programmers starter kit here:
http://forums.rptools.net/viewtopic.php ... 31#p255459