Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Can I run SmartAoE in the same macro as token mod if using different lines for each command?

So before I attempt this, I want to know if that is possible? Here is the scenario, I have a spell that affects selected targets within the area of a spell. These targets would then have a token marker added to their token. I would like the area of the spell to show, then select the targets, then set the token markers, then clear the spell area. Each step needs to have player input before it can continue. Is this even possible with those two Mods/Scripts? NOTE: I am not looking for a detailed writing, but rather a yes or no and some information on how to do this generally. I learn better by doing and this one I want to see if it is possible before I mess with it as I know Mods can mess with Game Data.
1689508588
David M.
Pro
API Scripter
Sounds like you want to affect only certain targets within the AoE. Currently the only way to do that in SmartAoE is by using a Trigger-target style activation and test them one-by-one. In your initial AoE generation macro, use conditionPass and/or conditionFail settings to add the statusmarkers. If no saving throw is needed then you can add --noSave|1.  But, if no saving throws are allowed/needed for adding the markers, then I might recommend this approach: Use SmartAoE just for visualization/ranging. Add --controlTokName to use a custom control token instead of the default. The sheet for the custom control token would have an ability set as a token action which would call the token-mod macro to add the statusmarkers. Then manually delete the control token. If a saving throw is required, you'd have to either use the former method and trigger for each target separately, or use the latter method but instead of a token-mod macro use GroupCheck (with the ApplyDamage script) to roll all the saves at once and add the markers.
Okay thanks you very much. I will certainly try that. Thanks again.