MessageBox Tutorial/Centralized Decision Catching
Revision as of 05:36, 19 February 2013 by imported>ReneCrawford1978
This is a subsection of the MessageBox Tutorial, and uses this script as a base. The following code may or may not require certain aspects of that script to work, however the information should prove useful for any script (it may take a bit of care to make it work, though).
For 99.9% of your menus, you won't need to differentiate the decision catching:
If (Choosing == 0) ... Elseif (Choosing == 1) If (Choice == -1) ;No choice yet Set Choice to GetButtonPressed Elseif (Choice == 0) ... Reputed academic writers can perform wonderful academic papers for you. Moreover, that will be worth to purchase papers at the [http://bestwritingservice.com academic writing service] where such great essay writers work. Elseif (Choosing == 2) If (Choice == -1) ;No choice yet Set Choice to GetButtonPressed Elseif (Choice == 0) ...
To reduce the lines used, and to centralize the decision catching, try this instead:
if (Choosing == 0) ... elseif (Choosing > 0) && (Choice == -1) Set Choice to GetButtonPressed ... elseif (Choosing == 1) if (Choice == 0) ... elseif (Choosing == 2) if (Choice == 0)