andrew-vant / romtool

A game-independent ROM editing tool
0 stars 0 forks source link

Bitfield character mask #27

Closed andrew-vant closed 8 years ago

andrew-vant commented 9 years ago

Sometimes we have a bitfield for things like elemental defense, where each bit is immunity to an element. I don't necessarily want a column for every element, but a completely opaque set of ones and zeroes isn't great either. Can I specify a character for each bit in the display field, and have it output the corresponding character for each bit that is set? e.g. EFW if the bits are set for immunity to earth, fire, water.