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

Add Persistent Effects to Turn Order

i want a macro that will add some text (like fire, acid, etc) to the turn order at a certain place in the order.  Basically an easy way to add persistent effects to the turn order.  There should be a way to ask for text and then put in a specific place in the turn order by i can't find it. Help?

June 30 (4 years ago)
timmaugh
Forum Champion
API Scripter

How about using the Spawn script, querying yourself for the token name, then adding that token to the turn order?

David and I are looking into a way to tie Spawn (his script) in with the Meta Toolbox (my scripts) so you can use the newly-spawned token in further calls without having to reselect, etc.

June 30 (4 years ago)

Visible Custom Items: https://app.roll20.net/forum/post/3346285/script-turn-tracker-automatically-add-custom-item-w-slash-round-calculations/?pageforid=3346527#post-3346527

Invisible Custom Items: https://app.roll20.net/forum/post/6606108/hidden-custom-turn-order-items/?pageforid=6606389#post-6606389

Here's the macro I use to add spell effects to the Turn Tracker:

!?{Visible or Hidden?|Visible,act|Hidden,aict} ?{Countdown Number|-1} ?{Number of Turns|10} --?{Caster|@{selected|token_name} Spell}: "?{Effect Name|BlessSleepEtc}" ?{Concentration?||Yes,«Concentration» |No, |}

Those scripts are set up to add the custom items to the top of the turn tracker.  I changed a line of code in each to add the bottom of the tracker instead. Replace the lines with to.unshift({ with to.push({ if you want that as well.

                    to.unshift({
                    to.push({

There's probably a way to add the custom items in specific place in the turn order, but that's out of the scope of how the script is currently written.  As is you can still add them and then you'd be able to manually move them to the correct place.

June 30 (4 years ago)

Edited June 30 (4 years ago)
vÍnce
Pro
Sheet Author

!act script works great. I believe players can use it as well. Adds marker at the top.  I think only the GM can move/reorder it.
example

!act -1 ?{Rounds?|0} --?{Effect:|Marker}
or if you don't need to track the duration
!act --?{Effect:|Marker}

Thanks everyone for your help!  It was incredibly easy to implement and my GMing brain thanks you.