I'm trying to find away that when a player clicks on a button their character sheet, it goes to sheet workers, and then calls a roll afterwards if they have the available actions. Here's what I have. Is this something you can do, or is there another way to approach getting this result? < button type = "roll" name = "act_ChargeBeta" value = "" ></ button > < button type = "roll" name = "roll_ChargeBetaSuccess" value = "&{template:default}{{Ritual Check=[[1d20 +@{RitualCastingTotal}]] vs SC[[19]] }} " ></ button > < button type = "roll" name = "roll_ChargeBetaFail" value = "&{template:default}{{Failed= You don't have enough support actions }} " ></ button > name = "attr_SupportActions" value = "3" /> < script type = "text/worker" > on("click:chargebeta",function() { getAttrs ([ "SupportActions" ], function ( values ){ let SupportActions = values . SupportActions ; if ( SupportActions > 1 ){ SupportActions -= 2 ; //call ChargeBetaSuccess; } else { //call ChargeBetaFailure } setAttrs ({ "SupportActions" : SupportActions }); }); } ); </ script >