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

Spell Macro Question

As of right now, I've been using the typical template for a 5e game and unforunately, I've been running into some problems on trying to get certain spells to come across correctly in damage, specifically breaking down damage and attacks into individual components like magic missile/scorching ray/ etc.. . I'm unsure of how to seperate the individual missiles and attacks with each. This is the current macro I'm using for magic missile, but again, I've been messing around with this for the better part of 2 hours searching for a way to break it up online and by easter egging it. Is there a way to add an additional {{spelldamage}} into it somehow and have it remain the same in formatting? I've tried breaking it down into individual parts ( ex. +[[1d4+1]] ) but I always come back to it not being fully broken down into components when the spell slot level changes, so the initial number is always a combination of missiles instead of broken down. My only other alternative at this point is to let it just all remain clumped, but obviously that defeats the purpose of the macro. /w gm &{template:5eDefault} {{spell=1}} {{title=Magic Missile}} {{spellshowinfoblock=1}} {{spellshowdesc=1}} {{spelldescription=You create three glowing darts of magical force. Each dart hits a creature of your choice that you can see within range. A dart deals 1d4+1 force damage to its target. The darts all strike simultaneously and you can direct them to hit one creature or several.}} {{spellshowhigherlvl=1}} {{spellhigherlevel=When you cast this spell using a spell slot of 2nd level or higher, the spell creates one more dart for each slot above 1st.}} {{Level=1}} {{School=Evocation}} {{Concentrate=No}} {{Components=V, S}}{{spellgainedfrom=Wizard}} {{spellcomponents=None}} {{spellshowdamage=1}} {{spelldamage=[[(?{Spell Slot Level|1})d4+1+(@{selected|global_spell_damage_bonus})]] Force}} {{spellcasttime=1 action}} {{spellduration=Instantaneous}} {{spelltarget=Single or Several}} {{spellrange=120 ft}} @{selected|classactionspellcast}
I think you can either return the total damage the spell does, which should be: [[ [[?{Spell Slot Level|1}+2]]d4 + [[?{Spell Slot Level|1}+2]] + (@{selected|global_spell_damage_bonus} * [[?{Spell Slot Level|1}+2]])]] Or you can do [[1d4+1]] + [[1d4+1]] + [[1d4+1]] + [[ [[{{?{Spell Slot Level|1},0}>2}]] * {1d4+1} ]] + [[ [[{{?{Spell Slot Level|1},0}>3}]] * {1d4+1} ]] + [[ [[{{?{Spell Slot Level|1},0}>4}]] * {1d4+1} ]] + [[ [[{{?{Spell Slot Level|1},0}>5}]] * {1d4+1} ]] This would go up to 5th slot, you can add more in the same fashion. It won't hide the other missiles but will keep them at 0 damage You may have to enter the global spell damage yourself here, I wasn't sure if it applies to every dart or how it applies.
Here is my scorching ray macro. It targets three creatures and you can roll it again for more. Any extra beams from the second attack should be aimed at yourself, to reduce confusion. Put this macro in Abilities section of the character using it and name it Scorching-Ray. the pink button at the top can be clicked to cast it again when needed. &{template:5eDefault} {{weapon=1}} {{spell=1}} {{simple=1}} {{title=[Scorching Ray](~selected|Scorching-Ray)}} {{subheader=@{selected|character_name}}} {{subheaderright=Evocation Level 2}} {{subheader2=Range 120'}} {{subheaderright2=Level ?{Spell Slot Level|2|3|4|5|6|7|8|9} spell slot}}{{emote= Hurling [[{?{Spell Slot Level}}+1]] Rays ...}} {{simple=1}} {{noadvroll=1}} {{attack=[[ 1d20cs>20 + [[ @{Selected|intelligence_mod} + @{Selected|PB} ]] + (@{Selected|global_spell_attack_bonus}) ]] to hit [[ @{target|Target 1|bar2}d1 ]]}}{{damage=[[ 2d6 + (@{Selected|global_spell_damage_bonus}) ]] Fire ***@{target|Target 1|token_name}*** }} {{critdamage=Additional [[ 2d6 ]] fire }} {{spellshowattack=1}} {{spellattack=[[ 1d20 + [[ @{Selected|intelligence_mod} + @{Selected|PB} ]] + (@{Selected|global_spell_attack_bonus}) ]] to hit [[ @{target|Target 2|bar2}d1 ]]}} {{spellshowdamage=1}} {{spelldamage=[[ 2d6 ]] Fire ***@{target|Target 2|token_name}***}} {{spellcancrit=1}} {{spellcritdamage=Additional [[ 2d6 ]] fire}} {{rollname=Attack}} {{roll1=[[ 1d20cs>20 + [[ @{Selected|intelligence_mod} + @{Selected|PB} ]] + @{Selected|global_spell_attack_bonus} ]] to hit [[@{target|Target 3|bar2}d1]] vs AC}} {{weapondamage=[[ 2d6]] Fire ***@{target|Target 3|token_name}***}} {{weaponcritdamage=Additional [[ 2d6 ]] fire}} {{Rays left= [[ ?{Spell Slot Level} -2 ]] Cast this spell again to use the extra rays. }} @{Selected|classactionspellcast} I have a series of macros for magic missile but it involves 67 recursive macros so I cannot really duplicate it here. Add this macro as Scorching-Ray-fx and use it to really wow 'em. %{selected|Scorching-Ray} /fx beam-fire @{selected|token_ID} @{target|Target 1|token_ID} /fx beam-fire @{selected|token_ID} @{target|Target 2|token_ID}  /fx beam-fire @{selected|token_ID} @{target|Target 3|token_ID} Happy rolling Ed S.
Love this community. Thanks a ton for the help you two.
I took what you and other people have showed me recently in the pro and macro forums and ended up creating this for magic missile. It sure as hell isn't pretty, but it gets the job done. Thanks a ton for all of your help. &{template:5eDefault} {{spell=1}} {{title=Magic Missile}}{{subheader=@{selected|character_name}}}{{subheaderright=Level ?{Spell Slot Level|1|2|3|4|5|6|7|8|9}}}{{spellshowinfoblock=1}} {{spellshowdesc=1}} {{spelldescription=You create three glowing darts of magical force. Each dart hits a creature of your choice that you can see within range. A dart deals 1d4+1 force damage to its target. The darts all strike simultaneously and you can direct them to hit one creature or several.}} {{spellshowhigherlvl=1}} {{spellhigherlevel=When you cast this spell using a spell slot of 2nd level or higher, the spell creates one more dart for each slot above 1st.}}{{School=Evocation} {{Concentrate=No}} {{Components=V, S}}{{spellgainedfrom=Sorcerer, Wizard}} {{spellcomponents=None}} {{spellcasttime=1 action}} {{spellduration=Instantaneous}} {{spelltarget=Up to 1 target per missile}} {{spellrange=120 ft}} {{spellshowdamage=1}} {{spelldamage=?{Spell Level | 1, [[1d4+1]][[1d4+1]][[1d4+1]] Force | 2, [[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]] Force | 3,[[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]] Force | 4,[[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]] Force | 5,[[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]] Force | 6, [[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]] Force | 7, [[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]] Force | 8, [[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]]][[1d4+1]][[1d4+1]] Force | 9, [[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]][[1d4+1]] Force}}}@{selected|classactionspellcast}