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 .
×

[5e OGL] Unlink core-page spell attack and spell-page spell attack?

So, I'm playing a character that is going to have a lot of different damaging and attack spells. Most of these are going to be attack roll based, which means on the spell-page, I go into the little cog wheel and set up the spell as a ranged/melee attack. All is good. Except this now adds an identical attack to the core-page. But that's fine; I'll just delete that one, since the spell-page already makes an attack roll. Except if I delete the spell attack on the core-page, this automatically swaps the spell-page version back to 'show spellcard' and changing back to attack re-adds the attack back to the core-page. I am going to have 60+ attack spells; I don't want a mile-long list on my core page. My solution would be to just write a custom attack/damage roll to the spellcard, but the character has varying bonuses that can be added to both of those. Usually I would use the global attack/damage mod checkbox, but I can't do that when writing it out on the spell card in a way that isn't a billion nested drop-downs (if it was just a flat number, I'd use a resource box and just stick that in the roll lines, but there are dice involved in these bonuses and not just flat numbers). It would be far easier to just sever the link between the spell-page and the core-page, but I don't know how to do that. Help?
1649908925
Oosh
Sheet Author
API Scripter
Short answer is that you can't. If you want the spell to have an attack output, it needs to have an entry in the attacks repeating section. The sheet works by converting an 'attack' spell into an entry in the attack repeating section, and it's rolled directly from there. Even when you click on the spell, it's just got a pointer to the attacks entry. I think your options would be:     - Create you own attack macro that pulls data directly from the spell section and outputs to chat, and leave them all set to 'spellcard'     - Use Stylus to hide the spell entries in the attacks section     - Custom API script - requires Pro and I'm not 100% sure what it would need to do     - Create a custom sheet Roughly in order of easiest to hardest.
Well, that's unfortunate. I can't do option 1 — I tried, and it is ruined by the fact that attack/damage macros aren't linked to the global attack/damage mod check boxes. So, onto option 2, I guess. What is Stylus, and how do I use it to hide attacks?
1649932863

Edited 1649932888
Oosh
Sheet Author
API Scripter
You can still call the global fields as constructed by sheetworkers, e.g.: @{selected|global_damage_mod_roll} I think this is most of them: 0: "global_save_mod_flag" ​1: "global_skill_mod_flag" ​2: "global_attack_mod_flag" ​3: "global_damage_mod_flag" ​4: "global_save_mod" ​5: "global_skill_mod" ​6: "global_attack_mod" ​7: "global_damage_mod_roll" ​8: "global_damage_mod_crit" ​9: "global_damage_mod_type" ​10: "global_ac_mod_flag" Is that any help? There's a bunch of threads on using Stylus, the most recent is here . Using the Stylus option, you will need to manually hide each row by finding it's reprow id and applying a rule like this: .repcontainer[data-groupname="repeating_attack"] .repitem[data-reprowid="-Mo1b0Eud02yRjs3pgkZ"] { display: none } You'd need to manually look up each reprowid and add a new row. Should be fun for 60 spells!
1649947723

Edited 1649947972
Zata said: So, I'm playing a character that is going to have a lot of different damaging and attack spells. Most of these are going to be attack roll based, which means on the spell-page, I go into the little cog wheel and set up the spell as a ranged/melee attack. All is good. Except this now adds an identical attack to the core-page. But that's fine; I'll just delete that one, since the spell-page already makes an attack roll. Except if I delete the spell attack on the core-page, this automatically swaps the spell-page version back to 'show spellcard' and changing back to attack re-adds the attack back to the core-page. I am going to have 60+ attack spells; I don't want a mile-long list on my core page. My solution would be to just write a custom attack/damage roll to the spellcard, but the character has varying bonuses that can be added to both of those. Usually I would use the global attack/damage mod checkbox, but I can't do that when writing it out on the spell card in a way that isn't a billion nested drop-downs (if it was just a flat number, I'd use a resource box and just stick that in the roll lines, but there are dice involved in these bonuses and not just flat numbers). It would be far easier to just sever the link between the spell-page and the core-page, but I don't know how to do that. Help? If they are all custom spells why not just make them all custom token actions too?&nbsp;&nbsp; <a href="https://wiki.roll20.net/5e_OGL_Roll_Templates" rel="nofollow">https://wiki.roll20.net/5e_OGL_Roll_Templates</a> Make a token action for every spell, make sure you use attribute calls so that you don't have to go back to all 50 and change the numbers everytime your pb goes up or your attributes go up.&nbsp; I did every wizard spell from cantrip to level 5 and I have to say....doing things this way is tedious AF, I even made mine nested in a query so after I made them all, I had to replace every comma, bracket, and pipe AND do all the syntax to list them all in the drop down by level and alphabetic.&nbsp; So its totally doable but whatever you do, make sure its editable well and stored somewhere once you make them all.&nbsp;&nbsp; Editing an example of how it would look if you did a query spell token action:&nbsp; Atleast how I could get it to work, if someone has a method that works with token actions I'm all ears but I felt it was easier to make it one giant macro rather than 100 smaller ones.&nbsp; Ya can't include wtype and rtype in the query like this cause they have unreplaced brackets and pipes I think.&nbsp; So the query drop down breaks.&nbsp;&nbsp; ?{What Reaction?||1 Absorb Elements, &amp;{template:spell&amp;#125; {{level=abjuration&amp;#125;&amp;#125; {{name=Absorb Elements&amp;#125;&amp;#125; {{castingtime=1 reaction when dealt acid&amp;#44; cold&amp;#44; fire&amp;#44; lightning&amp;#44; or thunder damage&amp;#125;&amp;#125; {{range=self&amp;#125;&amp;#125; {{target=&amp;#125;&amp;#125; 0 {{s=1&amp;#125;&amp;#125; 0 {{material=&amp;#125;&amp;#125; {{duration=1 round&amp;#125;&amp;#125; {{description=[x](<a href="https://media.giphy.com/media/l0HlUriTiHSGlvMd2/giphy.gif" rel="nofollow">https://media.giphy.com/media/l0HlUriTiHSGlvMd2/giphy.gif</a>) The spell captures some of the incoming energy&amp;#44; lessening its effect on you and storing it for your next melee attack. You have resistance to the triggering damage type until the start of your next turn. Also&amp;#44; the first time you hit with a melee attack on your next turn&amp;#44; the target takes an extra 1d6 damage of the triggering type&amp;#44; and the spell ends.&amp;#125;&amp;#125; {{athigherlevels=When you cast this spell using a spell slot of 2nd level or higher&amp;#44; the extra damage increases by 1d6 for each slot level above 1st.&amp;#125;&amp;#125; 0 {{innate=&amp;#125;&amp;#125; {{savedc=@{selected|spell_save_dc}&amp;#125;&amp;#125; 0 {{charname=&amp;#125;&amp;#125;|1 Shield, &amp;{template:spell&amp;#125; {{level=abjuration 1&amp;#125;&amp;#125; {{name=Shield&amp;#125;&amp;#125; {{castingtime=1 reaction&amp;#44; which you take when you are hit by an attack or targeted by the magic missile spell&amp;#125;&amp;#125; {{range=Self&amp;#125;&amp;#125; {{target=Self&amp;#125;&amp;#125; {{v=1&amp;#125;&amp;#125; {{s=1&amp;#125;&amp;#125; 0 {{material=&amp;#125;&amp;#125; {{duration=1 round&amp;#125;&amp;#125; {{description=[x](<a href="https://media.giphy.com/media/WDRyxPW1BSpHIDH5Cg/giphy.gif" rel="nofollow">https://media.giphy.com/media/WDRyxPW1BSpHIDH5Cg/giphy.gif</a>) An invisible barrier of magical force appears and protects you. Until the start of your next turn&amp;#44; you have a +5 bonus to AC&amp;#44; including against the triggering attack&amp;#44; and you take no damage from magic missile.&amp;#125;&amp;#125; {{athigherlevels=&amp;#125;&amp;#125; 0 {{innate=&amp;#125;&amp;#125; {{savedc=@{selected|spell_save_dc}&amp;#125;&amp;#125; 0 {{charname=&amp;#125;&amp;#125;}
1649981402

Edited 1649981481
Oosh
Sheet Author
API Scripter
Ok, this is probably the simplest solution of all, still requires Stylus though. Add your non-spell attacks to the sheet before your spells to reduce the amount of work, then just set spells to their normal attack output, so they're in the attack section, but all sorted to below the attacks you do want shown. Then just set a max height for the container: The orange border is just for the example image. You can change overflow-y to hidden instead of auto if you don't want the scrollbar. You can also use a ratio of slightly under 5em to 3 rows if you want to set the max height by number of rows. For example, if you want the first 3 rows only to be visible, max-height: 5em; The only busywork will be when you add a new attack - if it's not a spell you'll need to manually drag it to the top of the list and adjust the CSS. New weapons aren't generally a common occurrence, but YMMV. So this neatly shows 6 rows with no scrollbar: .repcontainer[data-groupname="repeating_attack"] { max-height: 9.9em; overflow-y: hidden; } You'd want to flick the Stylus mod off to edit the section, so if you do use other Stylus changes I'd group this one by itself.