home *** CD-ROM | disk | FTP | other *** search
/ Love Bytes / LoveBytes.bin / lb.z / striptease.VRT / world.script < prev    next >
Encoding:
Text File  |  1997-11-04  |  8.7 KB  |  667 lines

  1. ;
  2. ; Script conversion of file STRIPTEA.WLD
  3. ;
  4. Type: WRLD
  5. Title: "\n\n\r"
  6.        "World file STRIPTEA.WLD revision 12\n\r"
  7.        "Saved from VRT version 5.00\n\r"
  8.        "\x1A"
  9. ;
  10. ;-------Layers------------------------------------------------------------
  11. ;
  12. Chunk: LayerNames
  13.  NumLayers: 2
  14.  Name:     "Default"
  15.  Name:     "System"
  16. End_Chunk
  17. ;
  18. ;-------Object    0-------------------------------------------------------
  19. Chunk: Standard
  20.  Name:     "RootObject"
  21.  Number:   0
  22.  Size:     2147483647 2147483647 2147483647
  23.  Position: 0 0 0
  24.  Type:     65535
  25.  Layer:    0
  26.  DFlags:   E
  27. End_Chunk
  28. Chunk: ViewPoint
  29.  Number:    100
  30.  Subchunk
  31.   Number:  1
  32.   Type:    35
  33.   View:    0
  34.   Point:   0
  35.   Frames:  1
  36.   Position:  0 Frame:   0  Type: StraightMove Pos: 2000818 9841 1969977
  37.   Rotation:  0 Frame:   0 Type: Relative Offset: 0 65399 0 Zoom: 0x2000
  38. End_Chunk
  39. Chunk: Colours
  40.  Number: 6
  41.  0x12 0x00 0x01 0x27 0x00 0x01
  42. End_Chunk
  43. Chunk: LightSource
  44.  Brightness: 2048
  45.  Offset:     -724 1448 -1254
  46.  Rotation:   0x0000 0x0000 0x0000
  47.  BeamWidth:  0
  48.  Dispersion: 200
  49.  Colour:     0xFF 0xFF 0xFF
  50.  BeamEdge:   0
  51.  Flags:      pOo
  52. End_Chunk
  53.  
  54. Children:
  55. ;
  56. ;-------Object    2-------------------------------------------------------
  57. Chunk: Standard
  58.  Name:     "icons"
  59.  Number:   2
  60.  Size:     2000 2300 1000
  61.  Position: 2006000 0 1993000
  62.  Type:     65535
  63.  Layer:    0
  64. End_Chunk
  65. Chunk: SCL
  66. short  SELECTED=21, HERS=21;
  67.  
  68.  
  69.  
  70. marker (3)=0;
  71.  
  72. instr (1)=17;
  73.  
  74. instr (2)=2;
  75.  
  76. instr (3)=3;
  77.  
  78. instr (5)=SELECTED;
  79.  
  80. instr (4)=HERS;
  81.  
  82. switch (marker (2));
  83.  
  84. case 1: 
  85.  
  86.   instr (1)=18;
  87.  
  88. case 2: 
  89.  
  90.   instr (2)=19;
  91.  
  92. case 3: 
  93.  
  94.   instr (3)=20;
  95.  
  96. switch (marker (1));
  97.  
  98. case 1: 
  99.  
  100. {           
  101.  
  102.    /*menu lock stuff*/
  103.  
  104.   menuLock (1);
  105.  
  106.   loadvrt ("garden.vrt");
  107.  
  108. }
  109.  
  110. case 2: 
  111.  
  112.   marker (3)=1;
  113.  
  114. case 3: 
  115.  
  116.   marker (3)=2;
  117.  
  118. marker (1)=0;
  119.  
  120. marker (2)=0;
  121.  
  122. repeat (5)
  123.  
  124.   update (inloop);
  125.  
  126.  
  127. end
  128. End_Chunk
  129.  
  130. Chunk: ImageRef
  131.  Number: 1
  132.  Index: 1 Image: 2
  133. End_Chunk
  134. Chunk: Textures
  135.  Number: 1
  136.  SubChunk
  137.   Facet:    2
  138.   ImageRef: 1
  139.   Scale:    256 256
  140.   Offset:   0 0
  141.   PixScale: 0
  142. End_Chunk
  143. ;
  144. ;-------Object    3-------------------------------------------------------
  145. Chunk: Standard
  146.  Name:     "card logics"
  147.  Number:   3
  148.  Size:     2000 2300 1000
  149.  Position: 2008000 0 1993000
  150.  Type:     65535
  151.  Layer:    0
  152. End_Chunk
  153. Chunk: SCL
  154. short  GAME=1, HCARD, YCARD, STRIP, OSTRIP;
  155.  
  156. long   Time;
  157.  
  158.  
  159.  
  160. resume (2, 2);
  161.  
  162. if (first)
  163.  
  164. {
  165.  
  166.   ranseed (vrtime);
  167.  
  168.   marker (3)=0;
  169.  
  170.   marker (4)=0;
  171.  
  172. }
  173.  
  174. if (GAME)
  175.  
  176. {
  177.  
  178.   Time=vrtime;
  179.  
  180.   while (vrtime<Time+2000)
  181.  
  182.     waitf;
  183.  
  184.   #2.SELECTED=21;
  185.  
  186.   #2.HERS=21;
  187.  
  188.   OSTRIP=STRIP;
  189.  
  190. /*LOAD IMAGE*/
  191.  
  192.   YCARD=random (13);
  193.  
  194.   HCARD=random (13);
  195.  
  196.   while (YCARD==HCARD)
  197.  
  198.     HCARD=random (13);
  199.  
  200.   #2.SELECTED=YCARD+4;
  201.  
  202.   GAME=0;
  203.  
  204. }
  205.  
  206. if (marker (3)==1 && GAME==0)
  207.  
  208. {
  209.  
  210. /*HIGHER*/
  211.  
  212.   if (YCARD<HCARD)
  213.  
  214.   {
  215.  
  216.     STRIP+=1;
  217.  
  218.     counter (26)=table (random (7)) {9, 15, 46, 85, 86, 130};
  219.  
  220.   }
  221.  
  222.   else
  223.  
  224.   {
  225.  
  226.     STRIP-=1;
  227.  
  228.     counter (26)=table (random (6)) {172, 173, 174};
  229.  
  230.   }
  231.  
  232.   #2.HERS=HCARD+4;
  233.  
  234.   marker (3)=0;
  235.  
  236.   GAME=1;
  237.  
  238. }
  239.  
  240. if (marker (3)==2 && GAME==0)
  241.  
  242. {
  243.  
  244. /*LOWER*/
  245.  
  246.   if (HCARD<YCARD)
  247.  
  248.   {
  249.  
  250.     STRIP+=1;
  251.  
  252.     counter (26)=table (random (6)) {9, 15, 46, 85, 86, 130};
  253.  
  254.   }
  255.  
  256.   else
  257.  
  258.   {
  259.  
  260.     STRIP-=1;
  261.  
  262.     counter (26)=table (random (6)) {172, 173, 174};
  263.  
  264.   }
  265.  
  266.   #2.HERS=HCARD+4;
  267.  
  268.   marker (3)=0;
  269.  
  270.   GAME=1;
  271.  
  272. }
  273.  
  274. if (OSTRIP!=STRIP)
  275.  
  276. {
  277.  
  278.   if (STRIP<0)
  279.  
  280.     STRIP=0;
  281.  
  282.   if (STRIP>14 || STRIP==14)
  283.  
  284.   {
  285.  
  286.     counter (26)=170;
  287.  
  288.     STRIP=14;
  289.  
  290.     marker (4)=STRIP;
  291.  
  292.     #1.REFRESH=1;
  293.  
  294.     /*menu stuff*/
  295.  
  296.     waitfs (20);
  297.  
  298.     menuLock (1);
  299.  
  300.     loadvrt ("garden.vrt");
  301.  
  302.   }
  303.  
  304.   marker (4)=STRIP;
  305.  
  306.   #1.REFRESH=1;
  307.  
  308.   OSTRIP=STRIP;
  309.  
  310. }
  311. end
  312. End_Chunk
  313.  
  314. Chunk: ImageRef
  315.  Number: 1
  316.  Index: 1 Image: 2
  317. End_Chunk
  318. Chunk: Textures
  319.  Number: 1
  320.  SubChunk
  321.   Facet:    2
  322.   ImageRef: 1
  323.   Scale:    256 256
  324.   Offset:   0 0
  325.   PixScale: 0
  326. End_Chunk
  327. ;
  328. ;-------Object    4-------------------------------------------------------
  329. Chunk: Standard
  330.  Name:     "sounds"
  331.  Number:   4
  332.  Size:     2000 2300 1000
  333.  Position: 2010000 0 1993000
  334.  Type:     65535
  335.  Layer:    0
  336. End_Chunk
  337. Chunk: SCL
  338. char   NAME[10], PATH[256], DIR[256], DRIVE[3];
  339.  
  340. long   WIDTH, HEIGHT, newPOS, oldWIDTH, STATS[8];
  341.  
  342. short  Scale=20, imgNum=98, LOWEST, MOODS=1, TEMP, ROT;
  343.  
  344.  
  345.  
  346. resume (2, 2);
  347.  
  348. if (first)
  349.  
  350. {
  351.  
  352.   cdDrive (&DRIVE);
  353.  
  354.   strcpy (&DIR, &DRIVE);
  355.  
  356.   strcat (&DIR, "\\LoveBytes\\");
  357.  
  358.   counter (20)=-1;
  359.  
  360.   counter (25)=-1;
  361.  
  362. }
  363.  
  364. if (counter (26)>-1)
  365.  
  366. {
  367.  
  368.   strcpy (&PATH, &DIR);
  369.  
  370.   strcat (&PATH, "sounds\\");
  371.  
  372.   ltoa (&NAME, counter (26));
  373.  
  374.   strcat (&PATH, &NAME);
  375.  
  376.   strcat (&PATH, ".wav");
  377.  
  378.   playWAV (&PATH);
  379.  
  380.   counter (26)=-1;
  381.  
  382. }
  383. end
  384. End_Chunk
  385.  
  386. Chunk: ImageRef
  387.  Number: 1
  388.  Index: 1 Image: 2
  389. End_Chunk
  390. Chunk: Textures
  391.  Number: 1
  392.  SubChunk
  393.   Facet:    2
  394.   ImageRef: 1
  395.   Scale:    256 256
  396.   Offset:   0 0
  397.   PixScale: 0
  398. End_Chunk
  399. ;
  400. ;-------Object    1-------------------------------------------------------
  401. Chunk: Standard
  402.  Name:     "woman"
  403.  Number:   1
  404.  Size:     14000 22793 1000
  405.  Position: 1997500 0 1995780
  406.  Type:     0
  407.  Layer:    0
  408.  DFlags:   r
  409. End_Chunk
  410. Chunk: TexCoords
  411.  Number: 1
  412.  Mode:   0
  413.  SubChunk
  414.   Facet:     2
  415.   ImageRef:  1
  416.   PixScale:  0
  417.   NumCoords: 4
  418.     0.00000 0.00000
  419.     0.00000 1.00000
  420.     1.00000 1.00000
  421.     1.00000 0.00000
  422. End_Chunk
  423. Chunk: Rotations
  424.  Initial: 0x0000 0x0000 0x0000
  425.  Centre:  4400 3650 4720
  426. End_Chunk
  427. Chunk: InitSize
  428.  Size: 14000 22793 1000
  429. End_Chunk
  430. Chunk: InitPos
  431.  Position: 1997500 0 1995780
  432. End_Chunk
  433.  
  434. Chunk: ImageRef
  435.  Number: 1
  436.  Index: 1 Image: 1
  437. End_Chunk
  438. Chunk: SCL
  439. char   NAME[10], DIR[256], DRIVE[3];
  440.  
  441. long   WIDTH, HEIGHT, newPOS, oldWIDTH, STATS[8];
  442.  
  443. short  Scale=20, imgNum=57, IMAGE, REFRESH=1;
  444.  
  445.  
  446.  
  447. resume (0, 2);
  448.  
  449. if (REFRESH)
  450.  
  451. {
  452.  
  453.   cdDrive (&DRIVE);
  454.  
  455.   strcpy (&DIR, &DRIVE);
  456.  
  457.   strcat (&DIR, "\\LoveBytes\\Images\\");
  458.  
  459.   counter (20)=-1;
  460.  
  461.   counter (25)=-1;
  462.  
  463.   IMAGE=table (marker (4)) {213, 214, 203, 202, 216, 215, 208, 
  464.  
  465.       207, 206, 205, 204, 212, 211, 200, 209};
  466.  
  467.   ltoa (&NAME, IMAGE);
  468.  
  469.   strcat (&DIR, &NAME);
  470.  
  471.   strcat (&DIR, ".gif");
  472.  
  473.   imageLd (&DIR, 1, 1, &WIDTH, &HEIGHT);
  474.  
  475.   newPOS=xpos (me);
  476.  
  477.   oldWIDTH=xsize (me)/2;
  478.  
  479.   xsize (me)=WIDTH*Scale;
  480.  
  481.   ysize (me)=HEIGHT*Scale;
  482.  
  483.   write (&xcent (me))=xsize (me)/2;
  484.  
  485.   newPOS=newPOS+oldWIDTH-WIDTH*Scale/2;
  486.  
  487.   xpos (me)=newPOS;
  488.  
  489.   REFRESH=0;
  490.  
  491. }
  492. end
  493. End_Chunk
  494. ;
  495. ;-------Object    5-------------------------------------------------------
  496. Chunk: Standard
  497.  Name:     "woman[5]"
  498.  Number:   5
  499.  Size:     20000 0 24000
  500.  Position: 1993879 0 1988901
  501.  Type:     0
  502.  Layer:    0
  503.  DFlags:   r
  504. End_Chunk
  505. Chunk: TexCoords
  506.  Number: 1
  507.  Mode:   0
  508.  SubChunk
  509.   Facet:     5
  510.   ImageRef:  1
  511.   PixScale:  0
  512.   NumCoords: 4
  513.     0.00000 0.00000
  514.     0.00000 1.00000
  515.     1.00000 1.00000
  516.     0.99999 0.00000
  517. End_Chunk
  518. Chunk: Rotations
  519.  Initial: 0x0000 0x2000 0x0000
  520.  Centre:  10000 0 10000
  521. End_Chunk
  522.  
  523. Chunk: ImageRef
  524.  Number: 1
  525.  Index: 1 Image: 23
  526. End_Chunk
  527. ;
  528. ;-------Object    7-------------------------------------------------------
  529. Chunk: Standard
  530.  Name:     "Menus"
  531.  Number:   7
  532.  Size:     10000 10000 10000
  533.  Position: 1900442 0 2056281
  534.  Type:     65535
  535.  Layer:    0
  536. End_Chunk
  537. Chunk: SCL
  538. if (first)
  539.  
  540. {
  541.  
  542.   menuNew (me);
  543.  
  544.   menuLock (0);
  545.  
  546. }
  547. end
  548. End_Chunk
  549. Chunk: Text
  550.   "item \"E&xit\" scl exitVis; sclend\r"
  551.   "item \"A&bout\" scl Credits; sclend"
  552. End_Chunk
  553. ;
  554. ;-------Object    8-------------------------------------------------------
  555. Chunk: Standard
  556.  Name:     "woman[8]"
  557.  Number:   8
  558.  Size:     28895 22015 0
  559.  Position: 1977400 10300 2007780
  560.  Type:     0
  561.  Layer:    0
  562.  DFlags:   r
  563. End_Chunk
  564. Chunk: TexCoords
  565.  Number: 1
  566.  Mode:   0
  567.  SubChunk
  568.   Facet:     2
  569.   ImageRef:  1
  570.   PixScale:  0
  571.   NumCoords: 4
  572.     0.00000 0.00000
  573.     0.00000 1.00000
  574.     1.00000 1.00000
  575.     1.00000 0.00000
  576. End_Chunk
  577.  
  578. Chunk: ImageRef
  579.  Number: 11
  580.  Index: 1 Image: 38
  581.  Index: 2 Image: 39
  582.  Index: 3 Image: 40
  583.  Index: 4 Image: 41
  584.  Index: 5 Image: 42
  585.  Index: 6 Image: 43
  586.  Index: 7 Image: 42
  587.  Index: 8 Image: 41
  588.  Index: 9 Image: 40
  589.  Index: 10 Image: 39
  590.  Index: 11 Image: 39
  591. End_Chunk
  592. Chunk: SCL
  593. resume (1, 1);
  594.  
  595. ++timgref (me, 1);
  596.  
  597. if (timgref (me, 1)>=11)
  598.  
  599.   timgref (me, 1)=itimgref (me, 1);
  600.  
  601. waitfs (2);
  602. end
  603. End_Chunk
  604. ;
  605. ;-------Object    6-------------------------------------------------------
  606. Chunk: Standard
  607.  Name:     "woman[6]"
  608.  Number:   6
  609.  Size:     28895 22015 0
  610.  Position: 2006400 10300 2007780
  611.  Type:     0
  612.  Layer:    0
  613.  DFlags:   r
  614. End_Chunk
  615. Chunk: TexCoords
  616.  Number: 1
  617.  Mode:   0
  618.  SubChunk
  619.   Facet:     2
  620.   ImageRef:  1
  621.   PixScale:  0
  622.   NumCoords: 4
  623.     0.00000 0.00000
  624.     0.00000 1.00000
  625.     1.00000 1.00000
  626.     1.00000 0.00000
  627. End_Chunk
  628.  
  629. Chunk: ImageRef
  630.  Number: 12
  631.  Index: 1 Image: 31
  632.  Index: 2 Image: 32
  633.  Index: 3 Image: 33
  634.  Index: 4 Image: 34
  635.  Index: 5 Image: 35
  636.  Index: 6 Image: 36
  637.  Index: 7 Image: 37
  638.  Index: 8 Image: 36
  639.  Index: 9 Image: 35
  640.  Index: 10 Image: 34
  641.  Index: 11 Image: 33
  642.  Index: 12 Image: 32
  643. End_Chunk
  644. Chunk: SCL
  645. resume (1, 1);
  646.  
  647. ++timgref (me, 1);
  648.  
  649. if (timgref (me, 1)>=12)
  650.  
  651.   timgref (me, 1)=itimgref (me, 1);
  652.  
  653. waitfs (2);
  654. end
  655. End_Chunk
  656.  
  657. End_Children
  658. End_File