I'm experiencing some weird problems with processing of inline rolls through a script that calls sendChat function. All of them are calculated, however some results aren't returned as roll objects ($[[#roll]] form), but as a simple text number (i.e. 14). The script is PowerCards . It calls sendChat with various inlinerolls as input, like these: "Ataque #1":"[[ [$Atk1] 1d20 + 4 [Escarabajo de Fuego] ]] vs [[[[10+[[floor(1/2)]]]]+[[[[[[floor((18-10)/2)]]]]]]+0+1+0+0+0+0]] (Ezren)",
"Ataque #2":"[[ [$Atk2] 1d20 + 4 [Escarabajo de Fuego] ]] vs [[[[10+[[floor(1/2)]]]]+0+2+1+0+0+1+0]] (Seelah)",
"?? $Atk1.base > 1 ?? Crítico":"[[18 ]] fire (Ezren)",
"?? $Atk2.base > 1 ?? Crítico":"[[18 ]] fire (Seelah)", What the callback function recieves for the previous code is this: "Ataque #1":"$[[1]] vs $[[21]] (Ezren)",
"Ataque #2":"$[[2]] vs 14 (Seelah)",
"?? $Atk1.base > 1 ?? Crítico":"$[[3]] fire (Ezren)",
"?? $Atk2.base > 1 ?? Crítico":"$[[4]] fire (Seelah)", The seconds inline rolls for the two first lines are treated different. For the first one, the number is passed as a roll ID -and it's shown correctly on the chat-. For the second one, the number is the result of the roll, and its passed as simple text.