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

Some help wth Eldritch Blast Macro

Team mates, I have been dabbling with a rather simple Eldritch Blast Macro, I got most of it to work, including the fx, however I noticed a small problem. I intended the macro to query if Hexblade's Curse was on each beam target to determine further rolls. However it only asks once, which becomes problematic if shooting multiple targets. Here is my code. Can anyone take a look and see where I went wrong? Is having it query for each ATK roll beyond the reach of the macro? I have queried the forums extensively and cannot find a similar issue or resolution so I conclude that I am definitely missing something. @{selected|wtype}&{template:default} {{name=@{selected|character_name} casts Eldritch Blast!}} {{ ***@{selected|character_name}'s first blast*** *[[@{selected|d20}cs>?{Target HB Cursed?|No,20|Yes,19} + @{selected|spell_attack_bonus}[Spell Attack Bonus]]]*, **does [[1d10 + @{selected|charisma_mod}[CHA] + [[abs(?{Target HB Cursed?}-20)*@{selected|pb}]][PROF]]] force damage!** ***@{selected|character_name}'s second blast*** *[[@{selected|d20}cs>?{Target HB Cursed?|No,20|Yes,19} + @{selected|spell_attack_bonus}[Spell Attack Bonus]]]*, **does [[1d10 + @{selected|charisma_mod}[CHA] + [[abs(?{Target HB Cursed?}-20)*@{selected|pb}]][PROF]]] force damage!** }} /fx beam-holy @{target|Caster|token_id} @{target|Foe1|token_id} /fx burst-holy @{target|Foe1|token_id} /fx beam-holy @{target|Caster|token_id} @{target|Foe2|token_id} /fx burst-holy @{target|Foe2|token_id} I appreciate any help and time spent on this.
1671723126
GiGs
Pro
Sheet Author
API Scripter
Are you referring to this bit? ?{Target HB Cursed?} You'll need to change their names in each attack, so that they are different. This has the unfortunate side effect that if you attack the same target twice you'll be prompted for it twce, still. If each character has an attribute that records the curse, you could use ?{target|foe1|curse_attribute} and ?{target|foe2|curse_attribute}, and then you wont be prompted for it. You'll just have to pick each target and it will use those targets for both the curse attribute and fx targetting. Also for your FX, this part: /fx beam-holy @{target|Caster|token_id} @{target|Foe1|token_id} Does this work? /fx beam-holy @{selected|token_id} @{target|Foe1|token_id} I dont use FX much, but if that works, it that would cut down on your clicking.
GiGs said: Are you referring to this bit? ?{Target HB Cursed?} You'll need to change their names in each attack, so that they are different. This has the unfortunate side effect that if you attack the same target twice you'll be prompted for it twce, still. If each character has an attribute that records the curse, you could use ?{target|foe1|curse_attribute} and ?{target|foe2|curse_attribute}, and then you wont be prompted for it. You'll just have to pick each target and it will use those targets for both the curse attribute and fx targetting. Also for your FX, this part: /fx beam-holy @{target|Caster|token_id} @{target|Foe1|token_id} Does this work? /fx beam-holy @{selected|token_id} @{target|Foe1|token_id} I dont use FX much, but if that works, it that would cut down on your clicking. You are a hero of the republic. As is tradition, the fix was simple. I just needed a second pair of eyes. Thank you kindly for your time and advice. The /fx trick worked as well, reducing the click count.