Brief aside, really enjoying the API so far. Building my character
sheet was a fun challenge and playing with JavaScript has been
interesting. As someone who's only played around with this stuff, there have been a lot of great resources on the wiki that I was able to use to put my sheet together frankenstein-style. Anyway, I've got a custom rules system I'm using for my campaign, one which doesn't use a grid. While I like the freedom this route provides in terms of movement, it does make things trickier when dealing with threat ranges and such. To that end, I have been trying to put together a small script that we can use as a token action that will show the threat range of a unit by using the Aura 2 property. It's supposed to fetch a few values from the character that the token represents and make that the aura radius. Here's what I've got so far. on("chat:message", function(msg) { if(msg.type == "api" && msg.content === ("!attackrange")) { for each (var token in msg.selected) { if (token.get("aura2_radius") === 0) { token.set("aura2_radius", token.get("movement")) } else { token.set("aura2_radius", 0) } } } }); My main question is, how do I get info from the Character Sheet that is tied to the token? I think if I could get that down I'd have a much easier time of things. I have two number attributes on the sheet that I'd like to fetch- one is for movement, and the other is for weapon range. Movement range should be easy, since that's just a value I have on the sheet, so I can get that no problem. The weapon range will probably be trickier, and I haven't tried to tackle that part yet. Weapon range as I have it on my sheet is tied to individual weapon entries in a <fieldset>, and I use a checkbox to determine which one(s) is/are equipped. So ideally I'd also like to fetch the value of the weapon range from the weapon(s) that have their checkboxes checked. I'm not really sure how to approach this part of it, so any advice would be appreciated.