This script creates an aura on a targeting token named "BlastTarget" via setting a status icon on the token. The size of the aura is determined by the value set on the icon. Video Link: <a href="https://plus.google.com/109659591453191902524/posts/UhgBXTZeyCC" rel="nofollow">https://plus.google.com/109659591453191902524/posts/UhgBXTZeyCC</a> Update Jan 15 2014: Bug fix to remove the aura completely when using the 0 (zero) key. It was filling just the one square. // -- SETTINGS --
// Blast Icon - Set to the name of the icon you want to use to determine
// the size of the aura on BlastTarget. Suggestions include chemical-bolt,
// grenade, radioactive, or rolling-bomb.
var BlastIcon = "grenade";
on("change:token", function(obj, prev) {
// Exit the script if the object is not a token or is a drawing...
if(obj.get("subtype") != "token" || obj.get("isdrawing") == "true") return;
// Check for the specified status icon on the BlastTarget and add an aura equal
// to the number set on the status.
if (obj.get("name") == "BlastTarget") {
var Status = obj.get("statusmarkers");
var StatusIndex = Status.indexOf(BlastIcon);
var AuraRadius = Status.substring(StatusIndex + BlastIcon.length + 1);
if (StatusIndex != -1) {
if (AuraRadius == "") AuraRadius = "1";
obj.set("aura1_radius", AuraRadius);
obj.set("aura1_color", "#990000");
obj.set("aura1_square", true);
obj.set("showplayers_aura1", true);
}
if (StatusIndex == -1 || AuraRadius == "0") {
obj.set ("aura1_radius", "");
}
}
});