Log in

View Full Version : Scenarist : How do I compare a GPRM and Jump to a Title...


Arok
17th October 2005, 22:23
Hello all,

I hope someone has an idea on how to do this.

In my VTS, I have several Titles named Title1, Title2, Title3. and so on. Each Title is a small video of the music used in my documentary with video attached.

Now my menu has 3 PGCs : Menu_In which then calls Menu_Select, which when a button is pressed, calls Menu_Out.

All buttons are located in Menu_Select and have some code such as

1: {Mov GPRM4, 1; LinkPGCN Menu_Out-t-pgc_1}
2: {Mov GPRM4, 2; LinkPGCN Menu_Out-t-pgc_1}
and so on...

Now the problem is that the PGC it calls, Menu_Out, is supposed to redirect to the appropriate Title (IE: Button1 goes to Title1, Button2 goes to Title2).

When I go in Menu_Out's Post commands, I can tell it to Jump to the Title, but I can't get in to compare the GPRM4 to a certain number (such as 1, 2, or 3) so that it knows WHICH title to jump to.

Any ideas of how to do it ?

Thanks ion advance for your answers and suggestions.

DaRat
17th October 2005, 22:29
Use GoTo..

1. If (gprm4==1) GoTo [x]
1. If (gprm4==2) GoTo [x+1]
.
.
.
(x). JumpTTN_1
(x+1). JumpTTN_2
.
.


Or simply use Menu_Out multiple times, I think you can the same asset multiple times in the menu domain too.

Arok
17th October 2005, 22:34
DaRat,

Thanks.... Sometimes things are too simply and I try to complicate them...

I don't know why but I never thought of doing it with the GO command.

Once again, thanks...