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

Concentraction in a macro... (Not a check, but to add to player)

Is there a way to add concentration into a macro? I know if we click the spell from spellbook, it will put us into it. (using the pro api i believe) But, in making macros and fun stuff, is there a command we can put in there that also does it? All my searches keep finding concentration saves, not using them inside a macro to put the player in the state of concentration.
nothing? :(
It depends on which system. Concentration can work differently. Like for pathfinder concentration is a check and a die roll. I am not sure on 5E.
yeah its 5e
1589029637
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The problem here is that there is no one way to do Concentration. There are at least three scripts I know of that handle it and they all do it differently. Neither of the two most popular sheets for 5e has Concentration as a baked in mechanic. Once you have decided how you are going to handle concentration, then, yes, you can use a macro (that would call a script command) to set whatever flag that script uses.
Im still pretty new with the roll20, so trying to figure it out. I know we have the !concentration thing working for us, so the GM can do that, but we were hoping to implement it into the macros.
1589129000
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Let's step back a bit. Don't worry about commands for a minute. What would you like to actually happen? Example: "I want a player to be able to push a button that puts a token marker on their token indicating that they are concentrating" Or "Our GM uses a concentration script (provide link to that script--there are several). We would like the players to be able to do it for themselves."
1589129552

Edited 1589129798
Your GM could create a global macro to run !concentration and share it with players.&nbsp; Then in a macro could use the Ability or api command buttons to have it be clickable&nbsp; <a href="https://roll20.zendesk.com/hc/en-us/articles/360037256754#API:Chat-APICommandButtons" rel="nofollow">https://roll20.zendesk.com/hc/en-us/articles/360037256754#API:Chat-APICommandButtons</a> . I believe Keith has a great thread for Tricks on roll20 and some of these include chat menu and things of similar nature&nbsp; <a href="http://app.roll20.net/forum/post/5899495/stupid-roll20-tricks-and-some-clever-ones/?pagenum=1" rel="nofollow">http://app.roll20.net/forum/post/5899495/stupid-roll20-tricks-and-some-clever-ones/?pagenum=1</a> &nbsp; (that't the main page) here is the one on chat menus:&nbsp; <a href="https://app.roll20.net/forum/post/5899495/stupid-roll20-tricks-and-some-clever-ones/?pageforid=5927072#post-5927072" rel="nofollow">https://app.roll20.net/forum/post/5899495/stupid-roll20-tricks-and-some-clever-ones/?pageforid=5927072#post-5927072</a> Edit Keith beat me to the punch....My response is more targeted, but yes clarity is good idea.
ok, so lets say I make a macro for a spell, i know this one isnt a concentration spell, but assume i want to add concentration to it: /em bombards his enemies with dark eldritch energy! &amp;{template:default} {{name=Eldritch Blast}} {{Target=@{target|First Target|token_name}}} {{Spell Attack Roll=[[1d20+@{selected|charisma_mod}+@{selected|pb}]]}} {{Target AC=@{target|First Target|ac}}} {{Damage=[[1d10]]}} &amp;{template:default} {{name=Eldritch Blast}} {{Target=@{target|Second Target|token_name}}} {{Spell Attack Roll=[[1d20+@{selected|charisma_mod}+@{selected|pb}]]}} {{Target AC=@{target|Second Target|ac}}} {{Damage=[[1d10]]}} /fx beam-acid @{selected|token_id} @{target|First Target|token_id} /fx beam-acid @{selected|token_id} @{target|Second Target|token_id} is there something i can add to this to put the @{selected into concentration?
1589134603
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Please step back from the code for the moment. As we have said, there is no one way to do Concentration. It isn't built mechanically into the sheet and there are different ways to handle it. This feels like you are asking for a shortcut to work but you are not telling us where you live, where you work or how you travel currently. We do not know how your GM is handling the issue of Concentration. Are they using a script? which one? What does it do? Does it put a token marker on the character? Does it prompt you for a concentration check when you take damage? Does it add a timer? Does it put a notice in chat? Does the GM track it with a combat handling script like CombatMaster? We don't even yet know which character sheet you are using, since different scripts can be written with specific sheets in mind. There's not enough information here to give a useful answer. You could also try asking your GM. There's a very good likelihood they are handling concentration in a specific manner and can give you guidance.
Sorry, we are using the concentration api <a href="https://wiki.roll20.net/Script:Concentration" rel="nofollow">https://wiki.roll20.net/Script:Concentration</a>
1589153203
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
What happens when you select a token and run: !Concentration According to the docs, that should put a selected token into the script's defined Concentration mode. BTW, latest documentation is here . This should be identical to the help displayed on the OneClick installation page.
1589153274
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
If that does what you want, you can put that instruction into a macro or better, a character ability (on the attributes and abilities tab), and tell it to be a token action. That will throw up a button whenever your token is selected.