Author Topic: Disable and enable options at menus  (Read 852 times)

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Disable and enable options at menus
« on: January 22, 2019, 10:00:04 AM »
I have thought something using menus, and I had a very good idea. A command prompt that executes at the start of every menu option. Inside, it can have only conditionals and the commands "Enable option" and "Disable option". When you wirte inside this command prompt, the menu option is automatically disabled and will not appear when calling it, however, if you set some conditionals inside and then you add an enable option command, if all conditionals are true, it will appear on the final menu.

This is useful to make appear options in menu when certain conditions are meet. In my case, I will probably use it for my Castle Chamber list of minigames, if you collect a floppy disk, the minigame enables, etc.
Sorry because my English is not very good because I'm Spanish ;) :P