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 Macros (Powercard + Alterbar) menu shortcuts ?

Hello friends, This is a question regarding macro shortcuts for Powercars + Alterbar script users. Some of my players are spell casters n Dnd 5, and I'd like to find a way to put all their spells macros into "token actions" or "in chat" menu where they can pick their spells. But there are just too many. Is there any way to create some kind of dropdown menu or in chat menu, something where I can put all these shortcuts knowing that these macros would use Powercard + Alterbars I don't want to link them to the character's sheet macros Here's an example of macro I created that uses Powercard + Alterbar :  Thanks in advance ! !power {{ --tokenid|@{selected|token_id} --emote|@{selected|token_name} incante un sortilège de zone --name|Boule de feu --leftsub|action --rightsub|portée 45m --Niveau |[[3]] --Ecole :|Evocation --Composants :|V, S, M --Durée :|instantanée --hroll|[[ [$JS] ?{JS réussi |Non, 0 |Oui, 1} + 0d0 ]] --?? $JS == 0 ?? !Dégâts|~C[[ [$DOM1] ?{Emplacement de sort |3, 8D6 |4, 9D6 |5, 10D6 |6, 11D6 |7, 12D6 |8, 13D6 |9, 14D6} ]] dégâts de feu~C --?? $JS == 0 ?? alterbar1|_target|@{target|token_id} _bar|1 _amount|-[^DOM1] _show|all --?? $JS == 1 ?? !Dégâts|~C[[ [$DOM2] ?{Emplacement de sort |3, 8D6 |4, 9D6 |5, 10D6 |6, 11D6 |7, 12D6 |8, 13D6 |9, 14D6} *.5 ]] dégâts de feu~C --?? $JS == 1 ?? alterbar1|_target|@{target|token_id} _bar|1 _amount|-[^DOM2] _show|all --soundfx|_play|fireball --vfx_opt|@{target|token_id} explode-fire --Description :|Une éclatante traînée lumineuse est émise de la pointe de votre doigt vers un point de votre choix dans la portée du sort, puis s'amplifie dans un rugissement grave jusqu'à éclater en flammes. Toutes les créatures situées dans une sphère de 6 mètres de rayon centrée sur le point doivent réussir un __JS Dextérité__ sans quoi chacune d'elles subit 8D6 dégâts de feu. En cas de réussite, les dégâts sont réduits de moitié. Le feu contourne les coins. Il enflamme les objets inflammables qui ne sont pas portés ou transportés. --!Suite :|//Lorsque vous lancez ce sort en utilisant un emplacement de niveau 4 ou plus, les dégâts sont augmentés de 1D6 pour chaque niveau d'emplacement supérieur au niveau 3.// }}
I use the powercards and they list all players attacks, as well as all spells that a PC has prepared. The code is below: /em targets the @{target|token_name} (AC @{target|npc_ac}) !power {{ --whisper|@{selected|character_name} --name|What are you doing? --tokenid|@{selected|token_id} --ogl_pc_attack_list|@{selected|character_id} --leftsub|Atk Bonus: @{selected|spell_attack_bonus} --rightsub|Save DC: @{selected|spell_save_dc} --spell_slots|@{selected|character_id} --spell_list|@{selected|character_id} }}
Unfortunately this won't work with the alterbar script. :(
Satori said: Unfortunately this won't work with the alterbar script. :( What are your players using alterbars for spells for? For damaging spells? I think the way you want to go is to create an alterbar template. This is what I am attempting to do using PCM Helper and alterbars, but I am not very good at this sort of thing. I usually cherry pick other user's stuff that they leave like precious crumbs which I think I can make work on my game. Are you using Power Cards Macro Helper?
Hey there, not using Power Card Macro helper.  
Satori said: Hey there, not using Power Card Macro helper.   Sorry about that. I was in mid reply when Roll20 just shut down. I couldn't get back on until a bit ago. Weird.  Anyways, I was going to basically bang the drum for  PCMH, maybe it could help you out with your issue with alterbars. You still may want to chck it out if only for the templates and replacement capabilities. But If you do figure it out in some other way,  can you post how you did it? Im basically stuck with the same issue and am not having any luck on the Forums.
Hello Dave, I finally found a post that taltked about the same issue and I f managed to create dropdown menu for several powercard based macros :&nbsp; <a href="https://app.roll20.net/forum/post/3036368/nesting-powercards" rel="nofollow">https://app.roll20.net/forum/post/3036368/nesting-powercards</a> For that to work you need to edit your powercards with some html coding, but nothing too complicated.&nbsp; Cheers !
1566453334

Edited 1566453718
Satori said: Hello Dave, I finally found a post that taltked about the same issue and I f managed to create dropdown menu for several powercard based macros :&nbsp; <a href="https://app.roll20.net/forum/post/3036368/nesting-powercards" rel="nofollow">https://app.roll20.net/forum/post/3036368/nesting-powercards</a> For that to work you need to edit your powercards with some html coding, but nothing too complicated.&nbsp; Cheers ! Thanks for the link, Satori! Unfortunately, I don't think it will help me out with my problem. Below is a sample of the Power Cards Macro Helper API. You can get it as a one-click install on the API page, if you are interested. Its worth taking a look, I believe.&nbsp; It uses templates with parameters that stand in for character information. It is a great script, but complex as you can see.&nbsp; Good luck with your problem, I hope you find an answer! TEMPLATES: Basics: --tokenid|~0! --target_list|~1! --emote|~S-CN$ ~2! against ~T-CN$ --format|~S-CN$ --name|~3! --leftsub|~4! --rightsub|~5! NPCBasics: --tokenid|~0! --target_list|~1! --emote|~S-CN$ ~2! against ~T-CN$ --format|badguys --name|~3! --['~NPCA-TYPE$' -eq 'ATTACK']leftsub|~4! --['~NPCA-RANGE$' -eq 'ATTACK']rightsub|~5! NPCAttack: --["~NPCA-TYPE$" -eq "ATTACK"]Attack:|[#[ [$Atk] ~0! + ~NPCA-TOHIT$ [Attack Bonus] ]#] vs **AC** [#[~T-AC$]#] --["~NPCA-TYPE$" -eq "ATTACK"]?? $Atk &lt; ~T-AC$ ?? !Missed|**The ~NPCA-NAME$ attack missed!** --["~NPCA-TYPE$" -eq "ATTACK" -and "~NPCA-DAMAGETYPE2$" -eq ""]?? $Atk &gt;= ~T-AC$ AND $Atk.base &lt;&gt; 20 ?? Hit:|[#[ [$Dmg] ~NPCA-DAMAGE$ ]#] ~NPCA-DAMAGETYPE$ damage --["~NPCA-TYPE$" -eq "ATTACK" -and "~NPCA-DAMAGETYPE2$" -ne ""]?? $Atk &gt;= ~T-AC$ AND $Atk.base &lt;&gt; 20 ?? Hit:|[#[ [$Dmg] ~NPCA-DAMAGE$ ]#] ~NPCA-DAMAGETYPE$ damage and [#[ [$Dmg2] ~NPCA-DAMAGE2$ ]#] ~NPCA-DAMAGETYPE2$ damage --["~NPCA-TYPE$" -eq "ATTACK" -and "~NPCA-DAMAGETYPE2$" -eq ""]?? $Atk.base == 20 ?? Hit:|[#[ [$Dmg] ~NPCA-CRIT$ ]#] ~NPCA-DAMAGETYPE$ damage --["~NPCA-TYPE$" -eq "ATTACK" -and "~NPCA-DAMAGETYPE2$" -ne ""]?? $Atk.base == 20 ?? Hit:|[#[ [$Dmg] ~NPCA-CRIT$ ]#] ~NPCA-DAMAGETYPE$ damage and [#[ [$Dmg2] ~NPCA-CRIT2$ ]#] ~NPCA-DAMAGETYPE2$ damage --["~NPCA-TYPE$" -eq "ATTACK"]?? $Atk.base == 1 ?? Fumble|The attack goes horribly wrong! --["~NPCA-DESCRIPTION$" -ne "" ]Description|~NPCA-DESCRIPTION$ PCAttack: --Attack|[#[ [$Atk] ~0! + ~PCA-ATKBONUS$ [Attack Bonus] ]#] vs **AC** [#[~T-AC$]#] --?? $Atk.base == 1 ?? Fumble|The attack went horribly wrong! --?? $Atk.base &lt;&gt; 1 AND $Atk.base &lt;&gt; 20 AND $Atk.total &lt; ~T-AC$ ?? Miss|~S-CN$ missed. --["~PCA-DMG2DICE$" -eq "none"]?? $Atk.base &lt;&gt; 20 AND $Atk.total &gt;= ~T-AC$ ?? Hit|~S-CN$ hits ~T-CN$ for [#[ [$Dmg] ~PCA-DMG1DICE$ ]] ~PCA-DMG1TYPE$ damage --["~PCA-DMG2DICE$" -ne "none"]?? $Atk.base &lt;&gt; 20 AND $Atk.total &gt;= ~T-AC$ ?? Hit|~S-CN$ hits ~T-CN$ for [#[ [$Dmg] ~PCA-DMG1DICE$ ]] ~PCA-DMG1TYPE$ damage and [[ [$Dmg2] ~PCA-DMG2DICE$ ]] ~PCA-DMG2TYPE$ damage --["~PCA-DMG2DICE$" -eq "none"]?? $Atk.base == 20 AND $Atk.total &gt;= ~T-AC$ ?? Critical Hit|~S-CN$ hits ~T-CN$ for [#[ [$Dmg] ~PCA-DMG1CRIT$ ]] ~PCA-DMG1TYPE$ damage --["~PCA-DMG2DICE$" -ne "none"]?? $Atk.base == 20 AND $Atk.total &gt;= ~T-AC$ ?? Critical Hit|~S-CN$ hits ~T-CN$ for [#[ [$Dmg] ~PCA-DMG1CRIT$ ]] ~PCA-DMG1TYPE$ damage and [[ [$Dmg2] ~PCA-DMG2CRIT$ ]] ~PCA-DMG2TYPE$ damage --["~PCA-SAVE$" -eq "true"]?? $Atk.base == 20 OR $Atk.total &gt;= ~T-AC$ ?? Save|~T-CN$ can attempt a **DC ~PCA-SAVEDC$** ~PCA-SAVEATTR$ saving throw for ~PCA-SAVEEFFECT$ --["~PCA-DESC$" -ne "none"]Description|~PCA-DESC$ Here's the macro . This will create a power card for your PCs. It will reflect their personal information found on their character sheet. Each is different for every character. It takes some learning, but once you grasp it just a bit, you will immediately see the possibilities this system creates.&nbsp; !power {{&nbsp; &nbsp; --replacepcattack|@{selected|character_id}|?{Select attack to use|@{selected|attacklist}}&nbsp; &nbsp; --replacement|Advantage&nbsp; &nbsp; --replaceattrs|S-|@{selected|character_id}&nbsp; &nbsp; --replaceattrs|T-|@{target|character_id}&nbsp; &nbsp; --template|Basics|@{selected|token_id};@{target|token_id};uses ~PCA-NAME$;~PCA-NAME$;~PCA-ATYPE$;~PCA-RANGE$&nbsp; &nbsp; --template|PCAttack|~@{selected|rtype}$&nbsp; }} Then the alterbars (which I think should be written as a template then called up with the Attack template. I haven't figured that out yet, however. As I said earlier, I'm really not great at this. But I larn). --Attack:|[[ [$Atk] 1d20+5]] vs @{target||npc_ac} AC --?? $Atk &lt; @{target||npc_ac} ?? !Missed|**You missed!** --?? $Atk &gt;= @{target||npc_ac} ?? soundfx1|_play|ArrowHits --?? $Atk &gt;= @{target||npc_ac} AND $Atk.base &lt;&gt; 20 ?? Hit:|[[ [$Dmg] 1d8+3]] piercing damage --?? $Atk &gt;= @{target||npc_ac} AND $Atk.base &lt;&gt; 20 ?? alterbar1|_target|@{target||token_id} _bar|1 _amount|-[^Dmg] _show|GM --?? $Atk.base == 20 ?? Critical Hit:|[[ [$CritDmg] 2d8+3]] piercing damage --?? $Atk.base == 20 ?? alterbar2|_target|@{target||token_id} _bar|1 _amount|-[^CritDmg] _show|GM
I don't know alterbar or powercards much, and I fear I might not answer the issue, but if I want multiple macros on the same button in the bar, I will : create one Ability (in the character sheet attribute &amp; ability tab) for each of my "macro" create one Ability or Macro that will create a button for each of the macro with syntax like [label](~character|abilityname) whisper that to myself use utf-8 icons for labels if I want to save some space and if you have a roll template available that displays buttons as links, you can even spare more space Result would be something like (I don't have a roll template that reduces the buttons - it's Savage Worlds, each button more or less rolls a different skill but that could be a spell or attack) :