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

Second Wind Macro

1589782359

Edited 1589782402
I'm trying to make a macro for one of my players for their Second Wind, so it gives a description, a gif, and auto rolls the healing. The player in question has an ability set up in their sheet already that rolls it, and I'm trying to link the ability, but I just can't figure it out. I'm still pretty new to macros so I come to all of you for your aid. It currently looks like this: /me digs deep within himself to fight on! [Second Wind]( <a href="https://media1.tenor.com/images/5f16806c643b5255cc10cda3b7817806/tenor.gif" rel="nofollow">https://media1.tenor.com/images/5f16806c643b5255cc10cda3b7817806/tenor.gif</a> ) He must take a short rest before he can do this again. %{Ferrous Grout|Second Wind} The picture works, the description works, it's just getting it to roll that ability that I can't figure out. Please help.
1589790061

Edited 1589790110
GiGs
Pro
Sheet Author
API Scripter
Ability names cant have spaces in the name, Check exactly how the Second Wind ability is spelled on the character sheet. (Character names can, but the ability name - the Second Wind part, shouldnt.)
1589810840

Edited 1589812001
I took the space out, and now it's saying there's no ability found for Second-Wind. It's listed under his Attacks &amp; Spellcasting section if that helps. (Edit: I think I found the issue, when it said ability I thought it meant like, just one of the sheet buttons, but no it's pulling from and ACTUAL ability tab, which I did not even know existed previously. So I'm trying to link something that doesn't exist, when I'm meaning to link the sheet button for it.)
1589812133
GiGs
Pro
Sheet Author
API Scripter
Which sheet are using? What happens when you use the original command, with the space? do you get any message in chat? Is the ability in a repeating section? If so, you need to use a repeating section name, which looks something like this: %{Ferrous Grout|repeating_sectionname_$0_Second_Wind} the repeating_sectionname &nbsp;name part will be found on your sheet's html, the $0 &nbsp;refers to the row in the section - if its the first ability, its $0; the second ability is $1, and so on.&nbsp;
1589812136
Ziechael
Forum Champion
Sheet Author
API Scripter
Fun fact, Abilities can have spaces in the name, in fact the names assigned on creation contain spaces and work as calls: %{Bob|New Ability 0} The only way a user can put spaces in an ability name is copy/paste however... shouldn't stop it working though, could you post the content of the ability?
1589812251

Edited 1589812432
GiGs
Pro
Sheet Author
API Scripter
Ziechael said: Fun fact, Abilities can have spaces in the name, in fact the names assigned on creation contain spaces and work as calls: %{Bob|New Ability 0} The only way a user can put spaces in an ability name is copy/paste however... shouldn't stop it working though, could you post the content of the ability? It's true that Attributes created by a character sheet can have spaces, but users cant manually create them, and I dont know of any sheets that do use spaces in their ability names. Have you seen any? Edit: &nbsp;are you saying uses can create Abilities with spaces in theur names, by copying a name into the Ability Name box? If so, thats new to me - you learn something every day :)
It's just the normal 5e D&amp;D sheet. Trying to make it so the "attack" command they have for their Second Wind rolls when they use the macro.
1589812690
Ziechael
Forum Champion
Sheet Author
API Scripter
Yup, that... not advocating it as good practice but it is &nbsp;possible lol... GiGs said: Ziechael said: The only way a user can put spaces in an ability name is copy/paste however... shouldn't stop it working though, could you post the content of the ability? Edit: &nbsp;are you saying uses can create Abilities with spaces in theur names, by copying a name into the Ability Name box? If so, thats new to me - you learn something every day :)
1589812739

Edited 1589812873
Ziechael
Forum Champion
Sheet Author
API Scripter
What are the contents of the ability though? This one: %{Ferrous Grout|Second Wind} When I run your macro (with a line break to make it work in full, without it displays the contents of the ability but not the '/me' section): /me digs deep within himself to fight on! [Second Wind]( <a href="https://media1.tenor.com/images/5f16806c643b5255cc10cda3b7817806/tenor.gif" rel="nofollow">https://media1.tenor.com/images/5f16806c643b5255cc10cda3b7817806/tenor.gif</a> ) He must take a short rest before he can do this again. %{Ferrous Grout|Second Wind} I get everything as expected.
Woodsflame said: when it said ability I thought it meant like, just one of the sheet buttons, but no it's pulling from and ACTUAL ability tab, which I did not even know existed previously. So I'm trying to link something that doesn't exist, when I'm meaning to link the sheet button for it.)
That is what I'm trying to link in.
1589813078

Edited 1589813496
Ziechael
Forum Champion
Sheet Author
API Scripter
Ahhh, ok then... you are in the realms of GiGs suggestion then :) GiGs said: Which sheet are using? What happens when you use the original command, with the space? do you get any message in chat? Is the ability in a repeating section? If so, you need to use a repeating section name, which looks something like this: %{Ferrous Grout|repeating_sectionname_$0_Second_Wind} the repeating_sectionname &nbsp;name part will be found on your sheet's html, the $0 &nbsp;refers to the row in the section - if its the first ability, its $0; the second ability is $1, and so on.&nbsp; So in that case it would be something like (just checking to confirm now): @{Ferrous Grout|repeating_attack_$3_attack}
1589813254

Edited 1589813453
After changing the @ to % it worked, thank you very much. I'm still very new to this stuff so this helped a lot, thank you very much for your assistance. I'd give you a 5 stars on Yelp. XD
1589813579
Ziechael
Forum Champion
Sheet Author
API Scripter
Haha, happy to help... this is a great community (for example I always find myself treading on GiGs' toes in the race to help people... not many places on the internet that positive these days!).