Roll it script free download
You can also define rules for the minimum percentage of a token's area that needs to be covered by an affected AoE grid square in order for the creature to be considered "in" the area of effect. There are additional commands to rotate the cone origin point CW/CCW and to "trigger" the effect. You can choose to have the origin of the cone be in the default center of the origin (selected) token, or use the -origin|nearest or -origin|nearest, face command to automatically shift the origin point to the nearest corner or face of the origin token. I'll use cones in the following discussion: For example, using -minGridArea|0.25 would require 25% of the grid square to be covered by the cone boundaries. To determine whether a square is affected, you define a minimum grid coverage area in your macro. Depending on the commands used to spawn that control token, the script will associate those settings with that control token and act accordingly (a link between the selected and control tokens is made and stored in persistent memory). The location of the AoE is set by the positioning of the control token (and for lines/cones, the relative positions of the selected and control tokens). 9 Registering your token change events to SmartAoEĬurrent functionality is to spawn a "control token" over a selected token.8.12 Custom Ruleset Example, 180deg cone.8.4 True radius 15ft cone approximation.8.3 Simple 5e fixed-radius cone with origin rotation.7.1 Using custom images for title background.7 Quirks, Recommendations, Known Issues and/or TBD.5.2 AoE Math and/or Trigger Behavior Commands.The circle AoE is triggered (5e SRD Ice Storm spell), making saving throws for tokens in area, automatically deducting damage ( -autoApply|true), and outputting results to chat.
Example of 4 active AoE's: 90deg cone (fixed radius, snapped to intersection), 5e-style cone (variable radius), line, and circle (using float keyword and custom multi-sided controlToken). Also, the script can detect creatures within affected squares and be able to roll saving throws and/or apply damage and condition markers automatically (ala GroupCheck or similar script).įigure description. The idea behind this script is to provide flexibility in casting angles (to align just the right spot before triggering) and a means for consistent ruling of these cases. Have you ever overlayed a cone, line, or circle template on a map and wondered if that square that is just barely covered should count as "in"? Sure, there are pre-made grid templates out there, but you are usually limited to 90/45deg orientations.