ToME: the Tales of Maj'Eyal
http://forums.te4.org/

[Solved] Is there a way to check if cheat mode is enabled?
http://forums.te4.org/viewtopic.php?f=45&t=35184
Page 1 of 1

Author:  andar_b [ Wed Nov 14, 2012 1:43 am ]
Post subject:  [Solved] Is there a way to check if cheat mode is enabled?

I'm just thinking it makes sense to have 'debug commands' only available under Cheat Mode - quick and dirty way to make sure they're not available to just everyone if I forget to comment them out.

If there IS just a variable I can check, is there a list of engine variables that I could have referenced instead of asking?

Thanks :)

Author:  bricks [ Wed Nov 14, 2012 4:39 am ]
Post subject:  Re: Is there an easy way to check if cheat mode is enabled?

tome/dialogs/Birther.lua checks "config.settings.cheat". Don't know if that works globally, though.

Author:  andar_b [ Wed Nov 14, 2012 5:23 am ]
Post subject:  Re: Is there an easy way to check if cheat mode is enabled?

That seems to work just peachy. Thank you.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/