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

Pathfinder Companion Script - Removing Conditions

The documention for PCS has this macro as an example: !pfc --apply,condition=?{Select a Condition|Blind|Entangled|Invisible|Cowering|Fear|Pinned|Dazzled|Flat-Footed|Prone|Deafened|Grappled|Sickened|Helpless|Stunned|Fatigued|Energy Drain,drain ?{Add how much energy drain}} What would be the opposite of this macro, with all the same conditions in the list, to remove the specified condition?
1523672991

Edited 1523673222
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Either the swap keyword, or the remove keyword. Swap doesn't work with energy drain (as it's a numerical value, not a checkbox. The version with swap could be used to add or remove. Edit: see the Applying Conditions/Buffs and Their Statusmarkers - GM/Character Owner only section of the manual.
1523675424

Edited 1523675635
MyRoll20Stuffs
API Scripter
I'm trying this: !pfc --apply,condition=?{Select a Condition|Blind|Entangled|Invisible|Cowering|Fear|Pinned|Dazzled|Flat-Footed|Prone|Deafened|Grappled|Sickened|Helpless|Stunned|Fatigued|Energy Drain,drain ?{Add how much energy drain}},remove And it's not removing it for some reason... EDIT: I've also tried both of these: !pfc --apply,condition=?{Select a Condition|Blind|Entangled|Invisible|Cowering|Fear|Pinned|Dazzled|Flat-Footed|Prone|Deafened|Grappled|Sickened|Helpless|Stunned|Fatigued|Energy Drain,drain ?{Add how much energy drain}},swap !pfc --remove,condition=?{Select a Condition|Blind|Entangled|Invisible|Cowering|Fear|Pinned|Dazzled|Flat-Footed|Prone|Deafened|Grappled|Sickened|Helpless|Stunned|Fatigued|Energy Drain,drain ?{Add how much energy drain}}
1523676605
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
What happens if you reference a character I'd: !pfc --apply,condition=?{Select a Condition|Blind|Entangled|Invisible|Cowering|Fear|Pinned|Dazzled|Flat-Footed|Prone|Deafened|Grappled|Sickened|Helpless|Stunned|Fatigued|Energy Drain,drain ?{Add how much energy drain}},remove|@{character_id}
1523676615
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
What happens if you reference a character I'd: !pfc --apply,condition=?{Select a Condition|Blind|Entangled|Invisible|Cowering|Fear|Pinned|Dazzled|Flat-Footed|Prone|Deafened|Grappled|Sickened|Helpless|Stunned|Fatigued|Energy Drain,drain ?{Add how much energy drain}},remove|@{character_id}
Trying this: !pfc --apply,condition=?{Select a Condition|Blind|Entangled|Invisible|Cowering|Fear|Pinned|Dazzled|Flat-Footed|Prone|Deafened|Grappled|Sickened|Helpless|Stunned|Fatigued|Energy Drain,drain ?{Add how much energy drain}},remove|@{selected|character_id} And it still doesn't remove it from the selected token/character..
If I use the set macro to select Blind from the dropdown then do this: !pfc --apply,condition=Blind,remove|@{selected|character_id} It removed it. But If I use the ? to use a drop down it doesn't work. Going to test something and get back to you Scott.
I removed the energy drain ? and it works now. !pfc --apply,condition=?{Select a Condition|Blind|Entangled|Invisible|Cowering|Fear|Pinned|Dazzled|Flat-Footed|Prone|Deafened|Grappled|Sickened|Helpless|Stunned|Fatigued},remove|@{selected|character_id} I just won't set/remove energy drain with these macro buttons I guess.