Author Topic: Make Console Messages and Sounds/Speech "Level" Dependent  (Read 2294 times)

BillEvansAlone

  • Newbie
  • *
  • Posts: 11
Make Console Messages and Sounds/Speech "Level" Dependent
« on: January 20, 2023, 04:07:53 AM »
Hi. I frequently add messages and text-to-speech for the purpose of debugging. Rather than disable all of these lines once the command is working, it would be nice instead to be able to assign them a level number on creation, and only have them active if that level <= a maximum level setting in the main Options. A feature like this would allow tailoring the level of degugging/tracing simply by changing the maximum level. Clearly the same result could be achieved by embedding all message/speech/sound lines inside "if" statements refering to global variables for their maximum levels, but it would be so much simpler just to select a level within the lines themselves. Thanks.
« Last Edit: January 23, 2023, 11:20:25 AM by BillEvansAlone »