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

Problem with "fx effect" and macros"

1680723069

Edited 1680723248
Hi, I wanted to ask you a few things about the functioning of fx effects and macros. I'm currently with the free version of roll20, but my group and I intend to upgrade to pro soon. I created an EldrichBlast macro that creates an effect where it fires 2 beams at enemies. I then put the macro in the description of Eldrich blast's attack, so that when the player uses the attack, the animation starts (after selecting the Caster and the two targets). First doubt: is there a way to make sure that when you select the action, there is no need to also select the Caster? Because it is logical that the shot will always start from the token that launched the action }} #EldritchBlast  And second thing: after the animation this ugly line of code comes out... it's not a problem it's just that it's really ugly to see, is there a way to eliminate it? chat
1680723813

Edited 1680723902
Gauss
Forum Champion
What is the full macro for the Eldritch Blast attack? Or, if you are using the character sheet attack, please post a screenshot of the attack's settings so I can see what might be going on.
Gauss said: What is the full macro for the Eldritch Blast attack? Or, if you are using the character sheet attack, please post a screenshot of the attack's settings so I can see what might be going on. Sorry, you're right I meant to send that screenshot as well, but ran into trouble. Anyway yes, I used the "character sheet attack", and I "called" the macro inside the description of the attack. Like this
1680727323

Edited 1680727554
Gauss
Forum Champion
Yup, there's the problem. The description is buried inside the template and the setup you have there ( "}}" ) is basically telling the template that it is done so that anything after the #EldritchBlast macro gets read as text to output. To do what you are trying to do you need to turn the attack into a macro (you can just reference the attack directly rather than the entire template code) and then put the #EldritchBlast macro before the attack macro (after may run into some issues, but you can try that too). Don't forget to clear the description of the }} and #EldritchBlast text.  Example:  Macro name: Eldritch Blast Macro Macro body: #EldritchBlast %{selected|repeating_attack_$0_attack}
1680736624
Gauss
Forum Champion
I just realized I got focused on the second issue.  Here is the solution to your first issue:  /fx beam-charm @{selected|token_id} @{target|Foe1|token_id} /fx beam-charm @{selected|token_id} @{target|Foe2|token_id}
Oh thanks, it works perfectly Thanks a lot again