Hi, I can't find any hint on the forum for this particular point. It seems trivial but I'm unable to do it... I get this script working perfectly fine : on("change:bet_display_impact", function() { getAttrs(["pp_current", "mp_current", "sp_current", "pp_bet", "mp_bet", "sp_bet"], function(values) { setAttrs({ pp_current: values.pp_current - values.pp_bet, mp_current: values.mp_current - values.mp_bet, sp_current: values.sp_current - values.sp_bet }); }); }); It operate on a checkbox and execute as intend. But I want this script to work when a roll button is clicked. Any hint folks ?