Map n states to hardwired outputs
Assuming you don't want to use more complex chips you will indeed need diodes. A simple one like a 1N4148 will do. You will need quite a few of them, but luckily they are cheap.

Note that you will also need current limiting resistors in series with each segment of your display. 1k would be a good guess.