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

Odd D&D 3.5 macro question

I am playing a Duskblade, and was wondering if i could include a spell to be cast into an attack and damage macro? here is what i have so far, &{template:DnD35StdRoll} {{basicflag=true}} {{Attack:= [[1d20 + @{weapon1stat} + @{weapon1focus} + @{weapon1enh} ]] }} {{Damage:= [[1d10 + @{weapon1damagestat}[Weapon Dmg Ability] +@{weapon1enh}[Weapon Enh] +@{weapon1specialize}[Weapon Spec] + ?{Spell|0} ]] }}
You can, add on the end of your current macro ; {{<Spellname>= <Spell explination, if you so wish>}} {{<Spelldamage=[[<damage for spell, for example 1D8>]]
1471227218

Edited 1471227635
There are (at least) two ways to do this: 1. Add the spell directly to the attack macro as Lexi described. The disadvantage with that would be that it is always shown and you'd have to create a weapon for every attack/spell combination you want to use. 2. Advanced Usage of Roll Queries You have already started playing around with the dropdown promt. You can add the additional spell fields as values of the dropdown options (?{Name of Query|Option 1,value1|Option 2,value2}), but you have to replace some characters for that to work. Within the value section you will have to replace each of these four symbols "{,|}" with their html code as described on the linked wiki page. Avoid using any @{Attribute}, %{Ability}, #Macro call within the value section since they can cause permanent problems with the chatlog if used incorrectly. Always test these macros in a different game before bringing them into your regular one to avoid disasters :P. Below is an example for a possible attack macro. It executes the usual attack roll in the first line. The second line is a dropdown menu that either does nothing (none option) or runs a spell template (Light or Shocking Grasp). &{template:DnD35Attack} {{pcflag=true}} {{name=@{character_name}}} {{subtags=attacks with a @{weapon1name} }} {{attack1=hitting AC [[ @{weapon1attackcalc} ]] }} {{critconfirm1=Crit?: [[ @{weapon1attackcalc} ]] }} {{fumbleroll=Fumble: [[ d20 ]] }} {{damage1=for [[ @{weapon1damage} ]]dmg}} {{critdmg1=+ [[ @{weapon1crit} ]] crit dmg}} {{fullattackflag= [[ 0d1 ]] }} ?{Channel Spell|none, |Light,&{template:DnD35StdRoll} {{spellflag=true}} {{name=Name}} {{subtags=casts Light}} {{School:=Evocation}} {{Level:=Duskblade 0}} {{Components:=V, M/DF}} {{Casting Time:=Melee attack}} {{Range:=Weapon attack}} {{Target:=Object hit by melee attack}} {{Duration:=30 minutes [D]}} {{notes=Object shines like a torch. (PH p.248)}}|Shocking Grasp,&{template:DnD35StdRoll} {{spellflag=true}} {{name=Name}} {{subtags=casts Shocking Grasp}} {{School:=Evocation}} {{Level:=Duskblade 1}} {{Components:=V, S}} {{Casting Time:=Melee attack}} {{Range:=Weapon attack}} {{Target:=Object hit by melee attack}} {{Duration:=Instantaneous}} {{notes=Your successful melee touch attack deals [[1d6]] points of electricity damage per caster level (maximum 5d6). When delivering the jolt, you gain a +3 bonus on attack rolls if the opponent is wearing metal armor (or made out of metal, carrying a lot of metal, or the like). (PH p.279)}}}  Edit: You still have to replace the characters in the value fields. I can not post that in the forum since html automatically changes them back ;)
1471227558
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Could also add  ability command buttons for each of the spells that you might cast in this context at the end of the attack. The benefit here is that you don't need to mess with html entities and don't need to answer a prompt or two every time you attack.