Ronhin Varothen said: Hello, i've search for an answer but i don't understand why it don't work. so, i try to put the following macro in the max use ability in a modified version of Community Pathfinder Sheet [[{(@{class-1-level}/2),1}kh1]] When i put it in the chat, it work, but not in the macro cell. WHY? Hi Ronhin, this is a "modified version of Community Pathfinder Sheet", so it's hard to say for sure without looking at the code. My guess; you are trying to use an inline roll result on the sheet, meaning there is no way to get the value without sending the macro to chat. You want the macro to resolve within the sheet. Remove any "roll requirements" in your macro. An un-modified version of the Community sheet has multiple types of macro-text fields on the sheet. These fields are given a superscript indicator as denoted in a key found in the footer of the sheet. You must follow the appropriate syntax for that field or else you will get an error or unexpected results. Also 'keep high/keep low' is a method normally resolved via a roll to chat. Unless there's a sheetworker that interprets kl1/kh1 in a given field/attribute as min() max(), I think the calculation will fail to resolve as well. So it needs to be converted to a min/max formula. Maybe try max( floor(@{class-1-level}/2) , 1 )