
Thank you, everyone!
Rob.
Rob.
Kaelev said:
Anyone have that Spell macro template that had all the possible elements that could be used in a spell? I've been searching around the forums and can't find it. It was generalized with example entries.
Kaelev said:
Anyone have that Spell macro template that had all the possible elements that could be used in a spell? I've been searching around the forums and can't find it. It was generalized with example entries.
Ed S. said:
Kaelev said:
Anyone have that Spell macro template that had all the possible elements that could be used in a spell? I've been searching around the forums and can't find it. It was generalized with example entries.
Which sheet are you using and do you mean the template fields for the roll template?
Kaelev said:
I'm using the Shaped sheet. Yeah. I think that was the one. It was the script for the macro followed by a screenshot of what it looks like in chat. It had fields like {{title=Spell Name}} {{subheader=Range Spell Range}} and so on.
?{Called Shot|Select one:, ?{Select an option|Try again., 00.0000|Ankle, 01.0801|Ear, 02.1001|Eye, 03.1001|Foot, 04.0801|Forearm, 05.0602|Genitals, 06.1004|Gut, 07.0608|Hand, 08.0801|Hip, 09.0603|Jaw, 10.0802|Knee, 11.0801|Neck, 12.0810|Shin, 13.0602|Shoulder/Upper Arm, 14.0603|Sternum, 15.1010|Thigh, 16.0603 || Blast out of Hands, 17.0400|Dirty Trick, 10.0400|Harder Knock, 19.04|Knock Down (Melee Only), 20.04|Shake Up, 21.04|Splitting the Damage, 22.04|Trick Shot, 23.04|Vitals, 24.04 || Engine Block, 25.04|Fuel Tank/Battery, 26.04|Axle, 27.0606|Antenna, 28.0802|Door Lock, 29.0600|Window Motor, 30.0400}|Ankle, 01.0801|Ear, 02.1001|Eye, 03.1001|Foot, 04.0801|Forearm, 05.0602|Genitals, 06.1004|Gut, 07.0608|Hand, 08.0801|Hip, 09.0603|Jaw, 10.0802|Knee, 11.0801|Neck, 12.0810|Shin, 13.0602|Shoulder/Upper Arm, 14.0603|Sternum, 15.1010|Thigh, 16.0603 || Blast out of Hands, 17.0400|Dirty Trick, 10.0400|Harder Knock, 19.04|Knock Down (Melee Only), 20.04|Shake Up, 21.04|Splitting the Damage, 22.04|Trick Shot, 23.04|Vitals, 24.04 || Engine Block, 25.04|Fuel Tank/Battery, 26.04|Axle, 27.0606|Antenna, 28.0802|Door Lock, 29.0600|Window Motor, 30.0400} AB.xxxx (e.g. PowerCards Roll ID value) = [[ [$RollID] floor(?{Called Shot}) + 0d0 ]] xx.CDxx (e.g. Called Shot modifier) = [[round(1e2*(?{Called Shot} - floor(?{Called Shot})))]] xx.xxEF (e.g. DV limit) = [[round(1e2*(1e2*?{Called Shot} - floor(1e2*?{Called Shot})))]]
PiecE said:
I absolutely love the idea of a menu in chat for the PC's like your v3 macros on imgur, though its just too clunky.
It's moderately easy setting it up, but it just bugs out at random times for no reason. One moment it'll work and the next it'll just freak out, put nothing in a menu and roll for/activate everything else in the macro. It stays this way for a few minutes and then suddenly works again. So weird.
I guess I'll make a few drop-down macros as token actions. Will post when I feel I've got something cool. Thanks for the inspiration :)
EDIT: Nevermind, its impossible (for now) to call a query on any ability that has a roll template. Back to square 1...
&{template:5eDefault} {{spell=1}} {{title=Magic Missile}} {{subheader=@{selected|character_name}}} {{subheaderright=Evocation Level 1}}} {{subheader2= Range 120'}} {{subheaderright2=Level ?{Spell Slot Level|1} spell slot}} {{emote= [[?{Spell Slot Level|1}+2]] glowing darts shoot forth...}} {{spellshowdamage=1}} {{spelldamage= [[(?{Number of missiles at @{target|Target#1|token_name}|1})d4+(?{Number of missiles at @{target|Target#1|token_name}|1})+(@{selected|global_spell_damage_bonus})]] Force}} {{spellshoweffects=1}} {{spelleffect= @{target|Target#1|token_name} struck by ?{Number of missiles at @{target|Target#1|token_name}|1} darts!}} {{damage = [[(?{Number of missiles at @{target|Target#2|token_name}|1})d4 + (?{Number of missiles at @{target|Target#2|token_name}|1}) + (@{selected|global_spell_damage_bonus})]] Force}} {{effect = @{target|Target#2|token_name} struck by ?{Number of missiles at @{target|Target#2|token_name}|1} darts!}} {{damage =[[(?{Number of missiles at @{target|Target#3|token_name}|1})d4+(?{Number of missiles at @{target|Target#3|token_name}|1}) + (@{selected|global_spell_damage_bonus})]] Force}} {{effect = @{target|Target#3|token_name} struck by ?{Number of missiles at @{target|Target#3|token_name}|1} darts!}} {{spellcasttime=1 Action}} {{spellduration=Instantaneous}} {{Spell link=[Magic Missile](http://journal.roll20.net/handout/-JkjojrbcU9kW4xlhOKN)}} {{spelltarget=Creature or creatures}} {{spellrange=120'}} {{spellgainedfrom=Wizard}} {{spellcomponents=V,S}} @{selected|classactionspellcast}
&{template:5eDefault} {{spell=1}} {{title=Sleep}} {{subheader=@{Selected|character_name}}} {{subheaderright=Enchantment Level 1}} {{subheader2=Range 90'}} {{subheaderright2=Level ?{Spell Slot Level|1} spell slot }} {{emote= @{Selected|token_name} throws sand into the air to induce a magical slumber...}} {{spellshoweffects=1}} {{spelleffect=[[((?{Spell Slot Level|1}*2)+3)d8]] Hit points worth of creatures fall **[Unconcious](http://journal.roll20.net/handout/-Jih-8F8KYpoGpmJTu8t)** }} {{area= 20' Radius}} {{Duration= **1 Minute**, or until awoken.}} {{Spell link=[Sleep](http://journal.roll20.net/handout/-Jkwq_6LxpQ5vdOAPpWj)}}{{spellcasttime=1 Action}} {{spellduration=1 minute}} {{spelltarget=20' radius}} {{spellrange=90'}} {{spellgainedfrom=Wizard}} {{spellcomponents=V, S, M (a pinch of fine sand, rose petals, or a cricket)}} @{Selected|classactionspellcast}
&{template:5eDefault} {{spell=1}} {{spellshowdamage=1}} {{spellshoweffects=1}} {{subheader=@{selected|character_name}}} {{subheaderright2=Level ?{Spell Slot Level|1} spell slot}} ?{Spell|Choose one:,|Magic Missile,{{title=Magic Missile}} {{subheaderright=Evocation Level 1}} {{subheader2= Range 120'}} {{emote= [[?{Spell Slot Level}+2]] glowing dart(s) shoot forth...}} {{@{target|Target#1|token_name} is struck by...= **?{Number of missiles at @{target|Target#1|token_name}|1}** dart(s) for [[(?{Number of missiles at @{target|Target#1|token_name}|1})d4+(?{Number of missiles at @{target|Target#1|token_name}})+(@{selected|global_spell_damage_bonus})]] force damage!}} {{@{target|Target#2|token_name} is struck by...= **?{Number of missiles at @{target|Target#2|token_name}|1}** dart(s) for [[(?{Number of missiles at @{target|Target#2|token_name}|1})d4+(?{Number of missiles at @{target|Target#2|token_name}})+(@{selected|global_spell_damage_bonus})]] force damage!}} {{@{target|Target#3|token_name} is struck by...= **?{Number of missiles at @{target|Target#3|token_name}|1}** dart(s) for [[(?{Number of missiles at @{target|Target#3|token_name}|1})d4+(?{Number of missiles at @{target|Target#3|token_name}})+(@{selected|global_spell_damage_bonus})]] force damage!}} {{spellcasttime=1 Action}} {{spellduration=Instantaneous}} {{Spell link=[Magic Missile](http://journal.roll20.net/handout/-JkjojrbcU9kW4xlhOKN)}} {{spelltarget=Creature or creatures}} {{spellrange=120'}} {{spellgainedfrom=Wizard}} {{spellcomponents=V,S}}|Sleep,{{title=Sleep}} {{subheaderright=Enchantment Level 1}} {{subheader2=Range 90'}} {{emote= @{Selected|token_name} throws sand into the air to induce a magical slumber...}} {{spelleffect=[[((?{Spell Slot Level}*2)+3)d8]] Hit points worth of creatures fall **[Unconscious](http://journal.roll20.net/handout/-Jih-8F8KYpoGpmJTu8t)** }} {{area= 20' Radius}} {{Duration= **1 Minute**, or until awoken.}} {{Spell link=[Sleep](http://journal.roll20.net/handout/-Jkwq_6LxpQ5vdOAPpWj)}} {{spellcasttime=1 Action}} {{spellduration=1 minute}} {{spelltarget=20' radius}} {{spellrange=90'}} {{spellgainedfrom=Wizard}} {{spellcomponents=V, S, M (a pinch of fine sand, rose petals, or a cricket)}}} @{selected|classactionspellcast}
PiecE said:
I absolutely love the idea of a menu in chat for the PC's like your v3 macros on imgur, though its just too clunky.
It's moderately easy setting it up, but it just bugs out at random times for no reason. One moment it'll work and the next it'll just freak out, put nothing in a menu and roll for/activate everything else in the macro. It stays this way for a few minutes and then suddenly works again. So weird.
I guess I'll make a few drop-down macros as token actions. Will post when I feel I've got something cool. Thanks for the inspiration :)
EDIT: Nevermind, its impossible (for now) to call a query on any ability that has a roll template. Back to square 1...
Ed S. said:
PiecE said:
I absolutely love the idea of a menu in chat for the PC's like your v3 macros on imgur, though its just too clunky.
It's moderately easy setting it up, but it just bugs out at random times for no reason. One moment it'll work and the next it'll just freak out, put nothing in a menu and roll for/activate everything else in the macro. It stays this way for a few minutes and then suddenly works again. So weird.
I guess I'll make a few drop-down macros as token actions. Will post when I feel I've got something cool. Thanks for the inspiration :)
EDIT: Nevermind, its impossible (for now) to call a query on any ability that has a roll template. Back to square 1...
Yeah, it's unfortunately impossible to call a macro from a dropdown. The Chat Menu buttons do work, but you can only call them from inside of token actions on the abilities page, they won't work from the Macro bar in the tools section. The html entities that they are made up of get converted when you try and save them in a regular macro. So that may be where you were seeing the weird behavior.
...
/w "@{selected|character_name}" &{template:5eDefault} {{ability=1}} {{title=@{selected|character_name}}} {{subheader=Menu}} {{freetext=━━ **Initiative** ━━ [Initiative](! %{selected|initiative}) ━━ **Class Actions** ━━ [@{selected|classactionname1}](! %{selected|classaction1}) [@{selected|classactionname2}](! %{selected|classaction2}) [@{selected|classactionname3}](! %{selected|classaction3}) [@{selected|classactionname4}](! %{selected|classaction4}) ━━ **Melee** ━━ [@{selected|repeating_weapons_melee_0_name}](! %{selected|repeating_weapons_melee_0_weapon}) ━━ **Ranged** ━━ [@{selected|repeating_weapons_ranged_0_name}](! %{selected|repeating_weapons_ranged_0_weapon})}}
/w "@{selected|character_name}" &{template:5eDefault} {{ability=1}} {{title=@{selected|character_name}}} {{subheader=Menu}} {{freetext= ━━ **Initiative** ━━ [Initiative](! %{selected|initiative}) ━━ **Class Actions** ━━ [@{selected|classactionname1}](! %{selected|classaction1}) [@{selected|classactionname2}](! %{selected|classaction2}) [@{selected|classactionname3}](! %{selected|classaction3}) [@{selected|classactionname4}](! %{selected|classaction4}) ━━ **Melee** ━━ [@{selected|repeating_weapons_melee_0_name}](! %{selected|repeating_weapons_melee_0_weapon}) ━━ **Ranged** ━━ [@{selected|repeating_weapons_ranged_0_name}](! %{selected|repeating_weapons_ranged_0_weapon}) ━━ **Skills** ━━ [Acrobatics](! %{selected|Acrobatics_Check})}}
| Drop-down Menu![]() | Output |
Find: "{{" Replace with | |
Find: "}}" Replace with | |
Find: "," Replace with |
Ed S. said:
MM doesn't output the damage or the targets.
&{template:5eDefault} {{spell=1}} {{outputall=1}} {{subheader=@{selected|character_name}}} {{subheaderright2=Level ?{Spell Slot Level|1} spell slot}} ?{Spell|Choose one:,|Magic Missile,{{title=Magic Missile}} {{subheaderright=Evocation Level 1}} {{subheader2= Range 120'}} {{emote= [[?{Spell Slot Level}+2]] glowing dart(s) shoot forth...}} {{@{target|Target#1|token_name} is struck by...= **?{Number of missiles at @{target|Target#1|token_name}|1}** dart(s) for [[(?{Number of missiles at @{target|Target#1|token_name}|1})d4+(?{Number of missiles at @{target|Target#1|token_name}})+(@{selected|global_spell_damage_bonus})]] force damage!}} {{@{target|Target#2|token_name} is struck by...= **?{Number of missiles at @{target|Target#2|token_name}|1}** dart(s) for [[(?{Number of missiles at @{target|Target#2|token_name}|1})d4+(?{Number of missiles at @{target|Target#2|token_name}})+(@{selected|global_spell_damage_bonus})]] force damage!}} {{@{target|Target#3|token_name} is struck by...= **?{Number of missiles at @{target|Target#3|token_name}|1}** dart(s) for [[(?{Number of missiles at @{target|Target#3|token_name}|1})d4+(?{Number of missiles at @{target|Target#3|token_name}})+(@{selected|global_spell_damage_bonus})]] force damage!}} {{spellcasttime=1 Action}} {{spellduration=Instantaneous}} {{Spell link=[Magic Missile](http://journal.roll20.net/handout/-JkjojrbcU9kW4xlhOKN)}} {{spelltarget=Creature or creatures}} {{spellrange=120'}} {{spellgainedfrom=Wizard}} {{spellcomponents=V,S}}|Sleep,{{title=Sleep}} {{subheaderright=Enchantment Level 1}} {{subheader2=Range 90'}} {{emote= @{Selected|token_name} throws sand into the air to induce a magical slumber...}} {{spelleffect=[[((?{Spell Slot Level}*2)+3)d8]] Hit points worth of creatures fall **[Unconscious](http://journal.roll20.net/handout/-Jih-8F8KYpoGpmJTu8t)** }} {{area= 20' Radius}} {{Duration= **1 Minute**, or until awoken.}} {{Spell link=[Sleep](http://journal.roll20.net/handout/-Jkwq_6LxpQ5vdOAPpWj)}} {{spellcasttime=1 Action}} {{spellduration=1 minute}} {{spelltarget=20' radius}} {{spellrange=90'}} {{spellgainedfrom=Wizard}} {{spellcomponents=V, S, M (a pinch of fine sand, rose petals, or a cricket)}}} Yeah, forget it. I avoid writing macros for deprecated content.
Thanks for sharing this.Mark G. said:
I thought it might be helpful to detail my workflow for creating a drop-down query for a spell book, as an Ability action.Mark
&{template:pf_attack} {{header_image_melee=[Melee](http://i.imgur.com/1QEl2bG.png)}}{{character_name=@{Walter Hopton|character_name}}}{{character_id=@{Walter Hopton|character_id}}}{{name=Casts Cure Light Wounds}} {{@{target|character_name} Heals =[[1d8+5}]] HP }}Which outputs this:
Mark thanks you some much for this worked a treat.Mark G. said:
&{template:pf_attack} {{header_image_melee=[Melee](http://i.imgur.com/1QEl2bG.png)}}{{character_name=@{Walter Hopton|character_name}}}{{character_id=@{Walter Hopton|character_id}}}{{name=Casts Cure Moderate Wounds}} {{@{target|character_name} Heals = [[1d8+{5, @{spellclass-0-level-total}}kl1]] HP }}
Frank D. said:
Not sure weather the problem is with @{spellclass-0-level-total}
Thanks for the help Silvyre but I replaced }kl1 with }kl1 still getting thisSilvyre said:
Frank D. said:
Not sure weather the problem is with @{spellclass-0-level-total}
It is. By replacing @{spellclass-0-level-total} with @{spellclass-0-level-total} you are damaging the attribute. Instead, replace }kl1 with }kl1
I'll also mention that it's generally not necessary to replace the { character for the purposes of nesting roll templates within roll queries.
Silvyre said:
Oh. Right.
You'll also need to replace the comma in 1d8+{5, with ,
Mark G. said:
{{ , }} , commas, and pipes are all reserved characters as far as this method goes, and have to be replaced by HTML Entities.
Basically, any character that the drop-down query uses itself has to be replaced.
{{@{target|character_name} Heals = [[1d8+{5, @{spellclass-0-level-total}}kl1]] HP }}
Silvyre said:
{{@{target|character_name} Heals = [[1d8+{5, @{spellclass-0-level-total}}kl1]] HP }}
}&&125;,{
&{template:pf_attack} {{header_image_melee=[Melee](http://i.imgur.com/1QEl2bG.png)}} {{character_name=@{Walter Hopton|character_name}}} {{character_id=@{Walter Hopton|character_id}}} {{name=?{Cure Spell|Cure Light,Cure Light Wounds }} {{@{target|character_name} Heals =[[ floor(1.5*(1d8+{5, @{Walter Hopton|spellclass-0-level-total}}kl1)) ]] HP | Cure Moderate, Cure Moderate Wounds}} {{@{target|character_name} Heals =[[ floor(1.5*(2d8+{10, @{Walter Hopton|spellclass-0-level-total}}kl1)) ]] HP|Cure Serious, Cure Serious Wounds}} {{@{target|character_name} Heals =[[ floor(1.5*(3d8+{15, @{Walter Hopton|spellclass-0-level-total}}kl1)) ]] HP|Cure Critical, Cure Critical Wounds}} {{@{target|character_name} Heals =[[ floor(1.5*(4d8+{20, @{Walter Hopton|spellclass-0-level-total}}kl1)) ]] HP|Wand of Cure Light,Use his Wand of Cure Light Wounds}} {{ @{target|character_name} Heals =[[ 1d8+5 ]] HP } }}
Frank D. said:
How do you get the HTML Entities 125 125 to work in the code box on the forum.
Silvyre said:
Try this out, as an Ability Macro.&{template:pf_attack} {{header_image_melee=[Melee](http://i.imgur.com/1QEl2bG.png)}} {{character_name=@{Walter Hopton|character_name}}} {{character_id=@{Walter Hopton|character_id}}} {{name=?{Cure Spell|Cure Light,Cure Light Wounds }} {{@{target|character_name} Heals =[[ floor(1.5*(1d8+{5, @{Walter Hopton|spellclass-0-level-total}}kl1)) ]] HP | Cure Moderate, Cure Moderate Wounds}} {{@{target|character_name} Heals =[[ floor(1.5*(2d8+{10, @{Walter Hopton|spellclass-0-level-total}}kl1)) ]] HP|Cure Serious, Cure Serious Wounds}} {{@{target|character_name} Heals =[[ floor(1.5*(3d8+{15, @{Walter Hopton|spellclass-0-level-total}}kl1)) ]] HP|Cure Critical, Cure Critical Wounds}} {{@{target|character_name} Heals =[[ floor(1.5*(4d8+{20, @{Walter Hopton|spellclass-0-level-total}}kl1)) ]] HP|Wand of Cure Light,Use his Wand of Cure Light Wounds}} {{ @{target|character_name} Heals =[[ 1d8+5 ]] HP } }}
&{template:pf_attack}{{header_image_melee=[Melee](http://i.imgur.com/1QEl2bG.png)}}{{character_name=@{Walter Hopton|character_name}}}{{character_id=@{Walter Hopton|character_id}}}{{name=?{Cure Spell|Cure Light,Cure Light Wounds }} {{@{target|character_name} Heals =[[ floor(1d8+{5, @{Walter Hopton|spellclass-0-level-total}}kl1) ]] HP | Cure Moderate, Cure Moderate Wounds}} {{@{target|character_name} Heals =[[ floor(2d8+{10, @{Walter Hopton|spellclass-0-level-total}}kl1) ]] HP| Cure Serious, Cure Serious Wounds}&} {{@{target|character_name} Heals =[[ floor(3d8+{15, @{Walter Hopton|spellclass-0-level-total}}kl1) ]] HP| Cure Critical, Cure Critical Wounds}} {{@{target|character_name} Heals =[[ floor(4d8+{20, @{Walter Hopton|spellclass-0-level-total}}kl1) ]] HP|Wand of Cure Light,Use his Wand of Cure Light Wounds}} {{ @{target|character_name} Heals =[[1d8+5]] HP } }}
&{template:pf_attack} {{header_image_melee=[Melee](http://i.imgur.com/1QEl2bG.png)}} {{character_name=@{Walter Hopton|character_name}}} {{character_id=@{Walter Hopton|character_id}}} {{name=?{Cure Spell|Cure Light,Cure Light Wounds }} {{@{target|character_name} Heals =[[ floor(1.5*(1d8+{5, @{Walter Hopton|spellclass-0-level-total}}kl1)) ]] HP | Cure Moderate, Cure Moderate Wounds}} {{@{target|character_name} Heals =[[ floor(1.5*(2d8+{10, @{Walter Hopton|spellclass-0-level-total}}kl1)) ]] HP|Cure Serious, Cure Serious Wounds}} {{@{target|character_name} Heals =[[ floor(1.5*(3d8+{15, @{Walter Hopton|spellclass-0-level-total}}kl1)) ]] HP|Cure Critical, Cure Critical Wounds}} {{@{target|character_name} Heals =[[ floor(1.5*(4d8+{20, @{Walter Hopton|spellclass-0-level-total}}kl1)) ]] HP|Wand of Cure Light,Use his Wand of Cure Light Wounds}} {{ @{target|character_name} Heals =[[ 1d8+5 ]] HP } }}