You'll want to create at least one new state, using the fields "stateTransitionOnAmmo" and "stateTransitionOnNoAmmo," which work like the trigger down/up and timeout ones. Then you can use %player.setImageAmmo(%slot, 0 or 1) to control what will happen when you get to that state.