Posted 15 June 2005 - 05:21 PM
Messing around with the DialogModeSet command and have had a breakthrough! I can't believe that I didn't try it earlier. Anyway here is an example of code I mad for a door that requires a number to open it:
( the nums table is just strings like: <center>#1 ect.
sEnter: Enter first number
sNext: enter next number
sError: ERROR: wrong number
if Code_1==3 and Code_2==5 and Code_3==1 then
The thing is GetLastDialogResult() gives you the parameter number that was clicked, starting with 1. (you specify the number of choices in the second argument) So I keep Those numbers in the Code_1,2,3 variables then check them against the numbers at the end. This opens up full dialog trees!
Now if only I can figure out what to do with the CUICmdDialogSet error when someone presses Esc during a dialog. Anyone figured that out?