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

Remove Macros from a Character

Anyone got a quick script that I can run against a token to purge all its existing macros?
1430333191
The Aaron
Pro
API Scripter
It would really be running against it's character, as characters are associated with tokens and with abilities (which are uses as token actions and often referred to as macros). There probably aren't any existing scripts out there for this as the ability to .remove() has only recently been granted to the API. That said, it would be pretty easy to write. If you don't have a solution by later tonight, I'll whip one up.
Cool, but yeah you are right about the the represented character. !CleanMacros woo hoo :) I did search before I asked.
The Aaron said: It would really be running against it's character, as characters are associated with tokens and with abilities (which are uses as token actions and often referred to as macros). There probably aren't any existing scripts out there for this as the ability to .remove() has only recently been granted to the API. That said, it would be pretty easy to write. If you don't have a solution by later tonight, I'll whip one up. Yep no luck, I eagerly await the tools from the Master. :)
1430366929
The Aaron
Pro
API Scripter
Ok.. This is just a rough script, no help and no safety! Commands: !clean-abilities -- Unremorsefully removes all abilities associated with the character each of the selected tokens represents. Use with great care! Git: <a href="https://github.com/shdwjk/Roll20API/blob/master/Cl" rel="nofollow">https://github.com/shdwjk/Roll20API/blob/master/Cl</a>...
The Aaron said: Ok.. This is just a rough script, no help and no safety! Commands: !clean-abilities -- Unremorsefully removes all abilities associated with the character each of the selected tokens represents. Use with great care! Git: <a href="https://github.com/shdwjk/Roll20API/blob/master/Cl" rel="nofollow">https://github.com/shdwjk/Roll20API/blob/master/Cl</a>... what would roll 20 do without you... almost like bar-b-que with tofu and no meat!
1430396050
The Aaron
Pro
API Scripter
Hehehe. :)
Bruticus said: The Aaron said: Ok.. This is just a rough script, no help and no safety! Commands: !clean-abilities -- Unremorsefully removes all abilities associated with the character each of the selected tokens represents. Use with great care! Git: <a href="https://github.com/shdwjk/Roll20API/blob/master/Cl" rel="nofollow">https://github.com/shdwjk/Roll20API/blob/master/Cl</a>... what would roll 20 do without you... almost like bar-b-que with tofu and no meat! LOL, great analogy, Thanks much Aaron I shall go test on a copy of my campaign to see if you are trying to destroy me with that disclaimer :)
Works Perfect thanks Aaron :) Saved me a tremendous amount of time as i'm migrating to the Shaped Character sheet.
1430406569
The Aaron
Pro
API Scripter
=D no problem!