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

How can I add FX to either the dnd5e spell book or the macro i've made for it?

1466138686

Edited 1466138715
I have been struggling to figure out the solution to this problem. I originally wanted to make a drop down menu for the spell list with it linked to the spell page but instead ended up working with&nbsp;Ability Command Buttons the end result is this. so its working but is there a way to add effects from here:&nbsp; <a href="https://wiki.roll20.net/Custom_FX" rel="nofollow">https://wiki.roll20.net/Custom_FX</a> somewhere in my code or in the spellbook itself?&nbsp; I would like to combine my previous attempts of using drop down menus and the current linked spell books but i don't know how to. If I can get the effects working on the buttons though I'll take it. here is the code i've used so far.&nbsp; Ability Command Buttons code: /w @{selected|token_name} &{template:5eDefault} {{spell=1}} {{title=Spell Select}} {{subheader=@{Selected|character_name}}} {{subheaderright=@{selected|spell_slots_l1} / @{selected|spell_slots_l1|MAX} **Slots**}} {{subheader2=Level 1}} {{emote=[@{selected|repeating_spellbookLEVEL1_$0_spellname}](~selected|repeating_spellbookLEVEL1_$0_spellcast) [@{selected|repeating_spellbookLEVEL1_$1_spellname}](~selected|repeating_spellbookLEVEL1_$1_spellcast)[@{selected|repeating_spellbookLEVEL1_$2_spellname}](~selected|repeating_spellbookLEVEL1_$2_spellcast)[@{selected|repeating_spellbookLEVEL1_$3_spellname}](~selected|repeating_spellbookLEVEL1_$3_spellcast)[@{selected|repeating_spellbookLEVEL1_$4_spellname}](~selected|repeating_spellbookLEVEL1_$4_spellcast)[@{selected|repeating_spellbookLEVEL1_$5_spellname}](~selected|repeating_spellbookLEVEL1_$5_spellcast)[@{selected|repeating_spellbookLEVEL1_$6_spellname}](~selected|repeating_spellbookLEVEL1_$6_spellcast)[@{selected|repeating_spellbookLEVEL1_$7_spellname}](~selected|repeating_spellbookLEVEL1_$7_spellcast)[@{selected|repeating_spellbookLEVEL1_$8_spellname}](~selected|repeating_spellbookLEVEL1_$8_spellcast)[@{selected|repeating_spellbookLEVEL1_$9_spellname}](~selected|repeating_spellbookLEVEL1_$9_spellcast)[@{selected|repeating_spellbookLEVEL1_$10_spellname}](~selected|repeating_spellbookLEVEL1_$10_spellcast)[@{selected|repeating_spellbookLEVEL1_$11_spellname}](~selected|repeating_spellbookLEVEL1_$11_spellcast)[@{selected|repeating_spellbookLEVEL1_$12_spellname}](~selected|repeating_spellbookLEVEL1_$12_spellcast)[@{selected|repeating_spellbookLEVEL1_$13_spellname}](~selected|repeating_spellbookLEVEL1_$13_spellcast)[@{selected|repeating_spellbookLEVEL1_$14_spellname}](~selected|repeating_spellbookLEVEL1_$14_spellcast)[@{selected|repeating_spellbookLEVEL1_$15_spellname}](~selected|repeating_spellbookLEVEL1_$15_spellcast)[@{selected|repeating_spellbookLEVEL1_$16_spellname}](~selected|repeating_spellbookLEVEL1_$16_spellcast)[@{selected|repeating_spellbookLEVEL1_$17_spellname}](~selected|repeating_spellbookLEVEL1_$17_spellcast)[@{selected|repeating_spellbookLEVEL1_$18_spellname}](~selected|repeating_spellbookLEVEL1_$18_spellcast)[@{selected|repeating_spellbookLEVEL1_$19_spellname}](~selected|repeating_spellbookLEVEL1_$19_spellcast) }} Previous drop down code list without the link to the spell book: ?{Which Lvl 1 spell are you casting?| Thunderwave ,/me opens his mouth and lets out a thunderous howl and slams his staff onto the ground. All creatures within a 15 ft. cube must make a Constitution Saving Throw of [[8 + @{selected|PB} + @{selected|wisdom_mod}]] or takes [[2d8]] thunder damage and is knocked 10ft. back. /fx explode-magic @{selected|token_id}| Faerie Fire ,/me chants in druidic and every one in a 20ft. square of @{target|character_name} must make a Dexterity Saving throw of [[8 + @{selected|PB} + @{selected|wisdom_mod}]] or they glow in pink hue and all attacks for the remainder of the encounter have advantage. /fx explode-charm @{target|token_id}| Entangle ,/me thrusts his staff towards the ground and vines spring forth grasping @{target|character_name}. The ground in a 20ft. square becomes difficult terrain. @{target|character_name} must make a Strength saving throw greater than [[8 + @{selected|PB} + @{selected|wisdom_mod}]] or be restrained /fx bomb-acid @{target|token_id}| Animal Friendship ,/me casts Animal Friendship and @{target|character_name} must make a Wisdom saving throw greater than [[8 + @{selected|PB} + @{selected|wisdom_mod}]] or be charmed /fx glow-charm @{target|token_id}| Goodberry ,/me holds the tip of his staff towards his hand and concentrates on nourishment. Goodberry's slowly grow from @{selected|character_name}’s palm. /fx glow-slime @{selected|token_id}| Cure Light Wounds ,/me casts Cure Wounds and heals [[1d8 + @{selected|wisdom_mod}]] HP to @{target|character_name} /fx bomb-holy @{target|token_id}} Any help or tips on this issue would be greatly appreciated.&nbsp; Thanks, Mike
In the Effects section of the spellbook entry you can add in your emotes with some roll template manipulation. The effects are alittle more difficult, but we can do it with another command button.&nbsp; All roll templates for the 5e Community sheet can have an emote, I used that field for the main template for the spellbook macro You just need to append the built in template by terminating it and appending the emote field to it.&nbsp; In the Effects Field after any other text you or rolls you have add this }} {{emote=your emote here}} For the spell effect you can make an ability on your character called fx-select that has all the effect options on it. You could make a separate macro ability for each of the FX you like, but for this example we will use the all in one approach.&nbsp; fx-select /fx ?{Type|Beam,beam|Bomb,bomb|Breath,breath|Bubbling,bubbling|Burn,burn|Burst,burst|Explosion,explode|Glow,glow|Missile,missile|Nova,nova|Spatter,splatter}-?{Color|Acid,acid|Blood,blood|Charm,charm|Death,death|Fire,fire|Frost,frost|Holy,holy|Magic,magic|Slime,slime|Smoke,smoke|Water,water} @{target|Source|token_id} @{target|Destination|token_id} After you have that macro in an ability on the character's sheet you can call it from inside the spell output with another ability button. In the Effects section add this code at the end of any other text or rolls you have in there [Spell FX](~selected|fx-select) }} This will require you to click again, but it's a simply way to achieve the desired output. &nbsp; All together you will end up this in your Effects section [Spell FX](~selected|fx-select)}} {{emote=By the Holy Power of **Moradin** I heal @{target|token_name} }} &nbsp;Like I said you can make separate macros for each of the spell effect if you like, that will cut down on the need to do that pull down and target select on every spell you want to use.&nbsp; I hope that helps. Happy gaming
yep adding in the new buttons to abilities and linking them to the effects was the fix i needed. Thanks for such a quick and helpful reply.&nbsp;
Happy to help