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

Macros within macros

I discovered macro how to videos last night I was up til 2am with joy in my heart. Now I have more questions about these wonderful helpers. I'm GMing the Alien RPG system which is dice pools with the 6 as a success. Can I get a macro to trigger a macro? Example. Here is the bare bones version of the Neomorphs leaping attack macro. The second part of it is what happens if the first part is successful. /em The Neomorph jumps at you. Damage 1 for each hit. If the attack is successful, you are thrown to the ground and must make an immediate Panic Roll! [[8d6]] /em The Neomorph immediately performs an extra attack a hit is Damage 2  The extra attack cannot be blocked. [[10d6]] So is there a way to click leaping attack macro. Have it do the first part and then do the second part if the first part rolled a 6. Or should I just create a bunch of macros per creature for successes' failures and anything interesting like make a panic roll now. etc  My second question about macros is can I tie a sound to one? so I click the attack macro and you hear it as the dice roll and flavor text comes up. Thanks! MM
1588869727
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
A macro cannot conditionally trigger another macro (if this, then do this), but you can include a command within a macro. Read through  Chat Menus . Also consider building in a  Macro Character Sheet . Playing a sound with a macro requires the API, most notably the Roll20 Audio Master script, but this requires a Pro subscription.
Thanks Keith I suspect this wont be the last question you answer for me lol! I'm being sold on Pro today hard. APIs sound fun too.
1588872170
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
That's the best thing about Pro, IMHO.
Hey @keithcurtis. Question I created an initiative deck 1-10 for Alien RPG. I put whoever needs to be on the turn track in it. When I deal the cards to turn order items, they never sort I always have to open up the gear box and re sort them ascending. I heard a pro membership would sort that too, any idea?
1588905896
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I honestly don't know. I've never played a system that uses cards for initiative. If you can sort them manually though, I would imagine that any script that sorts the turn tracker would sort them.
Thanks Keith!
1588927233

Edited 1588927597
It can be done with a few "problems": Within the first macro will be a button ( successfull ) that triggers the macro Attack2: Macro name: Attack1 /em The Neomorph jumps at you. Damage [[8d6]] for each hit. If the attack is [successful]( !&amp;#13; #Attack2), you are thrown to the ground and must make an immediate Panic Roll! Macro name: Attack2 /em The Neomorph immediately performs an extra attack a hit is Damage [[10d6]]. The extra attack cannot be blocked. Normaly the syntaxis for Labels is [Label](~&lt;Keyword&gt;|&lt;Ability&gt;) but it only work with Abilitys and not with Macros, but inserting the HTML code in bold in the first macro it work, you can save it and use it&nbsp; BUT...... WARNING!!!: If you saved the macro and then you open it again and save it again the macro will stop working (same if using the Test Macro button). If you want to edit the Macro click JUST before #Attack2 and erase the blank space and the ! sign and write or paste the HTML code again: !&amp;#13; and save it. This happens because Roll20 convert all the HTML code. Edit: For some reason roll20 dont let me use screenshots :/ so here are links: 1- How it should look BEFORE saving first time: <a href="https://prnt.sc/sd1xbu" rel="nofollow">https://prnt.sc/sd1xbu</a> 2-How it should look AFTER saving the first time: <a href="https://prnt.sc/sd1xwh" rel="nofollow">https://prnt.sc/sd1xwh</a>
Thanks Oscar! This sounds like it can get tricky and be broken fairly easily? How I have it set up currently is I made a monster character sheet and I did each separate attack with hit roll as one ability. They have different 6 attacks. If theres a specific damage that happens based on the success of one of the attacks I hit the next button. They are all made as abilities. Is it as easy as, in ability one putting after the dice roll&nbsp; [successful]( !&amp;#13; #name of ability 2)&nbsp; and thats it? I didn't understand what you meant about macros and ability's and having to erase part of the line. I'm very new at roll 20 and only learned this part the other night. Thanks MM