home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 February
/
CHIP_2_98.iso
/
software
/
testsoft
/
muzea
/
exemusei
/
indice.dir
/
00031_Script_•INIT
< prev
next >
Wrap
Text File
|
1997-04-09
|
2KB
|
78 lines
on inindi
global gSkr, gP, gLab, gI, gT, gF, gH, gW
put gW
put 0 into gW
put 0 into Z
put 0 into N
puppetSprite 12,1
puppetSprite 13,1
puppetSprite 24,1
puppetSprite 25,1
puppetSprite 26,1
puppetSprite 32,1
if gH=1 then
put 0 into gH
else
if gLab="" or voidP(gLab)=1 or length(glab)<>12 then
nothing
else
put value(chars(gLab, 5, 5)) into c
put value(chars(gLab, 6, 6)) into d
if c=0 then
if d < 5 then
put 1 into i
else
put 35 into i
end if
else if c=1 then
if d < 3 then
put 71 into i
else
put 100 into i
end if
else if c=5 then
put 139 into i
end if
put chars(gLab, 5, 7) into R
put the number of lines in field "RicLinea" into L
repeat with N = i to L
if line N of field "RicLinea" = R then
put 1 into Z
exit repeat
end if
end repeat
end if
if Z=0 then
put -9 into N
else
put line N of field "NumLinea" into N
put integer(N - 1) INTO N
end if
put gSkr*N into gI
end if
put the top of sprite 20 - the bottom of sprite 19 into FT
put the top of sprite 28 - the bottom of sprite 27 - 2*the height of sprite 24 into pB
put gSkr*the number of lines in field "LabSalto" - FT into pT
put pT/pB into gF
put (FT/gSkr)*gSkr - gSkr into gP
put gI - FT/2 into S
-- put the top of sprite 12 - S into T
put 19 - S into T
put the top of sprite 24 + S/gF into B
put the top of sprite 20 - gSkr*the number of lines in field "LabSalto" into U
put the bottom of sprite 19 + gSkr into D
if T <= U then
put U into T
put the top of sprite 28 - the height of sprite 24 into B
else if T >= D then
put D into T
put the bottom of sprite 27 into B
end if
set the locH of sprite 32 = 9000
set the locV of sprite 12 = T
set the locV of sprite 13 = T + gI + the height of sprite 13/2
set the locV of sprite 24 = B
spriteBox 25, 609, the bottom of sprite 27, 619, B
spriteBox 26, 609, B+the height of sprite 24, 619, the top of sprite 28
updatestage
end