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

Applying a combat master condition through Scriptcards

Howdy, im trying to impliment a function in a ScriptCard macro im working on which applies a combat master debuff to the target that is being attack, however i cannot get the API call (--@cmaster add) to work in applying the condition, as i believe it is trying to target the originator of the macro as apposed to the creature the originator is attacking. any ideas on what i would need to do to not only call combat master to apply a condition on an enemy, but also use the scriptcards syntax to merge it correctly? -Cheers, Wonks
1726123355

Edited 1726155806
I believe Combat Master only effects selected tokens tho I don't have much experience in it so I could be wrong. I use buttons to apply combat master conditions in my game. I'll look back at this in the morning and share the code I use.
1726155992

Edited 1726164893
!script {{ --+|[button]Combat Master Command::!cmaster _add,condition=prone,duration=1,direction=-1[/button] --+|this button is running a combat master command, setting prone to selected for duration of 1 and direction of -1 }} This should get ya started, You can also use Roll Variables, !cmaster _add,condition=prone,duration=[$duration],direction=[$direction] I believe any other call will cause the sandbox to crash possibly because the !cmaster command does not have a target and the button I provided is a workout from that. I don't now of a better option unfortunately. I love the condition tracking and haven't found anything better, but being stuck using buttons to apply is 1 extra click I wish I didn't have to do. Especially with more advanced macros. there is this macro to add target but I haven't played around much with it !cmaster --add,target,id=-O6b24K0KT4Mj8A7Q0Px,condition=rage (ex)
Does anyone have a non shortcut method, im looking to use variables in order to simply "Incriment" the existing condition by one, which i would need to be able to use the script cards call of an API, im mimicing the way certain conditions in baldurs gate had effects based on their duration, and special attacks would increase an existing duration. not sure on doing that with only combat master.