home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best of Blender
/
bestofblender.iso
/
pc
/
blender
/
files
/
beastvr
/
beastvrm.dir
/
00157_Script_157
< prev
Wrap
Text File
|
1996-04-25
|
3KB
|
94 lines
on ROLLTEST
global STAGEROLL, LASTROLL, ROLLNUMBER, CONTROLWINDOW2
repeat with n = 47 down to 41
if rollover(n) then
set STAGEROLL = the castnum of Sprite n
--TEST IF ALREADY IN THAT HELP SCREEN
if (750 <= STAGEROLL) and (STAGEROLL <= 753) then
set ROLLNUMBER = 1
else if (754 <= STAGEROLL) and (STAGEROLL <= 757) then
set ROLLNUMBER = 2
else if (758 <= STAGEROLL) and (STAGEROLL <= 761) then
set ROLLNUMBER = 3
else if (762 <= STAGEROLL) and (STAGEROLL <= 765) then
set ROLLNUMBER = 4
else if (766 <= STAGEROLL) and (STAGEROLL <= 773) then
set ROLLNUMBER = 5
else if (817 <= STAGEROLL) and (STAGEROLL <= 823) then
set ROLLNUMBER = 5
else if (774 <= STAGEROLL) and (STAGEROLL <= 775) then
set ROLLNUMBER = 6
else if (776 <= STAGEROLL) and (STAGEROLL <= 777) then
set ROLLNUMBER = 7
else if (778 <= STAGEROLL) and (STAGEROLL <= 779) then
set ROLLNUMBER = 8
else if (780 <= STAGEROLL) and (STAGEROLL <= 781) then
set ROLLNUMBER = 9
else if (782 <= STAGEROLL) and (STAGEROLL <= 783) then
set ROLLNUMBER = 9
else if (807 <= STAGEROLL) and (STAGEROLL <= 808) then
set ROLLNUMBER = 10
else if (810 <= STAGEROLL) and (STAGEROLL <= 811) then
set ROLLNUMBER = 11
else if (813 <= STAGEROLL) and (STAGEROLL <= 816) then
set ROLLNUMBER = 12
end if
exit repeat
end if
end repeat
if ROLLNUMBER <> LASTROLL then
tell window "HELP"
--BACK ARROW
if ROLLNUMBER = 1 then
puppetTransition 7, 2, 8, 0
go to frame "BACK"
--INFO BUTTON
else if ROLLNUMBER = 2 then
puppetTransition 7, 2, 8, 0
go to frame "INFO"
--FORWARD ARROW
else if ROLLNUMBER = 3 then
puppetTransition 7, 2, 8, 0
go to frame "FORWARD"
--PRINT
else if ROLLNUMBER = 4 then
puppetTransition 7, 2, 8, 0
go to frame "PRINT"
--SOUND CONTROLS
else if ROLLNUMBER = 5 then
puppetTransition 7, 2, 8, 0
go to frame "SOUND"
--EXIT BUTTON
else if ROLLNUMBER = 6 then
puppetTransition 7, 2, 8, 0
go to frame "EXIT"
--PANIC
else if ROLLNUMBER = 7 then
puppetTransition 7, 2, 8, 0
go to frame "PANIC"
--CONTENTS BUTTON
else if ROLLNUMBER = 8 then
puppetTransition 7, 2, 8, 0
go to frame "CONTENTS"
--VIDEO OFF / ON
else if ROLLNUMBER = 9 then
puppetTransition 7, 2, 8, 0
go to frame "VIDEO"
--HYPERTEXT
else if ROLLNUMBER = 10 then
puppetTransition 7, 2, 8, 0
go to frame "HYPER"
--HELP
else if ROLLNUMBER = 11 then
puppetTransition 7, 2, 8, 0
go to frame "OPEN"
--TARGET
else if ROLLNUMBER = 12 then
puppetTransition 7, 2, 8, 0
go to frame "TRAPDOOR"
end if
set LASTROLL = ROLLNUMBER
end tell
end if
end ROLLTEST