
I am in a campaign where the DM has decided to use the Dnd35StDRoll template, we have to create a lvl 12 char, meaning that you have to add a lot of spells. I modified the given template:
I changed all variables that are in the formula to capital letter values because I would like to make the macro more copy/paste friendly ideally it should be like:
So my question is: how do you store the value "test" into the variable SPELLNAME for the duration of the macro. Is this possible?
&{template:DnD35StdRoll} {{spellflag=true}} {{name= @{character_name} casts SPELLNAME }} {{School:=SCHOOL}} {{Level: =LVL}} {{Comp'nts:=COMP}} {{Casting Time:= CT}} {{Range:= RANGE ft or RANGE_0,3048m)}} {{Target:= TARGET}} {{Duration:= DURATION min.}} {{Saving Throw:= SAVE_EFFECT (DC=SPELL_DC) }} {{Spell Resist.:= SR }} {{ Caster level check: = [[1d20+@{casterlevel2}+@{spellpen}]] vs spell resistance.}} {{compcheck= Conc:[[{1d20 +[[@{concentration}]] }>?{Concentration DC=15+Spell Level or 10+Damage Received|16}]] }} {{succeedcheck=Success! She casts her spell!}} {{failcheck=She fails :( }} {{notes=NOTES).}}
I changed all variables that are in the formula to capital letter values because I would like to make the macro more copy/paste friendly ideally it should be like:
SPELLNAME="test"
&{template:DnD35StdRoll} {{spellflag=true}} {{name= @{character_name} casts SPELLNAME }} {{School:=SCHOOL}} {{Level: =LVL}} {{Comp'nts:=COMP}} {{Casting Time:= CT}} {{Range:= RANGE ft or RANGE_0,3048m)}} {{Target:= TARGET}} {{Duration:= DURATION min.}} {{Attack Roll:=ATKRL}} {{Damage:=DMGROLL}} {{Saving Throw:= SAVE_EFFECT (DC=SPELL_DC) }} {{Spell Resist.:= SR }} {{ Caster level check: = [[1d20+@{casterlevel2}+@{spellpen}]] vs spell resistance.}} {{compcheck= Conc:[[{1d20 +[[@{concentration}]] }>?{Concentration DC=15+Spell Level or 10+Damage Received|16}]] }} {{succeedcheck=Success! She casts her spell!}} {{failcheck=She fails :( }} {{notes=NOTES).}}
So my question is: how do you store the value "test" into the variable SPELLNAME for the duration of the macro. Is this possible?