Hi there!
First of all: great job! Amazing script.
I do have a couple of questions though:
1- I assume the commands are the same as they were in the old version, am I right? (Couldn't find new documentation). In that case the !ct reset conditions command does remove all the conditions from the token, but it doesn't remove the icons (while the !ct remove [CONDITION] does remove everything). Am I using a wrong command? Sometimes being able to remove conditions all together, instead of one at the time, is very useful...
2- This is a bit longer^^ I'm using your CombatTracker script and I'm also using Jakob's GroupChecks script (https://app.roll20.net/forum/post/3631602/script-groupcheck-roll-checks-saves-et-cetera-for-many-tokens-at-once/?pagenum=1)
Is it possible to have them working together via some kind of macro? In detail I would like to be able to make multiple saving throws and apply a status from CombatTracker to all the tokens that don't pass the test. The script ApplyDamage (for GroupChecks) does that with a macro like this:
!group-check {{
--?{Ability Save|Strength,Strength Save|Dexterity,Dexterity Save|Constitution,Constitution Save|Intelligence,Intelligence Save|Wisdom,Wisdom Save|Charisma,Charisma Save}
--process
--subheader vs DC ?{DC}
--button ApplyDamage !apply-damage
~dmg [[?{Damage}]]
~type ?{Damage on Save|Half,half|None,none}
~DC ?{DC}
~saves RESULTS(,)
~ids IDS(,)
}}
And it allows to add icons with a macro like this:
!group-check {{
--?{Ability Save|Strength,Strength Save|Dexterity,Dexterity Save|Constitution,Constitution Save|Intelligence,Intelligence Save|Wisdom,Wisdom Save|Charisma,Charisma Save}
--ro ?{Roll Type|Normal,roll1|Advantage,adv|Disadvantage,dis}
--process
--subheader vs DC ?{DC}
--button ApplyDamage !apply-damage
~dmg [[?{Damage|0}]]
~type ?{Damage on Save|Half,half|None,none}
~DC ?{DC}
~saves RESULTS(,)
~ids IDS(,)
?{Status|
None,~|
Red,~status red|
Blue,~status blue|
Green,~status green|
Orange,~status orange|
Purple,~status purple|
Pink,~status pink|
Yellow,~status yellow|
―, |
Concentrating,~status blue|
Readying,~status stopwatch|
―, |
Prone,~status back-pain|
Restrained,~status fishing-net|
Grappled,~status grab|
―, |
Incapacitated,~status interdiction|
Stunned,~status pummeled|
Unconscious,~status sleepy|
―, |
Charmed,~status chained-heart|
Frightened,~status screaming|
―, |
Poisoned,~status half-heart|
Blinded,~status bleeding-eye|
Deafened,~status lightning-helix|
Paralyzed,~status padlock|
Petrified,~status broken-skull|
―, |
Dodging,~status bolt-shield|
Cover (half),~status broken-shield:2|
Cover (three-quarters),~status broken-shield:5|
Cover (full),~status white-tower|
Invisible,~status ninja-mask|
―, }
}}
Now... I tried to combine that with the CombatTracker conditions like this:
!group-check {{
--?{Ability Save|Strength,Strength Save|Dexterity,Dexterity Save|Constitution,Constitution Save|Intelligence,Intelligence Save|Wisdom,Wisdom Save|Charisma,Charisma Save}
--ro ?{Roll Type|Normal,roll1|Advantage,adv|Disadvantage,dis}
--process
--subheader vs DC ?{DC}
--button ApplyDamage !apply-damage
~dmg [[?{Damage|0}]]
~type ?{Damage on Save|Half,half|None,none}
~DC ?{DC}
~saves RESULTS(,)
~ids IDS(,)
--button ApplyStatus !ct add ?{Condition|Blinded,blinded|Charmed,charmed|Deafened,deafened|Frightened,frightened|Grappled,grappled|Incapacitated,incapacitated|Inspiration,inspiration|Invisibility,invisibility|Paralyzed,paralyzed|Petrified,petrified|Poisoned,poisoned|Prone,prone|Stunned,stunned|Unconscious,unconscious|Blessed,blessed|} ?{Duration|} ?{Direction|-1}
}}
But the problem is that it doesn't consider which token passed the test and which didn't, so it just applies the status to all of them. I tried adding
~DC ?{DC}
~saves RESULTS(,)
~ids IDS(,)
at the end of the script but it does nothing.
Is it something that's simply impossible or am I missing something? (I know nothing about scripting, I mostly copy paste stuff from other people and use trial and error to modify it to my needs^^)
Thanks