Log in

View Full Version : How can I know of where came?


rdbello
10th January 2003, 13:43
I have 50 menus and one help screen. in each menu he has a button with link for the help screen. if you click in the help button in menu_7 is necessary that the return is made for menu_7. is it possible?

slk001
10th January 2003, 17:41
You could use command sequences and GPRMs to tell the player where you came from.

For instance, in your MENU-7, you could set a GPRM to 7.
Then, when you are in your help menu, you run a POST COMMAND SEQUENCE to find out where you need to go. You would have to set up a huge chain of test statements like this:

IF GPRM1 = 1, THEN JUMP VMG-MENU-1
IF GPRM1 = 2, THEN JUMP VMG-MENU-2
IF GPRM1 = 3, THEN JUMP VMG-MENU-3
IF GPRM1 = 4, THEN JUMP VMG-MENU-4
IF GPRM1 = 5, THEN JUMP VMG-MENU-5
IF GPRM1 = 6, THEN JUMP VMG-MENU-6
IF GPRM1 = 7, THEN JUMP VMG-MENU-7
IF GPRM1 = 8, THEN JUMP VMG-MENU-8
IF GPRM1 = 9, THEN JUMP VMG-MENU-9

etc, etc, etc. You will, of course, have to set the correct command sequence syntax for your authoring package.

With 50 menus, this would be a pain to do, but it could be done this way. BTW, I haven't done this before, I just know that it can be done.

rdbello
10th January 2003, 18:32
Thanks, Slk001