There's probably a number of ways to do this, but the obvious one is using the DH (drop highest) modifier, like /roll [[{@{caster_level},5}dh1]]d6 I don't know what stats are called in your system or what the macro looks like generally, so you'd need to change parts of that to fit. Hopefully this gives you a pointer.