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

How complicated would it be to make a script to call Abilities?

1456230256
AliceSteel
Sheet Author
API Scripter
I'm wanting to make/find a script that calls an ability based on a command such as: !ability @{Cobalt|character_id} ACShockingGrasp Example would call the ability named "ACShockingGrasp" from the sheet of the character named "Cobalt". It seems like this should be a fairly simple script to make but I'm not exactly understanding the API documentation very well.
You can just use %{CharacterName|AbilityName} in a macro... no script needed.
1456231076
AliceSteel
Sheet Author
API Scripter
The point is to have a call that won't break a Roll Query without completely rewriting the ability/ies that the Roll Query is being used to call. /em intones draconic words of power as he prepares to strike his foe !ability @{Cobalt|character_id} ?{Spell|ACShockingGrasp|ACTouchOfIdiocy|ACDimensionHop} Would allow one to call any of those 3 abilities (ACShockingGrasp, ACTouchOfIdiocy, or ACDimensionHop) with a single ability mapped to the macro bar. Just using normal ability calls instead breaks things. (At the very least it does when the abilities involved use templates to make them look better.)
The issue with using the API to call macros is that the api cannot trigger any roll queries.