Fixed an issue pointed out by Ron, changed flags to handle custom values (for example state flag on #roll command