ohrrpgce / ohrrpgce

Official Hamster Republic RPG Construction Engine (mirror of SVN repository)
https://rpg.HamsterRepublic.com/ohrrpgce/Source
Other
72 stars 16 forks source link

Menu-choice bitset 'consume on use' #527

Open ohrrpgce-bugbot opened 16 years ago

ohrrpgce-bugbot commented 16 years ago

[bz#527]

It might be grand to have menu choices in the menu editor equipped with a bitset called 'consumed on use'. These menu choices are deleted as soon as they are used. A question though: when menu choices are deleted, should the choices below it move up (a la main menu without World Map), or should there be an empty spot (a la item or spell menu)?

From: msw188 Severity: feature request

ohrrpgce-bugbot commented 16 years ago

Comment author: @bob-the-hamster

The way that the menu code is implemented, deleting a menu item causes the ones below it to move up. For it to not move up, you would really be replacing the menu item with a blank label-type menu item.

Anyway. Making a menu item disappear when used would be very easy-- but it would come back the next time you re-open the same menu. For menu items to disappear *permanently* when used, we would need a system similar to the automatic one-time-use tags in the NPC editor.

ohrrpgce-bugbot commented 14 years ago

Comment author: @arperry

It's worth noting that this is very easy to do with menu items' tag settings. I'm not sure if this was the case when the bug was reported, and I realize that doing that eats up functionality you could use for other purposes, but it seems adequate to me.