Can anyone help me understand why this macro for the Aid spell doesn't work consistently? Sometimes it works fine and other times, the script doesn't completely work. Can you not chain multiple things like repeating spells and API scripts? Or is there a "correct" way or order to do this? But basically, the macro should: 1. Fire the Aid Spell off of the character sheet 2. Use token-mod to adjust the hp (bar1) of the three selected tokens by the correct amount based on the spell level selected from casting the spell and apply the green plus (aid-1) status marker to the three selected tokens 3. Whisper to the gm which characters were targeted by the Aid spell %{Elran|repeating_spell-2_-MZ2LiZRx77yY1iN5fEJ_spell}
!token-mod {{
--ids @{target|1|token_id} @{target|1|token_id} @{target|2|token_id} @{target|3|token_id}
--set bar1_value|+[[5*?{Cast at what level?}-5]]
--set bar1_max|+[[5*?{Cast at what level?}-5]]
--set statusmarkers|aid-1
}}
/w gm @{selected|token_name} casts Aid on @{target|1|token_name}, @{target|2|token_name} and @{target|3|token_name} granting [[5*?{Cast at what level?|Level 2,1|Level 3,2|Level 4,3|Level 5,4}-5]] additional hit points. Again, sometimes, this all works beautifully. And other times, the spell goes off, targets are selected, but the hp change and status icons are not applied.