home *** CD-ROM | disk | FTP | other *** search
/ Love Bytes / LoveBytes.bin / lb.z / bedroom.VRT / world.script < prev    next >
Encoding:
Text File  |  1997-11-21  |  147.0 KB  |  10,047 lines

  1. ;
  2. ; Script conversion of file BEDROOM.WLD
  3. ;
  4. Type: WRLD
  5. Title: "\n\n\r"
  6.        "World file BEDROOM.WLD revision 61\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:    39
  33.   View:    9
  34.   Control: 8
  35.   Point:   0
  36.   Frames:  1
  37.   Position:  0 Frame:   0  Type: StraightMove Pos: 500 500 500
  38.   Rotation:  0 Frame:   0 Type: Relative Offset: 0 0 0 Zoom: 0x2000
  39.  Subchunk
  40.   Number:  2
  41.   Type:    35
  42.   View:    0
  43.   Point:   0
  44.   Frames:  1
  45.   Position:  0 Frame:   0  Type: StraightMove Pos: 2081423 20023 1999118
  46.   Rotation:  0 Frame:   0 Type: Relative Offset: 2172 3793 0 Zoom: 0x2000
  47.  Subchunk
  48.   Number:  3
  49.   Type:    35
  50.   View:    0
  51.   Point:   0
  52.   Frames:  1
  53.   Position:  0 Frame:   0  Type: StraightMove Pos: 2156710 10572 1932691
  54.   Rotation:  0 Frame:   0 Type: Relative Offset: 1428 5774 0 Zoom: 0x2000
  55.  Subchunk
  56.   Number:  99
  57.   Type:    35
  58.   View:    173
  59.   Point:   0
  60.   Frames:  1
  61.   Position:  0 Frame:   0  Type: StraightMove Pos: 499 500 503
  62.   Rotation:  0 Frame:   0 Type: Relative Offset: 1459 0 0 Zoom: 0x156D
  63. End_Chunk
  64. Chunk: Colours
  65.  Number: 6
  66.  0xD8 0x07 0x01 0xC8 0x03 0x01
  67. End_Chunk
  68. Chunk: LightSource
  69.  Brightness: 2048
  70.  Offset:     -724 1448 -1254
  71.  Rotation:   0x0000 0x0000 0x0000
  72.  BeamWidth:  0
  73.  Dispersion: 200
  74.  Colour:     0xFF 0xFF 0xFF
  75.  BeamEdge:   0
  76.  Flags:      pOo
  77. End_Chunk
  78.  
  79. Children:
  80. ;
  81. ;-------Object   81-------------------------------------------------------
  82. Chunk: Standard
  83.  Name:     "   make me visable!!!"
  84.  Number:   81
  85.  Size:     100000 31000 100000
  86.  Position: 2036725 0 1948284
  87.  Type:     65535
  88.  Layer:    0
  89.  DFlags:   E
  90. End_Chunk
  91.  
  92. Children:
  93. ;
  94. ;-------Object   82-------------------------------------------------------
  95. Chunk: Standard
  96.  Name:     "floor[82]"
  97.  Number:   82
  98.  Size:     72000 31000 73000
  99.  Position: 10000 0 10000
  100.  Type:     65535
  101.  Layer:    0
  102.  DFlags:   E
  103. End_Chunk
  104.  
  105. Children:
  106. ;
  107. ;-------Object    1-------------------------------------------------------
  108. Chunk: Standard
  109.  Name:     "floor[1]"
  110.  Number:   1
  111.  Size:     0 31000 73000
  112.  Position: 0 0 0
  113.  Type:     0
  114.  Layer:    0
  115. End_Chunk
  116. Chunk: TexCoords
  117.  Number: 1
  118.  Mode:   0
  119.  SubChunk
  120.   Facet:     3
  121.   ImageRef:  1
  122.   PixScale:  0
  123.   NumCoords: 4
  124.     0.00000 0.00000
  125.     0.00000 1.00000
  126.     1.00000 1.00000
  127.     1.00000 0.00000
  128. End_Chunk
  129. Chunk: Colours
  130.  Number: 6
  131.  0x00 0x76 0x77 0x76 0x75 0x75
  132. End_Chunk
  133.  
  134. Chunk: ImageRef
  135.  Number: 1
  136.  Index: 1 Image: 6
  137. End_Chunk
  138. ;
  139. ;-------Object   80-------------------------------------------------------
  140. Chunk: Standard
  141.  Name:     "floor[80]"
  142.  Number:   80
  143.  Size:     72000 31000 0
  144.  Position: 0 0 0
  145.  Type:     0
  146.  Layer:    0
  147. End_Chunk
  148. Chunk: TexCoords
  149.  Number: 1
  150.  Mode:   0
  151.  SubChunk
  152.   Facet:     4
  153.   ImageRef:  1
  154.   PixScale:  0
  155.   NumCoords: 4
  156.     0.00000 0.00000
  157.     0.00000 1.00000
  158.     1.00000 1.00000
  159.     1.00000 0.00000
  160. End_Chunk
  161. Chunk: Colours
  162.  Number: 6
  163.  0x77 0x00 0x77 0x76 0x75 0x75
  164. End_Chunk
  165.  
  166. Chunk: ImageRef
  167.  Number: 1
  168.  Index: 1 Image: 2
  169. End_Chunk
  170. ;
  171. ;-------Object   87-------------------------------------------------------
  172. Chunk: Standard
  173.  Name:     "floor[87]"
  174.  Number:   87
  175.  Size:     72000 0 73000
  176.  Position: 0 0 0
  177.  Type:     0
  178.  Layer:    0
  179. End_Chunk
  180. Chunk: TexCoords
  181.  Number: 1
  182.  Mode:   0
  183.  SubChunk
  184.   Facet:     5
  185.   ImageRef:  1
  186.   PixScale:  0
  187.   NumCoords: 4
  188.     0.00000 0.00000
  189.     0.00000 1.00000
  190.     1.00000 1.00000
  191.     1.00000 0.00000
  192. End_Chunk
  193.  
  194. Chunk: ImageRef
  195.  Number: 1
  196.  Index: 1 Image: 12
  197. End_Chunk
  198. ;
  199. ;-------Object   83-------------------------------------------------------
  200. Chunk: Standard
  201.  Name:     "floor[83]"
  202.  Number:   83
  203.  Size:     72000 31000 0
  204.  Position: 0 0 73000
  205.  Type:     0
  206.  Layer:    0
  207.  DFlags:   E
  208. End_Chunk
  209. Chunk: TexCoords
  210.  Number: 1
  211.  Mode:   0
  212.  SubChunk
  213.   Facet:     2
  214.   ImageRef:  1
  215.   PixScale:  0
  216.   NumCoords: 4
  217.     0.00000 0.00000
  218.     0.00000 1.00000
  219.     1.00000 1.00000
  220.     1.00000 0.00000
  221. End_Chunk
  222. Chunk: Colours
  223.  Number: 6
  224.  0x77 0x00 0x77 0x00 0x75 0x75
  225. End_Chunk
  226.  
  227. Chunk: ImageRef
  228.  Number: 1
  229.  Index: 1 Image: 10
  230. End_Chunk
  231.  
  232. Children:
  233. ;
  234. ;-------Object    5-------------------------------------------------------
  235. Chunk: Standard
  236.  Name:     "floor[5]"
  237.  Number:   5
  238.  Size:     33000 2000 0
  239.  Position: 4000 29000 0
  240.  Type:     65535
  241.  Layer:    0
  242. End_Chunk
  243. ;
  244. ;-------Object    4-------------------------------------------------------
  245. Chunk: Standard
  246.  Name:     "floor[4]"
  247.  Number:   4
  248.  Size:     33000 4000 0
  249.  Position: 4000 0 0
  250.  Type:     65535
  251.  Layer:    0
  252. End_Chunk
  253.  
  254. End_Children
  255. ;
  256. ;-------Object   86-------------------------------------------------------
  257. Chunk: Standard
  258.  Name:     "floor[86]"
  259.  Number:   86
  260.  Size:     0 31000 73000
  261.  Position: 72000 0 0
  262.  Type:     0
  263.  Layer:    0
  264. End_Chunk
  265. Chunk: TexCoords
  266.  Number: 1
  267.  Mode:   0
  268.  SubChunk
  269.   Facet:     1
  270.   ImageRef:  1
  271.   PixScale:  0
  272.   NumCoords: 4
  273.     0.00000 0.00000
  274.     0.00000 1.00000
  275.     1.00000 1.00000
  276.     1.00000 0.00000
  277. End_Chunk
  278. Chunk: Colours
  279.  Number: 6
  280.  0x77 0x76 0x00 0x76 0x75 0x75
  281. End_Chunk
  282.  
  283. Chunk: ImageRef
  284.  Number: 1
  285.  Index: 1 Image: 11
  286. End_Chunk
  287. ;
  288. ;-------Object   89-------------------------------------------------------
  289. Chunk: Standard
  290.  Name:     "floor[89]"
  291.  Number:   89
  292.  Size:     72000 0 73000
  293.  Position: 0 31000 0
  294.  Type:     0
  295.  Layer:    0
  296. End_Chunk
  297. Chunk: Colours
  298.  Number: 6
  299.  0x77 0x76 0x77 0x76 0x00 0x13
  300. End_Chunk
  301.  
  302. Chunk: ImageRef
  303.  Number: 1
  304.  Index: 1 Image: 13
  305. End_Chunk
  306. ;
  307. ;-------Object   99-------------------------------------------------------
  308. Chunk: Standard
  309.  Name:     "floor[99]"
  310.  Number:   99
  311.  Size:     33000 26000 8500
  312.  Position: 4000 4000 64500
  313.  Type:     65535
  314.  Layer:    0
  315.  DFlags:   E
  316. End_Chunk
  317. Chunk: SCL
  318. short  Dir=-10;
  319.  
  320.  
  321.  
  322. resume (1, 2);
  323.  
  324. if (activate (#100, 0) || activate (#101, 0) || activate (#125, 
  325.  
  326.     0) || activate (#131, 0))
  327.  
  328. {
  329.  
  330.   repeat (9)
  331.  
  332.   {
  333.  
  334.     yrot (#102)-=Dir;
  335.  
  336.     yrot (#101)+=Dir*2;
  337.  
  338.     yrot (#105)+=Dir;
  339.  
  340.     yrot (#125)-=Dir*2;
  341.  
  342.     waitf;
  343.  
  344.   }
  345.  
  346.   Dir=Dir*-1;
  347.  
  348.   clrtrig (#100, 0);
  349.  
  350.   clrtrig (#101, 0);
  351.  
  352.   clrtrig (#125, 0);
  353.  
  354.   clrtrig (#131, 0);
  355.  
  356. }
  357. end
  358. End_Chunk
  359.  
  360. Children:
  361. ;
  362. ;-------Object  102-------------------------------------------------------
  363. Chunk: Standard
  364.  Name:     "floor[102]"
  365.  Number:   102
  366.  Size:     16500 26000 500
  367.  Position: 0 0 8000
  368.  Type:     65535
  369.  Layer:    0
  370. End_Chunk
  371. Chunk: Rotations
  372.  Initial: 0x0000 0x0000 0x0000
  373.  Centre:  0 13000 500
  374. End_Chunk
  375.  
  376. Children:
  377. ;
  378. ;-------Object  100-------------------------------------------------------
  379. Chunk: Standard
  380.  Name:     "floor[100]"
  381.  Number:   100
  382.  Size:     8250 26000 500
  383.  Position: 0 0 0
  384.  Type:     0
  385.  Layer:    0
  386. End_Chunk
  387. Chunk: TexCoords
  388.  Number: 2
  389.  Mode:   0
  390.  SubChunk
  391.   Facet:     2
  392.   ImageRef:  1
  393.   PixScale:  0
  394.   NumCoords: 4
  395.     0.00000 0.00000
  396.     0.00000 1.00000
  397.     1.00000 1.00000
  398.     1.00000 0.00000
  399.  SubChunk
  400.   Facet:     4
  401.   ImageRef:  1
  402.   PixScale:  0
  403.   NumCoords: 4
  404.     0.00000 0.00000
  405.     0.00000 1.00000
  406.     1.00000 1.00000
  407.     1.00000 0.00000
  408. End_Chunk
  409. Chunk: Colours
  410.  Number: 6
  411.  0x10 0x76 0x3C 0x76 0x10 0x10
  412. End_Chunk
  413.  
  414. Chunk: ImageRef
  415.  Number: 1
  416.  Index: 1 Image: 14
  417. End_Chunk
  418. ;
  419. ;-------Object  101-------------------------------------------------------
  420. Chunk: Standard
  421.  Name:     "floor[101]"
  422.  Number:   101
  423.  Size:     8250 26000 500
  424.  Position: 8250 0 0
  425.  Type:     0
  426.  Layer:    0
  427.  DFlags:   r
  428. End_Chunk
  429. Chunk: TexCoords
  430.  Number: 2
  431.  Mode:   0
  432.  SubChunk
  433.   Facet:     2
  434.   ImageRef:  1
  435.   PixScale:  0
  436.   NumCoords: 4
  437.     0.00000 0.00000
  438.     0.00000 1.00000
  439.     1.00000 1.00000
  440.     1.00000 0.00000
  441.  SubChunk
  442.   Facet:     4
  443.   ImageRef:  1
  444.   PixScale:  0
  445.   NumCoords: 4
  446.     0.00000 0.00000
  447.     0.00000 1.00000
  448.     1.00000 1.00000
  449.     1.00000 0.00000
  450. End_Chunk
  451. Chunk: Rotations
  452.  Initial: 0x0000 0x0000 0x0000
  453.  Centre:  0 13000 500
  454. End_Chunk
  455. Chunk: Colours
  456.  Number: 6
  457.  0x3B 0x76 0x10 0x76 0x10 0x10
  458. End_Chunk
  459.  
  460. Chunk: ImageRef
  461.  Number: 1
  462.  Index: 1 Image: 14
  463. End_Chunk
  464.  
  465. End_Children
  466. ;
  467. ;-------Object  105-------------------------------------------------------
  468. Chunk: Standard
  469.  Name:     "floor[105]"
  470.  Number:   105
  471.  Size:     16500 26000 500
  472.  Position: 16500 0 8000
  473.  Type:     65535
  474.  Layer:    0
  475. End_Chunk
  476. Chunk: Rotations
  477.  Initial: 0x0000 0x0000 0x0000
  478.  Centre:  16500 13000 500
  479. End_Chunk
  480.  
  481. Children:
  482. ;
  483. ;-------Object  125-------------------------------------------------------
  484. Chunk: Standard
  485.  Name:     "floor[125]"
  486.  Number:   125
  487.  Size:     8250 26000 500
  488.  Position: 0 0 0
  489.  Type:     0
  490.  Layer:    0
  491.  DFlags:   r
  492. End_Chunk
  493. Chunk: TexCoords
  494.  Number: 2
  495.  Mode:   0
  496.  SubChunk
  497.   Facet:     2
  498.   ImageRef:  1
  499.   PixScale:  0
  500.   NumCoords: 4
  501.     0.00000 0.00000
  502.     0.00000 1.00000
  503.     1.00000 1.00000
  504.     1.00000 0.00000
  505.  SubChunk
  506.   Facet:     4
  507.   ImageRef:  1
  508.   PixScale:  0
  509.   NumCoords: 4
  510.     0.00000 0.00000
  511.     0.00000 1.00000
  512.     1.00000 1.00000
  513.     1.00000 0.00000
  514. End_Chunk
  515. Chunk: Rotations
  516.  Initial: 0x0000 0x0000 0x0000
  517.  Centre:  8250 13000 500
  518. End_Chunk
  519. Chunk: Colours
  520.  Number: 6
  521.  0x10 0x76 0x3B 0x76 0x10 0x10
  522. End_Chunk
  523.  
  524. Chunk: ImageRef
  525.  Number: 1
  526.  Index: 1 Image: 14
  527. End_Chunk
  528. ;
  529. ;-------Object  131-------------------------------------------------------
  530. Chunk: Standard
  531.  Name:     "floor[131]"
  532.  Number:   131
  533.  Size:     8250 26000 500
  534.  Position: 8250 0 0
  535.  Type:     0
  536.  Layer:    0
  537.  DFlags:   r
  538. End_Chunk
  539. Chunk: TexCoords
  540.  Number: 2
  541.  Mode:   0
  542.  SubChunk
  543.   Facet:     2
  544.   ImageRef:  1
  545.   PixScale:  0
  546.   NumCoords: 4
  547.     0.00000 0.00000
  548.     0.00000 1.00000
  549.     1.00000 1.00000
  550.     1.00000 0.00000
  551.  SubChunk
  552.   Facet:     4
  553.   ImageRef:  1
  554.   PixScale:  0
  555.   NumCoords: 4
  556.     0.00000 0.00000
  557.     0.00000 1.00000
  558.     1.00000 1.00000
  559.     1.00000 0.00000
  560. End_Chunk
  561. Chunk: Rotations
  562.  Initial: 0x0000 0x0000 0x0000
  563.  Centre:  4125 13000 250
  564. End_Chunk
  565. Chunk: Colours
  566.  Number: 6
  567.  0x3C 0x76 0x10 0x76 0x10 0x10
  568. End_Chunk
  569.  
  570. Chunk: ImageRef
  571.  Number: 1
  572.  Index: 1 Image: 14
  573. End_Chunk
  574.  
  575. End_Children
  576.  
  577. End_Children
  578. ;
  579. ;-------Object   90-------------------------------------------------------
  580. Chunk: Standard
  581.  Name:     "bed[90]"
  582.  Number:   90
  583.  Size:     26000 28000 33800
  584.  Position: 17000 0 0
  585.  Type:     65535
  586.  Layer:    0
  587.  DFlags:   E
  588. End_Chunk
  589.  
  590. Children:
  591. ;
  592. ;-------Object  104-------------------------------------------------------
  593. Chunk: Standard
  594.  Name:     "bed[104]"
  595.  Number:   104
  596.  Size:     24000 5000 30309
  597.  Position: 1000 2000 1745
  598.  Type:     0
  599.  Layer:    0
  600. End_Chunk
  601. Chunk: TexCoords
  602.  Number: 3
  603.  Mode:   0
  604.  SubChunk
  605.   Facet:     5
  606.   ImageRef:  1
  607.   PixScale:  0
  608.   NumCoords: 4
  609.     0.00000 0.00000
  610.     0.00000 1.00000
  611.     1.00000 1.00000
  612.     1.00000 0.00000
  613.  SubChunk
  614.   Facet:     3
  615.   ImageRef:  2
  616.   PixScale:  0
  617.   NumCoords: 4
  618.     0.00000 0.00000
  619.     0.00000 1.00000
  620.     1.00000 1.00000
  621.     1.00000 0.00000
  622.  SubChunk
  623.   Facet:     1
  624.   ImageRef:  2
  625.   PixScale:  0
  626.   NumCoords: 4
  627.     0.00000 0.00000
  628.     0.00000 1.00000
  629.     -1.00000 1.00000
  630.     -1.00000 0.00000
  631. End_Chunk
  632. Chunk: SCL
  633. long   STATS[8];
  634.  
  635. short  TEMP, LOWEST, MOOD;
  636.  
  637.  
  638.  
  639. resume (1, 4);
  640.  
  641. if (activate (me, 0))
  642.  
  643. {
  644.  
  645.   statsGet (&STATS);
  646.  
  647.   repeat (5)
  648.  
  649.   {
  650.  
  651.     TEMP=5+-inloop;
  652.  
  653.     repeat (5)
  654.  
  655.     {
  656.  
  657.       if (STATS[TEMP]<STATS[inloop-1] && 
  658.  
  659.           STATS[TEMP]<STATS[LOWEST])
  660.  
  661.         LOWEST=TEMP;
  662.  
  663.     }
  664.  
  665.   }
  666.  
  667.   MOOD=STATS[LOWEST]/100;
  668.  
  669.   MOOD=table (MOOD) {0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4};
  670.  
  671.   if (MOOD>3)
  672.  
  673.   {
  674.  
  675.     counter (26)=table (random (7)) {52, 53, 94, 171, 172, 173, 
  676.  
  677.         174};
  678.  
  679.     if (!vis? (#120))
  680.  
  681.     {
  682.  
  683.       if (vis? (#11))
  684.  
  685.       {
  686.  
  687.         invis (#11);
  688.  
  689.         kill (#11);
  690.  
  691.         counter (22)=284;
  692.  
  693.         waitf;
  694.  
  695.         vis (#127);
  696.  
  697.       }
  698.  
  699.       switch (random (5));
  700.  
  701.       case 0: 
  702.  
  703.       {
  704.  
  705.         repeat (9)
  706.  
  707.         {
  708.  
  709.           counter (22)=table (inloop-1) {29, 28, 27, 25, 24, 
  710.  
  711.               290, 291, 292, 284};
  712.  
  713.           waitfs (5);
  714.  
  715.         }
  716.  
  717.       }
  718.  
  719.       case 1: 
  720.  
  721.       {
  722.  
  723.         repeat (5)
  724.  
  725.         {
  726.  
  727.           counter (22)=table (inloop-1) {39, 48, 47, 46, 45};
  728.  
  729.           waitfs (5);
  730.  
  731.         }
  732.  
  733.       }
  734.  
  735.       case 2: 
  736.  
  737.       {
  738.  
  739.         repeat (6)
  740.  
  741.         {
  742.  
  743.           counter (22)=table (inloop-1) {35, 34, 41, 42, 43, 
  744.  
  745.               44};
  746.  
  747.           waitfs (5);
  748.  
  749.         }
  750.  
  751.       }
  752.  
  753.       case 3: 
  754.  
  755.       {
  756.  
  757.         repeat (6)
  758.  
  759.         {
  760.  
  761.           counter (22)=table (inloop-1) {45, 40, 39, 38, 37, 
  762.  
  763.               36};
  764.  
  765.           waitfs (5);
  766.  
  767.         }
  768.  
  769.       }
  770.  
  771.       case 4: 
  772.  
  773.       {
  774.  
  775.         repeat (4)
  776.  
  777.         {
  778.  
  779.           counter (22)=table (inloop-1) {33, 32, 31, 30};
  780.  
  781.           waitfs (5);
  782.  
  783.         }
  784.  
  785.       }
  786.  
  787.     }
  788.  
  789.   }
  790.  
  791.   else
  792.  
  793.     counter (26)=table (random (3)) {92, 25, 26};
  794.  
  795.   clrtrig (me, 0);
  796.  
  797. }
  798. end
  799. End_Chunk
  800. Chunk: Colours
  801.  Number: 6
  802.  0x77 0x76 0x77 0x76 0x75 0x10
  803. End_Chunk
  804.  
  805. Chunk: ImageRef
  806.  Number: 2
  807.  Index: 1 Image: 15
  808.  Index: 2 Image: 18
  809. End_Chunk
  810. ;
  811. ;-------Object  122-------------------------------------------------------
  812. Chunk: Standard
  813.  Name:     "bed[122]"
  814.  Number:   122
  815.  Size:     26000 11000 1745
  816.  Position: 0 0 32054
  817.  Type:     65535
  818.  Layer:    0
  819. End_Chunk
  820. Chunk: Colours
  821.  Number: 16
  822.  0x02 0x02 0x02 0x02 0x08 0x08 0x08 0x08 0x08 0x08 0x08 0x08 0x08 0x08 0x08 0x08
  823. End_Chunk
  824.  
  825. Chunk: ImageRef
  826.  Number: 2
  827.  Index: 1 Image: 22
  828.  Index: 2 Image: 17
  829. End_Chunk
  830. Chunk: Textures
  831.  Number: 4
  832.  SubChunk
  833.   Facet:    4
  834.   ImageRef: 1
  835.   Scale:    256 256
  836.   Offset:   0 0
  837.   PixScale: 0
  838.  SubChunk
  839.   Facet:    2
  840.   ImageRef: 1
  841.   Scale:    256 256
  842.   Offset:   0 0
  843.   PixScale: 0
  844.  SubChunk
  845.   Facet:    3
  846.   ImageRef: 2
  847.   Scale:    256 256
  848.   Offset:   0 0
  849.   PixScale: 0
  850.  SubChunk
  851.   Facet:    1
  852.   ImageRef: 2
  853.   Scale:    -256 256
  854.   Offset:   0 0
  855.   PixScale: 0
  856. End_Chunk
  857.  
  858. Children:
  859. ;
  860. ;-------Object   84-------------------------------------------------------
  861. Chunk: Standard
  862.  Name:     "bed[84]"
  863.  Number:   84
  864.  Size:     26000 9000 1745
  865.  Position: 0 0 0
  866.  Type:     0
  867.  Layer:    0
  868. End_Chunk
  869. Chunk: TexCoords
  870.  Number: 4
  871.  Mode:   0
  872.  SubChunk
  873.   Facet:     4
  874.   ImageRef:  1
  875.   PixScale:  0
  876.   NumCoords: 4
  877.     0.00000 0.00000
  878.     0.00000 1.00000
  879.     1.00000 1.00000
  880.     1.00000 0.00000
  881.  SubChunk
  882.   Facet:     2
  883.   ImageRef:  1
  884.   PixScale:  0
  885.   NumCoords: 4
  886.     0.00000 0.00000
  887.     0.00000 1.00000
  888.     1.00000 1.00000
  889.     1.00000 0.00000
  890.  SubChunk
  891.   Facet:     3
  892.   ImageRef:  2
  893.   PixScale:  0
  894.   NumCoords: 4
  895.     0.00000 0.00000
  896.     0.00000 1.00000
  897.     1.00000 1.00000
  898.     1.00000 0.00000
  899.  SubChunk
  900.   Facet:     1
  901.   ImageRef:  2
  902.   PixScale:  0
  903.   NumCoords: 4
  904.     0.00000 0.00000
  905.     0.00000 1.00000
  906.     -1.00000 1.00000
  907.     -1.00000 0.00000
  908. End_Chunk
  909. Chunk: Colours
  910.  Number: 6
  911.  0x77 0x76 0x77 0x76 0x17 0x75
  912. End_Chunk
  913.  
  914. Chunk: ImageRef
  915.  Number: 2
  916.  Index: 1 Image: 22
  917.  Index: 2 Image: 17
  918. End_Chunk
  919.  
  920. End_Children
  921. ;
  922. ;-------Object  107-------------------------------------------------------
  923. Chunk: Standard
  924.  Name:     "bed[107]"
  925.  Number:   107
  926.  Size:     26000 4000 33800
  927.  Position: 0 24000 0
  928.  Type:     25
  929.  Layer:    0
  930. End_Chunk
  931. Chunk: TexCoords
  932.  Number: 10
  933.  Mode:   0
  934.  SubChunk
  935.   Facet:     5
  936.   ImageRef:  1
  937.   PixScale:  0
  938.   NumCoords: 4
  939.     0.00000 0.00000
  940.     0.00000 1.00000
  941.     1.00000 1.00000
  942.     1.00000 0.00000
  943.  SubChunk
  944.   Facet:     6
  945.   ImageRef:  1
  946.   PixScale:  0
  947.   NumCoords: 4
  948.     0.00000 0.00000
  949.     0.00000 1.00000
  950.     1.00000 1.00000
  951.     1.00000 0.00000
  952.  SubChunk
  953.   Facet:     3
  954.   ImageRef:  2
  955.   PixScale:  0
  956.   NumCoords: 4
  957.     0.00000 0.00000
  958.     0.00000 1.00000
  959.     1.00000 1.00000
  960.     1.00000 0.00000
  961.  SubChunk
  962.   Facet:     10
  963.   ImageRef:  2
  964.   PixScale:  0
  965.   NumCoords: 4
  966.     0.00000 0.00000
  967.     0.00000 1.00000
  968.     1.00000 1.00000
  969.     1.00000 0.00000
  970.  SubChunk
  971.   Facet:     8
  972.   ImageRef:  2
  973.   PixScale:  0
  974.   NumCoords: 4
  975.     0.00000 0.00000
  976.     0.00000 1.00000
  977.     1.00000 1.00000
  978.     1.00000 0.00000
  979.  SubChunk
  980.   Facet:     1
  981.   ImageRef:  2
  982.   PixScale:  0
  983.   NumCoords: 4
  984.     0.00000 0.00000
  985.     0.00000 1.00000
  986.     -1.00000 1.00000
  987.     -1.00000 0.00000
  988.  SubChunk
  989.   Facet:     4
  990.   ImageRef:  3
  991.   PixScale:  0
  992.   NumCoords: 4
  993.     0.00000 0.00000
  994.     0.00000 1.00000
  995.     -1.00000 1.00000
  996.     -1.00000 0.00000
  997.  SubChunk
  998.   Facet:     7
  999.   ImageRef:  3
  1000.   PixScale:  0
  1001.   NumCoords: 4
  1002.     0.00000 0.00000
  1003.     0.00000 1.00000
  1004.     -1.00000 1.00000
  1005.     -1.00000 0.00000
  1006.  SubChunk
  1007.   Facet:     9
  1008.   ImageRef:  3
  1009.   PixScale:  0
  1010.   NumCoords: 4
  1011.     0.00000 0.00000
  1012.     0.00000 1.00000
  1013.     -1.00000 1.00000
  1014.     -1.00000 0.00000
  1015.  SubChunk
  1016.   Facet:     2
  1017.   ImageRef:  3
  1018.   PixScale:  0
  1019.   NumCoords: 4
  1020.     0.00000 0.00000
  1021.     0.00000 1.00000
  1022.     -1.00000 1.00000
  1023.     -1.00000 0.00000
  1024. End_Chunk
  1025.  
  1026. Chunk: ImageRef
  1027.  Number: 3
  1028.  Index: 1 Image: 19
  1029.  Index: 2 Image: 20
  1030.  Index: 3 Image: 21
  1031. End_Chunk
  1032. ;
  1033. ;-------Object  106-------------------------------------------------------
  1034. Chunk: Standard
  1035.  Name:     "bed[106]"
  1036.  Number:   106
  1037.  Size:     1000 15000 0
  1038.  Position: 24500 9000 32973
  1039.  Type:     26
  1040.  Layer:    0
  1041.  DFlags:   r
  1042. End_Chunk
  1043. Chunk: TexCoords
  1044.  Number: 2
  1045.  Mode:   0
  1046.  SubChunk
  1047.   Facet:     1
  1048.   ImageRef:  1
  1049.   PixScale:  0
  1050.   NumCoords: 4
  1051.     0.00000 0.00000
  1052.     0.00000 1.00000
  1053.     1.00000 1.00000
  1054.     1.00000 0.00000
  1055.  SubChunk
  1056.   Facet:     1
  1057.   ImageRef:  2
  1058.   PixScale:  0
  1059.   NumCoords: 4
  1060.     0.00000 0.00000
  1061.     0.00000 1.00000
  1062.     -1.00000 1.00000
  1063.     -1.00000 0.00000
  1064. End_Chunk
  1065. Chunk: Rotations
  1066.  Initial: 0x0000 0x0000 0x0000
  1067.  Centre:  500 7500 0
  1068. End_Chunk
  1069. Chunk: SCL
  1070. yrot (me)=359-yvroff+yrot (object (vattach));
  1071.  
  1072.  
  1073. end
  1074. End_Chunk
  1075. Chunk: Colours
  1076.  Number: 1
  1077.  0x20
  1078. End_Chunk
  1079.  
  1080. Chunk: ImageRef
  1081.  Number: 2
  1082.  Index: 1 Image: 5
  1083.  Index: 2 Image: 17
  1084. End_Chunk
  1085. ;
  1086. ;-------Object   85-------------------------------------------------------
  1087. Chunk: Standard
  1088.  Name:     "bed[85]"
  1089.  Number:   85
  1090.  Size:     26000 9000 1745
  1091.  Position: 0 0 0
  1092.  Type:     0
  1093.  Layer:    0
  1094. End_Chunk
  1095. Chunk: TexCoords
  1096.  Number: 4
  1097.  Mode:   0
  1098.  SubChunk
  1099.   Facet:     4
  1100.   ImageRef:  1
  1101.   PixScale:  0
  1102.   NumCoords: 4
  1103.     0.00000 0.00000
  1104.     0.00000 1.00000
  1105.     1.00000 1.00000
  1106.     1.00000 0.00000
  1107.  SubChunk
  1108.   Facet:     2
  1109.   ImageRef:  1
  1110.   PixScale:  0
  1111.   NumCoords: 4
  1112.     0.00000 0.00000
  1113.     0.00000 1.00000
  1114.     1.00000 1.00000
  1115.     1.00000 0.00000
  1116.  SubChunk
  1117.   Facet:     3
  1118.   ImageRef:  2
  1119.   PixScale:  0
  1120.   NumCoords: 4
  1121.     0.00000 0.00000
  1122.     0.00000 1.00000
  1123.     1.00000 1.00000
  1124.     1.00000 0.00000
  1125.  SubChunk
  1126.   Facet:     1
  1127.   ImageRef:  2
  1128.   PixScale:  0
  1129.   NumCoords: 4
  1130.     0.00000 0.00000
  1131.     0.00000 1.00000
  1132.     -1.00000 1.00000
  1133.     -1.00000 0.00000
  1134. End_Chunk
  1135. Chunk: Colours
  1136.  Number: 6
  1137.  0x77 0x76 0x77 0x76 0x17 0x75
  1138. End_Chunk
  1139.  
  1140. Chunk: ImageRef
  1141.  Number: 2
  1142.  Index: 1 Image: 22
  1143.  Index: 2 Image: 17
  1144. End_Chunk
  1145. ;
  1146. ;-------Object  108-------------------------------------------------------
  1147. Chunk: Standard
  1148.  Name:     "bed[108]"
  1149.  Number:   108
  1150.  Size:     1000 15000 0
  1151.  Position: 24500 9000 918
  1152.  Type:     26
  1153.  Layer:    0
  1154.  DFlags:   r
  1155. End_Chunk
  1156. Chunk: TexCoords
  1157.  Number: 2
  1158.  Mode:   0
  1159.  SubChunk
  1160.   Facet:     1
  1161.   ImageRef:  1
  1162.   PixScale:  0
  1163.   NumCoords: 4
  1164.     0.00000 0.00000
  1165.     0.00000 1.00000
  1166.     1.00000 1.00000
  1167.     1.00000 0.00000
  1168.  SubChunk
  1169.   Facet:     1
  1170.   ImageRef:  2
  1171.   PixScale:  0
  1172.   NumCoords: 4
  1173.     0.00000 0.00000
  1174.     0.00000 1.00000
  1175.     -1.00000 1.00000
  1176.     -1.00000 0.00000
  1177. End_Chunk
  1178. Chunk: Rotations
  1179.  Initial: 0x0000 0x0000 0x0000
  1180.  Centre:  500 7500 0
  1181. End_Chunk
  1182. Chunk: SCL
  1183. yrot (me)=359-yvroff+yrot (object (vattach));
  1184.  
  1185.  
  1186. end
  1187. End_Chunk
  1188. Chunk: Colours
  1189.  Number: 1
  1190.  0x20
  1191. End_Chunk
  1192.  
  1193. Chunk: ImageRef
  1194.  Number: 2
  1195.  Index: 1 Image: 5
  1196.  Index: 2 Image: 17
  1197. End_Chunk
  1198. ;
  1199. ;-------Object  123-------------------------------------------------------
  1200. Chunk: Standard
  1201.  Name:     "bed[123]"
  1202.  Number:   123
  1203.  Size:     1000 15000 0
  1204.  Position: 500 9000 918
  1205.  Type:     26
  1206.  Layer:    0
  1207.  DFlags:   r
  1208. End_Chunk
  1209. Chunk: TexCoords
  1210.  Number: 2
  1211.  Mode:   0
  1212.  SubChunk
  1213.   Facet:     1
  1214.   ImageRef:  1
  1215.   PixScale:  0
  1216.   NumCoords: 4
  1217.     0.00000 0.00000
  1218.     0.00000 1.00000
  1219.     1.00000 1.00000
  1220.     1.00000 0.00000
  1221.  SubChunk
  1222.   Facet:     1
  1223.   ImageRef:  2
  1224.   PixScale:  0
  1225.   NumCoords: 4
  1226.     0.00000 0.00000
  1227.     0.00000 1.00000
  1228.     -1.00000 1.00000
  1229.     -1.00000 0.00000
  1230. End_Chunk
  1231. Chunk: Rotations
  1232.  Initial: 0x0000 0x0000 0x0000
  1233.  Centre:  500 7500 0
  1234. End_Chunk
  1235. Chunk: SCL
  1236. yrot (me)=359-yvroff+yrot (object (vattach));
  1237.  
  1238.  
  1239. end
  1240. End_Chunk
  1241. Chunk: Colours
  1242.  Number: 1
  1243.  0x20
  1244. End_Chunk
  1245.  
  1246. Chunk: ImageRef
  1247.  Number: 2
  1248.  Index: 1 Image: 5
  1249.  Index: 2 Image: 17
  1250. End_Chunk
  1251. ;
  1252. ;-------Object  124-------------------------------------------------------
  1253. Chunk: Standard
  1254.  Name:     "bed[124]"
  1255.  Number:   124
  1256.  Size:     1000 15000 0
  1257.  Position: 500 9000 33065
  1258.  Type:     26
  1259.  Layer:    0
  1260.  DFlags:   r
  1261. End_Chunk
  1262. Chunk: TexCoords
  1263.  Number: 2
  1264.  Mode:   0
  1265.  SubChunk
  1266.   Facet:     1
  1267.   ImageRef:  1
  1268.   PixScale:  0
  1269.   NumCoords: 4
  1270.     0.00000 0.00000
  1271.     0.00000 1.00000
  1272.     1.00000 1.00000
  1273.     1.00000 0.00000
  1274.  SubChunk
  1275.   Facet:     1
  1276.   ImageRef:  2
  1277.   PixScale:  0
  1278.   NumCoords: 4
  1279.     0.00000 0.00000
  1280.     0.00000 1.00000
  1281.     -1.00000 1.00000
  1282.     -1.00000 0.00000
  1283. End_Chunk
  1284. Chunk: Rotations
  1285.  Initial: 0x0000 0x0000 0x0000
  1286.  Centre:  500 7500 0
  1287. End_Chunk
  1288. Chunk: SCL
  1289. yrot (me)=359-yvroff+yrot (object (vattach));
  1290.  
  1291.  
  1292. end
  1293. End_Chunk
  1294. Chunk: Colours
  1295.  Number: 1
  1296.  0x20
  1297. End_Chunk
  1298.  
  1299. Chunk: ImageRef
  1300.  Number: 2
  1301.  Index: 1 Image: 5
  1302.  Index: 2 Image: 17
  1303. End_Chunk
  1304. ;
  1305. ;-------Object  103-------------------------------------------------------
  1306. Chunk: Standard
  1307.  Name:     "bed[103]"
  1308.  Number:   103
  1309.  Size:     22000 8000 0
  1310.  Position: 2000 9000 918
  1311.  Type:     0
  1312.  Layer:    0
  1313. End_Chunk
  1314. Chunk: TexCoords
  1315.  Number: 1
  1316.  Mode:   0
  1317.  SubChunk
  1318.   Facet:     4
  1319.   ImageRef:  1
  1320.   PixScale:  0
  1321.   NumCoords: 4
  1322.     0.00000 0.00000
  1323.     0.00000 1.00000
  1324.     1.00000 1.00000
  1325.     1.00000 0.00000
  1326. End_Chunk
  1327.  
  1328. Chunk: ImageRef
  1329.  Number: 1
  1330.  Index: 1 Image: 16
  1331. End_Chunk
  1332. ;
  1333. ;-------Object   29-------------------------------------------------------
  1334. Chunk: Standard
  1335.  Name:     "6"
  1336.  Number:   29
  1337.  Size:     1000 1000 1000
  1338.  Position: 13000 7000 17234
  1339.  Type:     65535
  1340.  Layer:    0
  1341.  DFlags:   E
  1342. End_Chunk
  1343. Chunk: SCL
  1344. long   nearMe;
  1345.  
  1346. objnum Choose;
  1347.  
  1348. short  theObj;
  1349.  
  1350.  
  1351.  
  1352. resume (2, 0);
  1353.  
  1354. if (#13.Follow==me)
  1355.  
  1356. {
  1357.  
  1358.   nearMe=mdist (me, #11);
  1359.  
  1360.   if (nearMe<14000)
  1361.  
  1362.   {
  1363.  
  1364.     #13.Go=0;
  1365.  
  1366.     waitfs (#13.Delay);
  1367.  
  1368.     theObj=table (random (2)) {#28, #27};
  1369.  
  1370.     Choose=object (theObj);
  1371.  
  1372.     #13.Follow=Choose;
  1373.  
  1374.     #13.Go=1;
  1375.  
  1376.   }
  1377.  
  1378. }
  1379. end
  1380. End_Chunk
  1381. ;
  1382. ;-------Object  120-------------------------------------------------------
  1383. Chunk: Standard
  1384.  Name:     "ill"
  1385.  Number:   120
  1386.  Size:     0 14360 17600
  1387.  Position: 12622 4000 11836
  1388.  Type:     31
  1389.  Layer:    0
  1390.  DFlags:   rE
  1391.  OFlags:   Ii
  1392. End_Chunk
  1393. Chunk: TexCoords
  1394.  Number: 1
  1395.  Mode:   0
  1396.  SubChunk
  1397.   Facet:     2
  1398.   ImageRef:  1
  1399.   PixScale:  0
  1400.   NumCoords: 4
  1401.     0.00000 0.00000
  1402.     0.00000 1.00000
  1403.     1.00000 1.00000
  1404.     1.00000 0.00000
  1405. End_Chunk
  1406.  
  1407. Chunk: ImageRef
  1408.  Number: 1
  1409.  Index: 1 Image: 44
  1410. End_Chunk
  1411. Chunk: InitPos
  1412.  Position: 12622 4000 11836
  1413. End_Chunk
  1414. Chunk: InitSize
  1415.  Size: 0 14360 17600
  1416. End_Chunk
  1417. Chunk: Rotations
  1418.  Initial: 0x0000 0x0000 0x0000
  1419.  Centre:  0 7180 8720
  1420. End_Chunk
  1421. Chunk: SCL
  1422. short  ROT, IMG, TEMP, NUM;
  1423.  
  1424. fixed  Y;
  1425.  
  1426. short  ROTS;
  1427.  
  1428.  
  1429.  
  1430. resume (2, 2);
  1431.  
  1432. yrot (me)=89-yvroff+yrot (object (vattach));
  1433.  
  1434. if (ROT)
  1435.  
  1436. {
  1437.  
  1438.   ROTS=ROT-44;
  1439.  
  1440.   NUM=table (ROTS) {20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 
  1441.  
  1442.       20, 20, 20, 20, 20, 20, 20};
  1443.  
  1444.   Y=angle (me, #8);
  1445.  
  1446.   IMG= ( (-Y+181)/ (360/NUM)+NUM/2-1)%NUM+1;
  1447.  
  1448.   if (IMG!=TEMP)
  1449.  
  1450.   {
  1451.  
  1452.     counter (20)=IMG;
  1453.  
  1454.     TEMP=IMG;
  1455.  
  1456.   }
  1457.  
  1458. }
  1459. end
  1460. End_Chunk
  1461. ;
  1462. ;-------Object  127-------------------------------------------------------
  1463. Chunk: Standard
  1464.  Name:     "bed"
  1465.  Number:   127
  1466.  Size:     0 14360 17600
  1467.  Position: 12622 4000 11836
  1468.  Type:     31
  1469.  Layer:    0
  1470.  DFlags:   rE
  1471.  OFlags:   Ii
  1472. End_Chunk
  1473. Chunk: TexCoords
  1474.  Number: 1
  1475.  Mode:   0
  1476.  SubChunk
  1477.   Facet:     2
  1478.   ImageRef:  1
  1479.   PixScale:  0
  1480.   NumCoords: 4
  1481.     0.00000 0.00000
  1482.     0.00000 1.00000
  1483.     1.00000 1.00000
  1484.     1.00000 0.00000
  1485. End_Chunk
  1486.  
  1487. Chunk: ImageRef
  1488.  Number: 1
  1489.  Index: 1 Image: 44
  1490. End_Chunk
  1491. Chunk: InitPos
  1492.  Position: 12622 4000 11836
  1493. End_Chunk
  1494. Chunk: InitSize
  1495.  Size: 0 14360 17600
  1496. End_Chunk
  1497. Chunk: Rotations
  1498.  Initial: 0x0000 0x0000 0x0000
  1499.  Centre:  0 7180 8200
  1500. End_Chunk
  1501. Chunk: SCL
  1502. short  ROT, IMG, TEMP, NUM;
  1503.  
  1504. fixed  Y;
  1505.  
  1506. short  ROTS;
  1507.  
  1508.  
  1509.  
  1510. resume (2, 2);
  1511.  
  1512. yrot (me)=89-yvroff+yrot (object (vattach));
  1513.  
  1514. if (ROT)
  1515.  
  1516. {
  1517.  
  1518.   ROTS=ROT-44;
  1519.  
  1520.   NUM=table (ROTS) {20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 
  1521.  
  1522.       20, 20, 20, 20, 20, 20, 20};
  1523.  
  1524.   Y=angle (me, #8);
  1525.  
  1526.   IMG= ( (-Y+181)/ (360/NUM)+NUM/2-1)%NUM+1;
  1527.  
  1528.   if (IMG!=TEMP)
  1529.  
  1530.   {
  1531.  
  1532.     counter (20)=IMG;
  1533.  
  1534.     TEMP=IMG;
  1535.  
  1536.   }
  1537.  
  1538. }
  1539.  
  1540. if (activate (me, 0))
  1541.  
  1542. {
  1543.  
  1544.   invis (me);
  1545.  
  1546.   unkill (#11);
  1547.  
  1548.   counter (22)=2;
  1549.  
  1550.   waitf;
  1551.  
  1552.   vis (#11);
  1553.  
  1554.   clrtrig (me, 0);
  1555.  
  1556. }
  1557. end
  1558. End_Chunk
  1559.  
  1560. End_Children
  1561. ;
  1562. ;-------Object  132-------------------------------------------------------
  1563. Chunk: Standard
  1564.  Name:     "floor[132]"
  1565.  Number:   132
  1566.  Size:     2000 3000 38000
  1567.  Position: 0 27000 20000
  1568.  Type:     0
  1569.  Layer:    0
  1570. End_Chunk
  1571. Chunk: TexCoords
  1572.  Number: 1
  1573.  Mode:   0
  1574.  SubChunk
  1575.   Facet:     3
  1576.   ImageRef:  1
  1577.   PixScale:  0
  1578.   NumCoords: 4
  1579.     0.00000 0.00000
  1580.     0.00000 1.00000
  1581.     1.00000 1.00000
  1582.     1.00000 0.00000
  1583. End_Chunk
  1584. Chunk: Colours
  1585.  Number: 6
  1586.  0x00 0x10 0x77 0x10 0xFF 0xFF
  1587. End_Chunk
  1588.  
  1589. Chunk: ImageRef
  1590.  Number: 1
  1591.  Index: 1 Image: 7
  1592. End_Chunk
  1593. ;
  1594. ;-------Object  128-------------------------------------------------------
  1595. Chunk: Standard
  1596.  Name:     "bed[128]"
  1597.  Number:   128
  1598.  Size:     12400 10000 15000
  1599.  Position: 2000 0 0
  1600.  Type:     65535
  1601.  Layer:    0
  1602.  DFlags:   E
  1603. End_Chunk
  1604.  
  1605. Children:
  1606. ;
  1607. ;-------Object  141-------------------------------------------------------
  1608. Chunk: Standard
  1609.  Name:     "bed[141]"
  1610.  Number:   141
  1611.  Size:     1400 6300 9000
  1612.  Position: 0 1500 0
  1613.  Type:     0
  1614.  Layer:    0
  1615. End_Chunk
  1616. Chunk: TexCoords
  1617.  Number: 1
  1618.  Mode:   0
  1619.  SubChunk
  1620.   Facet:     4
  1621.   ImageRef:  1
  1622.   PixScale:  0
  1623.   NumCoords: 4
  1624.     0.00000 0.00000
  1625.     0.00000 1.00000
  1626.     1.00000 1.00000
  1627.     1.00000 0.00000
  1628. End_Chunk
  1629. Chunk: Colours
  1630.  Number: 6
  1631.  0x00 0x76 0x00 0x76 0x00 0x00
  1632. End_Chunk
  1633.  
  1634. Chunk: ImageRef
  1635.  Number: 1
  1636.  Index: 1 Image: 30
  1637. End_Chunk
  1638. ;
  1639. ;-------Object  140-------------------------------------------------------
  1640. Chunk: Standard
  1641.  Name:     "bed[140]"
  1642.  Number:   140
  1643.  Size:     1400 6300 9000
  1644.  Position: 11000 1500 0
  1645.  Type:     0
  1646.  Layer:    0
  1647. End_Chunk
  1648. Chunk: TexCoords
  1649.  Number: 1
  1650.  Mode:   0
  1651.  SubChunk
  1652.   Facet:     4
  1653.   ImageRef:  1
  1654.   PixScale:  0
  1655.   NumCoords: 4
  1656.     0.00000 0.00000
  1657.     0.00000 1.00000
  1658.     1.00000 1.00000
  1659.     1.00000 0.00000
  1660. End_Chunk
  1661. Chunk: Colours
  1662.  Number: 6
  1663.  0x00 0x76 0x00 0x76 0x00 0x00
  1664. End_Chunk
  1665.  
  1666. Chunk: ImageRef
  1667.  Number: 1
  1668.  Index: 1 Image: 29
  1669. End_Chunk
  1670. ;
  1671. ;-------Object  109-------------------------------------------------------
  1672. Chunk: Standard
  1673.  Name:     "bed[109]"
  1674.  Number:   109
  1675.  Size:     0 10000 9000
  1676.  Position: 12400 0 0
  1677.  Type:     0
  1678.  Layer:    0
  1679. End_Chunk
  1680. Chunk: TexCoords
  1681.  Number: 1
  1682.  Mode:   0
  1683.  SubChunk
  1684.   Facet:     3
  1685.   ImageRef:  1
  1686.   PixScale:  0
  1687.   NumCoords: 4
  1688.     0.00000 0.00000
  1689.     0.00000 1.00000
  1690.     1.00000 1.00000
  1691.     1.00000 0.00000
  1692. End_Chunk
  1693. Chunk: Colours
  1694.  Number: 6
  1695.  0x00 0x00 0x47 0x00 0x00 0x00
  1696. End_Chunk
  1697.  
  1698. Chunk: ImageRef
  1699.  Number: 1
  1700.  Index: 1 Image: 9
  1701. End_Chunk
  1702. ;
  1703. ;-------Object  139-------------------------------------------------------
  1704. Chunk: Standard
  1705.  Name:     "bed[139]"
  1706.  Number:   139
  1707.  Size:     12400 2200 9000
  1708.  Position: 0 7800 0
  1709.  Type:     0
  1710.  Layer:    0
  1711. End_Chunk
  1712. Chunk: TexCoords
  1713.  Number: 2
  1714.  Mode:   0
  1715.  SubChunk
  1716.   Facet:     4
  1717.   ImageRef:  1
  1718.   PixScale:  0
  1719.   NumCoords: 4
  1720.     0.00000 0.00000
  1721.     0.00000 1.00000
  1722.     1.00000 1.00000
  1723.     1.00000 0.00000
  1724.  SubChunk
  1725.   Facet:     5
  1726.   ImageRef:  2
  1727.   PixScale:  0
  1728.   NumCoords: 4
  1729.     0.00000 0.00000
  1730.     0.00000 1.00000
  1731.     1.00000 1.00000
  1732.     1.00000 0.00000
  1733. End_Chunk
  1734. Chunk: Colours
  1735.  Number: 6
  1736.  0x00 0x76 0x00 0x76 0x75 0x75
  1737. End_Chunk
  1738.  
  1739. Chunk: ImageRef
  1740.  Number: 2
  1741.  Index: 1 Image: 27
  1742.  Index: 2 Image: 25
  1743. End_Chunk
  1744. ;
  1745. ;-------Object  138-------------------------------------------------------
  1746. Chunk: Standard
  1747.  Name:     "bed[138]"
  1748.  Number:   138
  1749.  Size:     12400 1500 9000
  1750.  Position: 0 0 0
  1751.  Type:     0
  1752.  Layer:    0
  1753. End_Chunk
  1754. Chunk: TexCoords
  1755.  Number: 1
  1756.  Mode:   0
  1757.  SubChunk
  1758.   Facet:     4
  1759.   ImageRef:  1
  1760.   PixScale:  0
  1761.   NumCoords: 4
  1762.     0.00000 0.00000
  1763.     0.00000 1.00000
  1764.     1.00000 1.00000
  1765.     1.00000 0.00000
  1766. End_Chunk
  1767. Chunk: Colours
  1768.  Number: 6
  1769.  0x00 0x76 0x00 0x76 0x00 0x75
  1770. End_Chunk
  1771.  
  1772. Chunk: ImageRef
  1773.  Number: 1
  1774.  Index: 1 Image: 28
  1775. End_Chunk
  1776. ;
  1777. ;-------Object  129-------------------------------------------------------
  1778. Chunk: Standard
  1779.  Name:     "bed[129]"
  1780.  Number:   129
  1781.  Size:     9600 900 9000
  1782.  Position: 1400 4200 0
  1783.  Type:     0
  1784.  Layer:    0
  1785. End_Chunk
  1786. Chunk: TexCoords
  1787.  Number: 1
  1788.  Mode:   0
  1789.  SubChunk
  1790.   Facet:     4
  1791.   ImageRef:  1
  1792.   PixScale:  0
  1793.   NumCoords: 4
  1794.     0.00000 0.00000
  1795.     0.00000 1.00000
  1796.     1.00000 1.00000
  1797.     1.00000 0.00000
  1798. End_Chunk
  1799. Chunk: Colours
  1800.  Number: 6
  1801.  0x00 0x76 0x00 0x76 0x00 0x75
  1802. End_Chunk
  1803.  
  1804. Chunk: ImageRef
  1805.  Number: 1
  1806.  Index: 1 Image: 31
  1807. End_Chunk
  1808. ;
  1809. ;-------Object  130-------------------------------------------------------
  1810. Chunk: Standard
  1811.  Name:     "bed[130]"
  1812.  Number:   130
  1813.  Size:     0 10000 9000
  1814.  Position: 0 0 0
  1815.  Type:     0
  1816.  Layer:    0
  1817. End_Chunk
  1818. Chunk: TexCoords
  1819.  Number: 1
  1820.  Mode:   0
  1821.  SubChunk
  1822.   Facet:     1
  1823.   ImageRef:  1
  1824.   PixScale:  0
  1825.   NumCoords: 4
  1826.     0.00000 0.00000
  1827.     0.00000 1.00000
  1828.     1.00000 1.00000
  1829.     1.00000 0.00000
  1830. End_Chunk
  1831. Chunk: Colours
  1832.  Number: 6
  1833.  0x47 0x00 0x47 0x00 0x00 0x00
  1834. End_Chunk
  1835.  
  1836. Chunk: ImageRef
  1837.  Number: 1
  1838.  Index: 1 Image: 9
  1839. End_Chunk
  1840. ;
  1841. ;-------Object  136-------------------------------------------------------
  1842. Chunk: Standard
  1843.  Name:     "bed[136]"
  1844.  Number:   136
  1845.  Size:     9600 2700 9000
  1846.  Position: 1400 5100 0
  1847.  Type:     27
  1848.  Layer:    0
  1849. End_Chunk
  1850. Chunk: TexCoords
  1851.  Number: 1
  1852.  Mode:   0
  1853.  SubChunk
  1854.   Facet:     2
  1855.   ImageRef:  1
  1856.   PixScale:  0
  1857.   NumCoords: 4
  1858.     0.00000 0.00000
  1859.     0.00000 1.00000
  1860.     1.00000 1.00000
  1861.     1.00000 0.00000
  1862. End_Chunk
  1863. Chunk: SCL
  1864. short  Dir=500;
  1865.  
  1866.  
  1867.  
  1868. resume (1, 2);
  1869.  
  1870. if (activate (me, 0))
  1871.  
  1872. {
  1873.  
  1874.   repeat (10)
  1875.  
  1876.   {
  1877.  
  1878.     zpos (me)+=Dir;
  1879.  
  1880.     waitf;
  1881.  
  1882.   }
  1883.  
  1884.   Dir=Dir*-1;
  1885.  
  1886.   clrtrig (me, 0);
  1887.  
  1888. }
  1889. end
  1890. End_Chunk
  1891. Chunk: InitPos
  1892.  Position: 1400 5100 0
  1893. End_Chunk
  1894. Chunk: Colours
  1895.  Number: 14
  1896.  0x77 0x76 0x77 0x76 0x20 0x75 0x21 0x22 0x23 0x24 0x10 0x10 0x10 0x10
  1897. End_Chunk
  1898.  
  1899. Chunk: ImageRef
  1900.  Number: 1
  1901.  Index: 1 Image: 26
  1902. End_Chunk
  1903. ;
  1904. ;-------Object  137-------------------------------------------------------
  1905. Chunk: Standard
  1906.  Name:     "bed[137]"
  1907.  Number:   137
  1908.  Size:     9600 2700 9000
  1909.  Position: 1400 1500 0
  1910.  Type:     27
  1911.  Layer:    0
  1912. End_Chunk
  1913. Chunk: TexCoords
  1914.  Number: 1
  1915.  Mode:   0
  1916.  SubChunk
  1917.   Facet:     2
  1918.   ImageRef:  1
  1919.   PixScale:  0
  1920.   NumCoords: 4
  1921.     0.00000 0.00000
  1922.     0.00000 1.00000
  1923.     1.00000 1.00000
  1924.     1.00000 0.00000
  1925. End_Chunk
  1926. Chunk: SCL
  1927. short  Dir=500;
  1928.  
  1929.  
  1930.  
  1931. resume (1, 2);
  1932.  
  1933. if (activate (me, 0))
  1934.  
  1935. {
  1936.  
  1937.   repeat (10)
  1938.  
  1939.   {
  1940.  
  1941.     zpos (me)+=Dir;
  1942.  
  1943.     waitf;
  1944.  
  1945.   }
  1946.  
  1947.   Dir=Dir*-1;
  1948.  
  1949.   clrtrig (me, 0);
  1950.  
  1951. }
  1952. end
  1953. End_Chunk
  1954. Chunk: InitPos
  1955.  Position: 1400 1500 0
  1956. End_Chunk
  1957. Chunk: Colours
  1958.  Number: 14
  1959.  0x77 0x76 0x77 0x76 0x20 0x75 0x21 0x22 0x23 0x24 0x10 0x10 0x10 0x10
  1960. End_Chunk
  1961.  
  1962. Chunk: ImageRef
  1963.  Number: 1
  1964.  Index: 1 Image: 26
  1965. End_Chunk
  1966.  
  1967. End_Children
  1968. ;
  1969. ;-------Object   94-------------------------------------------------------
  1970. Chunk: Standard
  1971.  Name:     "bed[94]"
  1972.  Number:   94
  1973.  Size:     23400 11000 15000
  1974.  Position: 48000 0 0
  1975.  Type:     65535
  1976.  Layer:    0
  1977.  DFlags:   E
  1978. End_Chunk
  1979.  
  1980. Children:
  1981. ;
  1982. ;-------Object  142-------------------------------------------------------
  1983. Chunk: Standard
  1984.  Name:     "bed[142]"
  1985.  Number:   142
  1986.  Size:     7400 11000 15000
  1987.  Position: 0 0 0
  1988.  Type:     65535
  1989.  Layer:    0
  1990.  DFlags:   E
  1991. End_Chunk
  1992.  
  1993. Children:
  1994. ;
  1995. ;-------Object  143-------------------------------------------------------
  1996. Chunk: Standard
  1997.  Name:     "bed[143]"
  1998.  Number:   143
  1999.  Size:     835 6930 9000
  2000.  Position: 0 1650 0
  2001.  Type:     0
  2002.  Layer:    0
  2003. End_Chunk
  2004. Chunk: TexCoords
  2005.  Number: 1
  2006.  Mode:   0
  2007.  SubChunk
  2008.   Facet:     4
  2009.   ImageRef:  1
  2010.   PixScale:  0
  2011.   NumCoords: 4
  2012.     0.00000 0.00000
  2013.     0.00000 1.00000
  2014.     1.00000 1.00000
  2015.     1.00000 0.00000
  2016. End_Chunk
  2017. Chunk: Colours
  2018.  Number: 6
  2019.  0x00 0x76 0x00 0x76 0x00 0x00
  2020. End_Chunk
  2021.  
  2022. Chunk: ImageRef
  2023.  Number: 1
  2024.  Index: 1 Image: 30
  2025. End_Chunk
  2026. ;
  2027. ;-------Object  144-------------------------------------------------------
  2028. Chunk: Standard
  2029.  Name:     "bed[144]"
  2030.  Number:   144
  2031.  Size:     835 6930 9000
  2032.  Position: 6564 1650 0
  2033.  Type:     0
  2034.  Layer:    0
  2035. End_Chunk
  2036. Chunk: TexCoords
  2037.  Number: 1
  2038.  Mode:   0
  2039.  SubChunk
  2040.   Facet:     4
  2041.   ImageRef:  1
  2042.   PixScale:  0
  2043.   NumCoords: 4
  2044.     0.00000 0.00000
  2045.     0.00000 1.00000
  2046.     1.00000 1.00000
  2047.     1.00000 0.00000
  2048. End_Chunk
  2049. Chunk: Colours
  2050.  Number: 6
  2051.  0x00 0x76 0x00 0x76 0x00 0x00
  2052. End_Chunk
  2053.  
  2054. Chunk: ImageRef
  2055.  Number: 1
  2056.  Index: 1 Image: 29
  2057. End_Chunk
  2058. ;
  2059. ;-------Object  145-------------------------------------------------------
  2060. Chunk: Standard
  2061.  Name:     "bed[145]"
  2062.  Number:   145
  2063.  Size:     0 11000 9000
  2064.  Position: 7400 0 0
  2065.  Type:     0
  2066.  Layer:    0
  2067. End_Chunk
  2068. Chunk: TexCoords
  2069.  Number: 1
  2070.  Mode:   0
  2071.  SubChunk
  2072.   Facet:     3
  2073.   ImageRef:  1
  2074.   PixScale:  0
  2075.   NumCoords: 4
  2076.     0.00000 0.00000
  2077.     0.00000 1.00000
  2078.     1.00000 1.00000
  2079.     1.00000 0.00000
  2080. End_Chunk
  2081. Chunk: Colours
  2082.  Number: 6
  2083.  0x00 0x00 0x47 0x00 0x00 0x00
  2084. End_Chunk
  2085.  
  2086. Chunk: ImageRef
  2087.  Number: 1
  2088.  Index: 1 Image: 9
  2089. End_Chunk
  2090. ;
  2091. ;-------Object  146-------------------------------------------------------
  2092. Chunk: Standard
  2093.  Name:     "bed[146]"
  2094.  Number:   146
  2095.  Size:     7400 2420 9000
  2096.  Position: 0 8580 0
  2097.  Type:     0
  2098.  Layer:    0
  2099. End_Chunk
  2100. Chunk: TexCoords
  2101.  Number: 1
  2102.  Mode:   0
  2103.  SubChunk
  2104.   Facet:     4
  2105.   ImageRef:  1
  2106.   PixScale:  0
  2107.   NumCoords: 4
  2108.     0.00000 0.00000
  2109.     0.00000 1.00000
  2110.     1.00000 1.00000
  2111.     1.00000 0.00000
  2112. End_Chunk
  2113. Chunk: Colours
  2114.  Number: 6
  2115.  0x00 0x76 0x00 0x76 0x00 0x75
  2116. End_Chunk
  2117.  
  2118. Chunk: ImageRef
  2119.  Number: 1
  2120.  Index: 1 Image: 27
  2121. End_Chunk
  2122. ;
  2123. ;-------Object  147-------------------------------------------------------
  2124. Chunk: Standard
  2125.  Name:     "bed[147]"
  2126.  Number:   147
  2127.  Size:     7400 1650 9000
  2128.  Position: 0 0 0
  2129.  Type:     0
  2130.  Layer:    0
  2131. End_Chunk
  2132. Chunk: TexCoords
  2133.  Number: 1
  2134.  Mode:   0
  2135.  SubChunk
  2136.   Facet:     4
  2137.   ImageRef:  1
  2138.   PixScale:  0
  2139.   NumCoords: 4
  2140.     0.00000 0.00000
  2141.     0.00000 1.00000
  2142.     1.00000 1.00000
  2143.     1.00000 0.00000
  2144. End_Chunk
  2145. Chunk: Colours
  2146.  Number: 6
  2147.  0x00 0x76 0x00 0x76 0x00 0x75
  2148. End_Chunk
  2149.  
  2150. Chunk: ImageRef
  2151.  Number: 1
  2152.  Index: 1 Image: 28
  2153. End_Chunk
  2154. ;
  2155. ;-------Object  148-------------------------------------------------------
  2156. Chunk: Standard
  2157.  Name:     "bed[148]"
  2158.  Number:   148
  2159.  Size:     5729 990 9000
  2160.  Position: 835 4620 0
  2161.  Type:     0
  2162.  Layer:    0
  2163. End_Chunk
  2164. Chunk: TexCoords
  2165.  Number: 1
  2166.  Mode:   0
  2167.  SubChunk
  2168.   Facet:     4
  2169.   ImageRef:  1
  2170.   PixScale:  0
  2171.   NumCoords: 4
  2172.     0.00000 0.00000
  2173.     0.00000 1.00000
  2174.     1.00000 1.00000
  2175.     1.00000 0.00000
  2176. End_Chunk
  2177. Chunk: Colours
  2178.  Number: 6
  2179.  0x00 0x76 0x00 0x76 0x00 0x75
  2180. End_Chunk
  2181.  
  2182. Chunk: ImageRef
  2183.  Number: 1
  2184.  Index: 1 Image: 31
  2185. End_Chunk
  2186. ;
  2187. ;-------Object  149-------------------------------------------------------
  2188. Chunk: Standard
  2189.  Name:     "bed[149]"
  2190.  Number:   149
  2191.  Size:     0 11000 9000
  2192.  Position: 0 0 0
  2193.  Type:     0
  2194.  Layer:    0
  2195. End_Chunk
  2196. Chunk: TexCoords
  2197.  Number: 1
  2198.  Mode:   0
  2199.  SubChunk
  2200.   Facet:     1
  2201.   ImageRef:  1
  2202.   PixScale:  0
  2203.   NumCoords: 4
  2204.     0.00000 0.00000
  2205.     0.00000 1.00000
  2206.     1.00000 1.00000
  2207.     1.00000 0.00000
  2208. End_Chunk
  2209. Chunk: Colours
  2210.  Number: 6
  2211.  0x47 0x00 0x47 0x00 0x00 0x00
  2212. End_Chunk
  2213.  
  2214. Chunk: ImageRef
  2215.  Number: 1
  2216.  Index: 1 Image: 9
  2217. End_Chunk
  2218. ;
  2219. ;-------Object  150-------------------------------------------------------
  2220. Chunk: Standard
  2221.  Name:     "bed[150]"
  2222.  Number:   150
  2223.  Size:     5729 2970 9000
  2224.  Position: 835 5610 0
  2225.  Type:     27
  2226.  Layer:    0
  2227. End_Chunk
  2228. Chunk: TexCoords
  2229.  Number: 1
  2230.  Mode:   0
  2231.  SubChunk
  2232.   Facet:     2
  2233.   ImageRef:  1
  2234.   PixScale:  0
  2235.   NumCoords: 4
  2236.     0.00000 0.00000
  2237.     0.00000 1.00000
  2238.     1.00000 1.00000
  2239.     1.00000 0.00000
  2240. End_Chunk
  2241. Chunk: SCL
  2242. short  Dir=500;
  2243.  
  2244.  
  2245.  
  2246. resume (1, 2);
  2247.  
  2248. if (activate (me, 0))
  2249.  
  2250. {
  2251.  
  2252.   repeat (10)
  2253.  
  2254.   {
  2255.  
  2256.     zpos (me)+=Dir;
  2257.  
  2258.     waitf;
  2259.  
  2260.   }
  2261.  
  2262.   Dir=Dir*-1;
  2263.  
  2264.   clrtrig (me, 0);
  2265.  
  2266. }
  2267. end
  2268. End_Chunk
  2269. Chunk: InitPos
  2270.  Position: 835 5610 0
  2271. End_Chunk
  2272. Chunk: Colours
  2273.  Number: 14
  2274.  0x77 0x76 0x77 0x76 0x20 0x75 0x21 0x22 0x23 0x24 0x10 0x10 0x10 0x10
  2275. End_Chunk
  2276.  
  2277. Chunk: ImageRef
  2278.  Number: 1
  2279.  Index: 1 Image: 26
  2280. End_Chunk
  2281. ;
  2282. ;-------Object  151-------------------------------------------------------
  2283. Chunk: Standard
  2284.  Name:     "bed[151]"
  2285.  Number:   151
  2286.  Size:     5729 2970 9000
  2287.  Position: 835 1650 0
  2288.  Type:     27
  2289.  Layer:    0
  2290. End_Chunk
  2291. Chunk: TexCoords
  2292.  Number: 1
  2293.  Mode:   0
  2294.  SubChunk
  2295.   Facet:     2
  2296.   ImageRef:  1
  2297.   PixScale:  0
  2298.   NumCoords: 4
  2299.     0.00000 0.00000
  2300.     0.00000 1.00000
  2301.     1.00000 1.00000
  2302.     1.00000 0.00000
  2303. End_Chunk
  2304. Chunk: SCL
  2305. short  Dir=500;
  2306.  
  2307.  
  2308.  
  2309. resume (1, 2);
  2310.  
  2311. if (activate (me, 0))
  2312.  
  2313. {
  2314.  
  2315.   repeat (10)
  2316.  
  2317.   {
  2318.  
  2319.     zpos (me)+=Dir;
  2320.  
  2321.     waitf;
  2322.  
  2323.   }
  2324.  
  2325.   Dir=Dir*-1;
  2326.  
  2327.   clrtrig (me, 0);
  2328.  
  2329. }
  2330. end
  2331. End_Chunk
  2332. Chunk: InitPos
  2333.  Position: 835 1650 0
  2334. End_Chunk
  2335. Chunk: Colours
  2336.  Number: 14
  2337.  0x77 0x76 0x77 0x76 0x20 0x75 0x21 0x22 0x23 0x24 0x10 0x10 0x10 0x10
  2338. End_Chunk
  2339.  
  2340. Chunk: ImageRef
  2341.  Number: 1
  2342.  Index: 1 Image: 26
  2343. End_Chunk
  2344.  
  2345. End_Children
  2346. ;
  2347. ;-------Object  152-------------------------------------------------------
  2348. Chunk: Standard
  2349.  Name:     "bed[152]"
  2350.  Number:   152
  2351.  Size:     7400 11000 15000
  2352.  Position: 16000 0 0
  2353.  Type:     65535
  2354.  Layer:    0
  2355.  DFlags:   E
  2356. End_Chunk
  2357.  
  2358. Children:
  2359. ;
  2360. ;-------Object  153-------------------------------------------------------
  2361. Chunk: Standard
  2362.  Name:     "bed[153]"
  2363.  Number:   153
  2364.  Size:     835 6930 9000
  2365.  Position: 0 1650 0
  2366.  Type:     0
  2367.  Layer:    0
  2368. End_Chunk
  2369. Chunk: TexCoords
  2370.  Number: 1
  2371.  Mode:   0
  2372.  SubChunk
  2373.   Facet:     4
  2374.   ImageRef:  1
  2375.   PixScale:  0
  2376.   NumCoords: 4
  2377.     0.00000 0.00000
  2378.     0.00000 1.00000
  2379.     1.00000 1.00000
  2380.     1.00000 0.00000
  2381. End_Chunk
  2382. Chunk: Colours
  2383.  Number: 6
  2384.  0x00 0x76 0x00 0x76 0x00 0x00
  2385. End_Chunk
  2386.  
  2387. Chunk: ImageRef
  2388.  Number: 1
  2389.  Index: 1 Image: 30
  2390. End_Chunk
  2391. ;
  2392. ;-------Object  154-------------------------------------------------------
  2393. Chunk: Standard
  2394.  Name:     "bed[154]"
  2395.  Number:   154
  2396.  Size:     835 6930 9000
  2397.  Position: 6564 1650 0
  2398.  Type:     0
  2399.  Layer:    0
  2400. End_Chunk
  2401. Chunk: TexCoords
  2402.  Number: 1
  2403.  Mode:   0
  2404.  SubChunk
  2405.   Facet:     4
  2406.   ImageRef:  1
  2407.   PixScale:  0
  2408.   NumCoords: 4
  2409.     0.00000 0.00000
  2410.     0.00000 1.00000
  2411.     1.00000 1.00000
  2412.     1.00000 0.00000
  2413. End_Chunk
  2414. Chunk: Colours
  2415.  Number: 6
  2416.  0x00 0x76 0x00 0x76 0x00 0x00
  2417. End_Chunk
  2418.  
  2419. Chunk: ImageRef
  2420.  Number: 1
  2421.  Index: 1 Image: 29
  2422. End_Chunk
  2423. ;
  2424. ;-------Object  155-------------------------------------------------------
  2425. Chunk: Standard
  2426.  Name:     "bed[155]"
  2427.  Number:   155
  2428.  Size:     0 11000 9000
  2429.  Position: 7400 0 0
  2430.  Type:     0
  2431.  Layer:    0
  2432. End_Chunk
  2433. Chunk: TexCoords
  2434.  Number: 1
  2435.  Mode:   0
  2436.  SubChunk
  2437.   Facet:     3
  2438.   ImageRef:  1
  2439.   PixScale:  0
  2440.   NumCoords: 4
  2441.     0.00000 0.00000
  2442.     0.00000 1.00000
  2443.     1.00000 1.00000
  2444.     1.00000 0.00000
  2445. End_Chunk
  2446. Chunk: Colours
  2447.  Number: 6
  2448.  0x00 0x00 0x47 0x00 0x00 0x00
  2449. End_Chunk
  2450.  
  2451. Chunk: ImageRef
  2452.  Number: 1
  2453.  Index: 1 Image: 9
  2454. End_Chunk
  2455. ;
  2456. ;-------Object  156-------------------------------------------------------
  2457. Chunk: Standard
  2458.  Name:     "bed[156]"
  2459.  Number:   156
  2460.  Size:     7400 2420 9000
  2461.  Position: 0 8580 0
  2462.  Type:     0
  2463.  Layer:    0
  2464. End_Chunk
  2465. Chunk: TexCoords
  2466.  Number: 1
  2467.  Mode:   0
  2468.  SubChunk
  2469.   Facet:     4
  2470.   ImageRef:  1
  2471.   PixScale:  0
  2472.   NumCoords: 4
  2473.     0.00000 0.00000
  2474.     0.00000 1.00000
  2475.     1.00000 1.00000
  2476.     1.00000 0.00000
  2477. End_Chunk
  2478. Chunk: Colours
  2479.  Number: 6
  2480.  0x00 0x76 0x00 0x76 0x00 0x75
  2481. End_Chunk
  2482.  
  2483. Chunk: ImageRef
  2484.  Number: 1
  2485.  Index: 1 Image: 27
  2486. End_Chunk
  2487. ;
  2488. ;-------Object  157-------------------------------------------------------
  2489. Chunk: Standard
  2490.  Name:     "bed[157]"
  2491.  Number:   157
  2492.  Size:     7400 1650 9000
  2493.  Position: 0 0 0
  2494.  Type:     0
  2495.  Layer:    0
  2496. End_Chunk
  2497. Chunk: TexCoords
  2498.  Number: 1
  2499.  Mode:   0
  2500.  SubChunk
  2501.   Facet:     4
  2502.   ImageRef:  1
  2503.   PixScale:  0
  2504.   NumCoords: 4
  2505.     0.00000 0.00000
  2506.     0.00000 1.00000
  2507.     1.00000 1.00000
  2508.     1.00000 0.00000
  2509. End_Chunk
  2510. Chunk: Colours
  2511.  Number: 6
  2512.  0x00 0x76 0x00 0x76 0x00 0x75
  2513. End_Chunk
  2514.  
  2515. Chunk: ImageRef
  2516.  Number: 1
  2517.  Index: 1 Image: 28
  2518. End_Chunk
  2519. ;
  2520. ;-------Object  158-------------------------------------------------------
  2521. Chunk: Standard
  2522.  Name:     "bed[158]"
  2523.  Number:   158
  2524.  Size:     5729 990 9000
  2525.  Position: 835 4620 0
  2526.  Type:     0
  2527.  Layer:    0
  2528. End_Chunk
  2529. Chunk: TexCoords
  2530.  Number: 1
  2531.  Mode:   0
  2532.  SubChunk
  2533.   Facet:     4
  2534.   ImageRef:  1
  2535.   PixScale:  0
  2536.   NumCoords: 4
  2537.     0.00000 0.00000
  2538.     0.00000 1.00000
  2539.     1.00000 1.00000
  2540.     1.00000 0.00000
  2541. End_Chunk
  2542. Chunk: Colours
  2543.  Number: 6
  2544.  0x00 0x76 0x00 0x76 0x00 0x75
  2545. End_Chunk
  2546.  
  2547. Chunk: ImageRef
  2548.  Number: 1
  2549.  Index: 1 Image: 31
  2550. End_Chunk
  2551. ;
  2552. ;-------Object  159-------------------------------------------------------
  2553. Chunk: Standard
  2554.  Name:     "bed[159]"
  2555.  Number:   159
  2556.  Size:     0 11000 9000
  2557.  Position: 0 0 0
  2558.  Type:     0
  2559.  Layer:    0
  2560. End_Chunk
  2561. Chunk: TexCoords
  2562.  Number: 1
  2563.  Mode:   0
  2564.  SubChunk
  2565.   Facet:     1
  2566.   ImageRef:  1
  2567.   PixScale:  0
  2568.   NumCoords: 4
  2569.     0.00000 0.00000
  2570.     0.00000 1.00000
  2571.     1.00000 1.00000
  2572.     1.00000 0.00000
  2573. End_Chunk
  2574. Chunk: Colours
  2575.  Number: 6
  2576.  0x47 0x00 0x47 0x00 0x00 0x00
  2577. End_Chunk
  2578.  
  2579. Chunk: ImageRef
  2580.  Number: 1
  2581.  Index: 1 Image: 9
  2582. End_Chunk
  2583. ;
  2584. ;-------Object  160-------------------------------------------------------
  2585. Chunk: Standard
  2586.  Name:     "bed[160]"
  2587.  Number:   160
  2588.  Size:     5729 2970 9000
  2589.  Position: 835 5610 0
  2590.  Type:     27
  2591.  Layer:    0
  2592. End_Chunk
  2593. Chunk: TexCoords
  2594.  Number: 1
  2595.  Mode:   0
  2596.  SubChunk
  2597.   Facet:     2
  2598.   ImageRef:  1
  2599.   PixScale:  0
  2600.   NumCoords: 4
  2601.     0.00000 0.00000
  2602.     0.00000 1.00000
  2603.     1.00000 1.00000
  2604.     1.00000 0.00000
  2605. End_Chunk
  2606. Chunk: SCL
  2607. short  Dir=500;
  2608.  
  2609.  
  2610.  
  2611. resume (1, 2);
  2612.  
  2613. if (activate (me, 0))
  2614.  
  2615. {
  2616.  
  2617.   repeat (10)
  2618.  
  2619.   {
  2620.  
  2621.     zpos (me)+=Dir;
  2622.  
  2623.     waitf;
  2624.  
  2625.   }
  2626.  
  2627.   Dir=Dir*-1;
  2628.  
  2629.   clrtrig (me, 0);
  2630.  
  2631. }
  2632. end
  2633. End_Chunk
  2634. Chunk: InitPos
  2635.  Position: 835 5610 0
  2636. End_Chunk
  2637. Chunk: Colours
  2638.  Number: 14
  2639.  0x77 0x76 0x77 0x76 0x20 0x75 0x21 0x22 0x23 0x24 0x10 0x10 0x10 0x10
  2640. End_Chunk
  2641.  
  2642. Chunk: ImageRef
  2643.  Number: 1
  2644.  Index: 1 Image: 26
  2645. End_Chunk
  2646. ;
  2647. ;-------Object  161-------------------------------------------------------
  2648. Chunk: Standard
  2649.  Name:     "bed[161]"
  2650.  Number:   161
  2651.  Size:     5729 2970 9000
  2652.  Position: 835 1650 0
  2653.  Type:     27
  2654.  Layer:    0
  2655. End_Chunk
  2656. Chunk: TexCoords
  2657.  Number: 1
  2658.  Mode:   0
  2659.  SubChunk
  2660.   Facet:     2
  2661.   ImageRef:  1
  2662.   PixScale:  0
  2663.   NumCoords: 4
  2664.     0.00000 0.00000
  2665.     0.00000 1.00000
  2666.     1.00000 1.00000
  2667.     1.00000 0.00000
  2668. End_Chunk
  2669. Chunk: SCL
  2670. short  Dir=500;
  2671.  
  2672.  
  2673.  
  2674. resume (1, 2);
  2675.  
  2676. if (activate (me, 0))
  2677.  
  2678. {
  2679.  
  2680.   repeat (10)
  2681.  
  2682.   {
  2683.  
  2684.     zpos (me)+=Dir;
  2685.  
  2686.     waitf;
  2687.  
  2688.   }
  2689.  
  2690.   Dir=Dir*-1;
  2691.  
  2692.   clrtrig (me, 0);
  2693.  
  2694. }
  2695. end
  2696. End_Chunk
  2697. Chunk: InitPos
  2698.  Position: 835 1650 0
  2699. End_Chunk
  2700. Chunk: Colours
  2701.  Number: 14
  2702.  0x77 0x76 0x77 0x76 0x20 0x75 0x21 0x22 0x23 0x24 0x10 0x10 0x10 0x10
  2703. End_Chunk
  2704.  
  2705. Chunk: ImageRef
  2706.  Number: 1
  2707.  Index: 1 Image: 26
  2708. End_Chunk
  2709.  
  2710. End_Children
  2711. ;
  2712. ;-------Object   93-------------------------------------------------------
  2713. Chunk: Standard
  2714.  Name:     "bed[93]"
  2715.  Number:   93
  2716.  Size:     8600 1420 9000
  2717.  Position: 7400 9580 0
  2718.  Type:     0
  2719.  Layer:    0
  2720. End_Chunk
  2721. Chunk: TexCoords
  2722.  Number: 1
  2723.  Mode:   0
  2724.  SubChunk
  2725.   Facet:     4
  2726.   ImageRef:  1
  2727.   PixScale:  0
  2728.   NumCoords: 4
  2729.     0.00000 0.00000
  2730.     0.00000 1.00000
  2731.     1.00000 1.00000
  2732.     1.00000 0.00000
  2733. End_Chunk
  2734. Chunk: Colours
  2735.  Number: 6
  2736.  0x00 0x76 0x00 0x76 0x00 0x75
  2737. End_Chunk
  2738.  
  2739. Chunk: ImageRef
  2740.  Number: 1
  2741.  Index: 1 Image: 33
  2742. End_Chunk
  2743. ;
  2744. ;-------Object   95-------------------------------------------------------
  2745. Chunk: Standard
  2746.  Name:     "bed[95]"
  2747.  Number:   95
  2748.  Size:     23400 0 9000
  2749.  Position: 0 11000 0
  2750.  Type:     0
  2751.  Layer:    0
  2752. End_Chunk
  2753. Chunk: TexCoords
  2754.  Number: 1
  2755.  Mode:   0
  2756.  SubChunk
  2757.   Facet:     5
  2758.   ImageRef:  1
  2759.   PixScale:  0
  2760.   NumCoords: 4
  2761.     0.00000 0.00000
  2762.     0.00000 1.00000
  2763.     1.00000 1.00000
  2764.     1.00000 0.00000
  2765. End_Chunk
  2766. Chunk: Colours
  2767.  Number: 6
  2768.  0x00 0x00 0x00 0x00 0x59 0x00
  2769. End_Chunk
  2770.  
  2771. Chunk: ImageRef
  2772.  Number: 1
  2773.  Index: 1 Image: 25
  2774. End_Chunk
  2775.  
  2776. End_Children
  2777. ;
  2778. ;-------Object   96-------------------------------------------------------
  2779. Chunk: Standard
  2780.  Name:     "bed[96]"
  2781.  Number:   96
  2782.  Size:     10300 8200 0
  2783.  Position: 55000 11000 3000
  2784.  Type:     28
  2785.  Layer:    0
  2786. End_Chunk
  2787. Chunk: TexCoords
  2788.  Number: 1
  2789.  Mode:   0
  2790.  SubChunk
  2791.   Facet:     7
  2792.   ImageRef:  1
  2793.   PixScale:  0
  2794.   NumCoords: 4
  2795.     0.00000 0.00000
  2796.     0.00000 1.00000
  2797.     0.25000 1.00000
  2798.     0.25000 0.00000
  2799. End_Chunk
  2800. Chunk: SCL
  2801. fixed  Y;
  2802.  
  2803.  
  2804.  
  2805. Y=360-yrot (#9);
  2806.  
  2807. if (Y>360)
  2808.  
  2809.   Y=Y-360;
  2810.  
  2811. txoff (me, 1)=180-Y;
  2812.  
  2813.  
  2814. end
  2815. End_Chunk
  2816. Chunk: Colours
  2817.  Number: 7
  2818.  0x10 0x3F 0x10 0x10 0x10 0x10 0x64
  2819. End_Chunk
  2820.  
  2821. Chunk: ImageRef
  2822.  Number: 1
  2823.  Index: 1 Image: 34
  2824. End_Chunk
  2825. ;
  2826. ;-------Object   10-------------------------------------------------------
  2827. Chunk: Standard
  2828.  Name:     "floor[10]"
  2829.  Number:   10
  2830.  Size:     0 22000 33000
  2831.  Position: 1000 5000 22200
  2832.  Type:     65535
  2833.  Layer:    0
  2834. End_Chunk
  2835. Chunk: SCL
  2836. short  Dir=1000, IMAGE, facetNo=24;
  2837.  
  2838. char   IMAGEN[5], DIR[1024], PATH[1024], DRIVE[3];
  2839.  
  2840. long   WIDTH, HEIGHT;
  2841.  
  2842.  
  2843.  
  2844. resume (1, 2);
  2845.  
  2846. if (first)
  2847.  
  2848. {
  2849.  
  2850.   cdDrive (&DRIVE);
  2851.  
  2852.   strcpy (&DIR, &DRIVE);
  2853.  
  2854.   strcat (&DIR, "\\LoveBytes\\Locations\\");
  2855.  
  2856. }
  2857.  
  2858. if (activate (#133, 0) || activate (#6, 0) || activate (#7, 0) 
  2859.  
  2860.     || activate (#134, 0))
  2861.  
  2862. {
  2863.  
  2864.   if (Dir==1000)
  2865.  
  2866.   {
  2867.  
  2868.     IMAGE=random (6);
  2869.  
  2870.     ltoa (&IMAGEN, IMAGE);
  2871.  
  2872.     strcpy (&PATH, &DIR);
  2873.  
  2874.     strcat (&PATH, &IMAGEN);
  2875.  
  2876.     strcat (&PATH, ".gif");
  2877.  
  2878.     imageLd (&PATH, facetNo, 0, &WIDTH, &HEIGHT);
  2879.  
  2880.     strcpy (&PATH, &DIR);
  2881.  
  2882.   }
  2883.  
  2884.   repeat (8)
  2885.  
  2886.   {
  2887.  
  2888.     zpos (#6)-=Dir;
  2889.  
  2890.     zpos (#7)+=Dir;
  2891.  
  2892.     waitf;
  2893.  
  2894.   }
  2895.  
  2896.   Dir=Dir*-1;
  2897.  
  2898.   clrtrig (#133, 0);
  2899.  
  2900.   clrtrig (#6, 0);
  2901.  
  2902.   clrtrig (#7, 0);
  2903.  
  2904.   clrtrig (#134, 0);
  2905.  
  2906. }
  2907. end
  2908. End_Chunk
  2909.  
  2910. Children:
  2911. ;
  2912. ;-------Object    7-------------------------------------------------------
  2913. Chunk: Standard
  2914.  Name:     "floor[7]"
  2915.  Number:   7
  2916.  Size:     0 22000 9000
  2917.  Position: 0 0 16000
  2918.  Type:     0
  2919.  Layer:    0
  2920. End_Chunk
  2921. Chunk: TexCoords
  2922.  Number: 1
  2923.  Mode:   0
  2924.  SubChunk
  2925.   Facet:     3
  2926.   ImageRef:  1
  2927.   PixScale:  0
  2928.   NumCoords: 4
  2929.     0.00000 0.00000
  2930.     0.00000 1.00000
  2931.     1.00000 1.00000
  2932.     1.00000 0.00000
  2933. End_Chunk
  2934. Chunk: InitPos
  2935.  Position: 0 0 16000
  2936. End_Chunk
  2937. Chunk: Colours
  2938.  Number: 6
  2939.  0x00 0x10 0x77 0x10 0xFF 0xFF
  2940. End_Chunk
  2941.  
  2942. Chunk: ImageRef
  2943.  Number: 1
  2944.  Index: 1 Image: 23
  2945. End_Chunk
  2946. ;
  2947. ;-------Object  134-------------------------------------------------------
  2948. Chunk: Standard
  2949.  Name:     "floor[134]"
  2950.  Number:   134
  2951.  Size:     0 22000 9000
  2952.  Position: 0 0 24000
  2953.  Type:     0
  2954.  Layer:    0
  2955. End_Chunk
  2956. Chunk: TexCoords
  2957.  Number: 1
  2958.  Mode:   0
  2959.  SubChunk
  2960.   Facet:     3
  2961.   ImageRef:  1
  2962.   PixScale:  0
  2963.   NumCoords: 4
  2964.     0.00000 0.00000
  2965.     0.00000 1.00000
  2966.     1.00000 1.00000
  2967.     1.00000 0.00000
  2968. End_Chunk
  2969. Chunk: Colours
  2970.  Number: 6
  2971.  0x00 0x10 0x77 0x10 0xFF 0xFF
  2972. End_Chunk
  2973.  
  2974. Chunk: ImageRef
  2975.  Number: 1
  2976.  Index: 1 Image: 23
  2977. End_Chunk
  2978. ;
  2979. ;-------Object    6-------------------------------------------------------
  2980. Chunk: Standard
  2981.  Name:     "floor[6]"
  2982.  Number:   6
  2983.  Size:     0 22000 9000
  2984.  Position: 0 0 8000
  2985.  Type:     0
  2986.  Layer:    0
  2987. End_Chunk
  2988. Chunk: TexCoords
  2989.  Number: 1
  2990.  Mode:   0
  2991.  SubChunk
  2992.   Facet:     3
  2993.   ImageRef:  1
  2994.   PixScale:  0
  2995.   NumCoords: 4
  2996.     0.00000 0.00000
  2997.     0.00000 1.00000
  2998.     1.00000 1.00000
  2999.     1.00000 0.00000
  3000. End_Chunk
  3001. Chunk: InitPos
  3002.  Position: 0 0 8000
  3003. End_Chunk
  3004. Chunk: Colours
  3005.  Number: 6
  3006.  0x00 0x10 0x77 0x10 0xFF 0xFF
  3007. End_Chunk
  3008.  
  3009. Chunk: ImageRef
  3010.  Number: 1
  3011.  Index: 1 Image: 23
  3012. End_Chunk
  3013. ;
  3014. ;-------Object  133-------------------------------------------------------
  3015. Chunk: Standard
  3016.  Name:     "floor[133]"
  3017.  Number:   133
  3018.  Size:     0 22000 9000
  3019.  Position: 0 0 0
  3020.  Type:     0
  3021.  Layer:    0
  3022. End_Chunk
  3023. Chunk: TexCoords
  3024.  Number: 1
  3025.  Mode:   0
  3026.  SubChunk
  3027.   Facet:     3
  3028.   ImageRef:  1
  3029.   PixScale:  0
  3030.   NumCoords: 4
  3031.     0.00000 0.00000
  3032.     0.00000 1.00000
  3033.     1.00000 1.00000
  3034.     1.00000 0.00000
  3035. End_Chunk
  3036. Chunk: Colours
  3037.  Number: 6
  3038.  0x00 0x10 0x77 0x10 0xFF 0xFF
  3039. End_Chunk
  3040.  
  3041. Chunk: ImageRef
  3042.  Number: 1
  3043.  Index: 1 Image: 23
  3044. End_Chunk
  3045.  
  3046. End_Children
  3047. ;
  3048. ;-------Object   22-------------------------------------------------------
  3049. Chunk: Standard
  3050.  Name:     "wall[22]"
  3051.  Number:   22
  3052.  Size:     2000 2000 0
  3053.  Position: 69864 12029 28443
  3054.  Type:     34
  3055.  Layer:    0
  3056. End_Chunk
  3057. Chunk: TexCoords
  3058.  Number: 1
  3059.  Mode:   0
  3060.  SubChunk
  3061.   Facet:     2
  3062.   ImageRef:  1
  3063.   PixScale:  0
  3064.   NumCoords: 4
  3065.     0.00000 0.00000
  3066.     0.00000 1.00000
  3067.     1.00000 1.00000
  3068.     1.00000 0.00000
  3069. End_Chunk
  3070. Chunk: Rotations
  3071.  Initial: 0x0000 0x0000 0x0000
  3072.  Centre:  1000 1000 0
  3073. End_Chunk
  3074. Chunk: SCL
  3075. resume (1, 2);
  3076.  
  3077. yrot (me)=359-yvroff+yrot (object (vattach));
  3078.  
  3079. xrot (me)=359-xvroff;
  3080.  
  3081. if (activate (me, 0))
  3082.  
  3083. {
  3084.  
  3085.  
  3086.  
  3087.  
  3088.  
  3089.  
  3090.  
  3091.  
  3092.  
  3093.  
  3094.  
  3095.  
  3096.  
  3097.  
  3098.  
  3099. /* Menulock stuff*/
  3100.  
  3101.  
  3102.  
  3103.  
  3104.  
  3105.  
  3106.  
  3107.  
  3108.  
  3109.  
  3110.  
  3111.  
  3112.  
  3113.  
  3114.  
  3115.   share (99)=2;
  3116.  
  3117.   waitf;
  3118.  
  3119.   menuLock (1);
  3120.  
  3121.   loadvrt ("living.vrt");
  3122.  
  3123.   clrtrig (me, 0);
  3124.  
  3125. }
  3126. end
  3127. End_Chunk
  3128.  
  3129. Chunk: ImageRef
  3130.  Number: 1
  3131.  Index: 1 Image: 64
  3132. End_Chunk
  3133. Chunk: Colours
  3134.  Number: 2
  3135.  0x77 0x76
  3136. End_Chunk
  3137. ;
  3138. ;-------Object   27-------------------------------------------------------
  3139. Chunk: Standard
  3140.  Name:     "5"
  3141.  Number:   27
  3142.  Size:     1000 1000 1000
  3143.  Position: 7356 0 17234
  3144.  Type:     65535
  3145.  Layer:    0
  3146.  DFlags:   E
  3147. End_Chunk
  3148. Chunk: SCL
  3149. long   nearMe;
  3150.  
  3151. objnum Choose;
  3152.  
  3153. short  theObj;
  3154.  
  3155.  
  3156.  
  3157. resume (2, 0);
  3158.  
  3159. if (#13.Follow==me)
  3160.  
  3161. {
  3162.  
  3163.   nearMe=mdist (me, #11);
  3164.  
  3165.   if (nearMe<14000)
  3166.  
  3167.   {
  3168.  
  3169.     #13.Go=0;
  3170.  
  3171.     waitfs (#13.Delay);
  3172.  
  3173.     theObj=table (random (1)) {#25};
  3174.  
  3175.     Choose=object (theObj);
  3176.  
  3177.     #13.Follow=Choose;
  3178.  
  3179.     #13.Go=1;
  3180.  
  3181.   }
  3182.  
  3183. }
  3184. end
  3185. End_Chunk
  3186. ;
  3187. ;-------Object   28-------------------------------------------------------
  3188. Chunk: Standard
  3189.  Name:     "7"
  3190.  Number:   28
  3191.  Size:     1000 1000 1000
  3192.  Position: 60000 0 21234
  3193.  Type:     65535
  3194.  Layer:    0
  3195.  DFlags:   E
  3196. End_Chunk
  3197. Chunk: SCL
  3198. long   nearMe;
  3199.  
  3200. objnum Choose;
  3201.  
  3202. short  theObj;
  3203.  
  3204.  
  3205.  
  3206. resume (2, 0);
  3207.  
  3208. if (#13.Follow==me)
  3209.  
  3210. {
  3211.  
  3212.   nearMe=mdist (me, #11);
  3213.  
  3214.   if (nearMe<14000)
  3215.  
  3216.   {
  3217.  
  3218.     #13.Go=0;
  3219.  
  3220.     waitfs (#13.Delay);
  3221.  
  3222.     theObj=table (random (1)) {#24};
  3223.  
  3224.     Choose=object (theObj);
  3225.  
  3226.     #13.Follow=Choose;
  3227.  
  3228.     #13.Go=1;
  3229.  
  3230.   }
  3231.  
  3232. }
  3233. end
  3234. End_Chunk
  3235. ;
  3236. ;-------Object   23-------------------------------------------------------
  3237. Chunk: Standard
  3238.  Name:     "1"
  3239.  Number:   23
  3240.  Size:     1000 1000 1000
  3241.  Position: 67000 0 60234
  3242.  Type:     65535
  3243.  Layer:    0
  3244.  DFlags:   E
  3245. End_Chunk
  3246. Chunk: SCL
  3247. long   nearMe;
  3248.  
  3249. objnum Choose;
  3250.  
  3251. short  theObj;
  3252.  
  3253.  
  3254.  
  3255. resume (2, 0);
  3256.  
  3257. if (#13.Follow==me)
  3258.  
  3259. {
  3260.  
  3261.   nearMe=mdist (me, #11);
  3262.  
  3263.   if (nearMe<14000)
  3264.  
  3265.   {
  3266.  
  3267.     #13.Go=0;
  3268.  
  3269.     waitfs (#13.Delay);
  3270.  
  3271.     theObj=table (random (2)) {#25, #28};
  3272.  
  3273.     Choose=object (theObj);
  3274.  
  3275.     #13.Follow=Choose;
  3276.  
  3277.     #13.Go=1;
  3278.  
  3279.   }
  3280.  
  3281. }
  3282. end
  3283. End_Chunk
  3284. ;
  3285. ;-------Object   26-------------------------------------------------------
  3286. Chunk: Standard
  3287.  Name:     "4"
  3288.  Number:   26
  3289.  Size:     1000 1000 1000
  3290.  Position: 13356 0 37234
  3291.  Type:     65535
  3292.  Layer:    0
  3293.  DFlags:   E
  3294. End_Chunk
  3295. Chunk: SCL
  3296. long   nearMe;
  3297.  
  3298. objnum Choose;
  3299.  
  3300. short  theObj;
  3301.  
  3302.  
  3303.  
  3304. resume (2, 0);
  3305.  
  3306. if (#13.Follow==me)
  3307.  
  3308. {
  3309.  
  3310.   nearMe=mdist (me, #11);
  3311.  
  3312.   if (nearMe<14000)
  3313.  
  3314.   {
  3315.  
  3316.     #13.Go=0;
  3317.  
  3318.     waitfs (#13.Delay);
  3319.  
  3320.     theObj=table (random (2)) {#24, #27};
  3321.  
  3322.     Choose=object (theObj);
  3323.  
  3324.     #13.Follow=Choose;
  3325.  
  3326.     #13.Go=1;
  3327.  
  3328.   }
  3329.  
  3330. }
  3331. end
  3332. End_Chunk
  3333. ;
  3334. ;-------Object   25-------------------------------------------------------
  3335. Chunk: Standard
  3336.  Name:     "2"
  3337.  Number:   25
  3338.  Size:     1000 1000 1000
  3339.  Position: 9356 0 57234
  3340.  Type:     65535
  3341.  Layer:    0
  3342.  DFlags:   E
  3343. End_Chunk
  3344. Chunk: SCL
  3345. long   nearMe;
  3346.  
  3347. objnum Choose;
  3348.  
  3349. short  theObj;
  3350.  
  3351.  
  3352.  
  3353. resume (2, 0);
  3354.  
  3355. if (#13.Follow==me)
  3356.  
  3357. {
  3358.  
  3359.   nearMe=mdist (me, #11);
  3360.  
  3361.   if (nearMe<14000)
  3362.  
  3363.   {
  3364.  
  3365.     #13.Go=0;
  3366.  
  3367.     waitfs (#13.Delay);
  3368.  
  3369.     theObj=table (random (2)) {#24, #26};
  3370.  
  3371.     Choose=object (theObj);
  3372.  
  3373.     #13.Follow=Choose;
  3374.  
  3375.     #13.Go=1;
  3376.  
  3377.   }
  3378.  
  3379. }
  3380. end
  3381. End_Chunk
  3382. ;
  3383. ;-------Object   20-------------------------------------------------------
  3384. Chunk: Standard
  3385.  Name:     "CLOCKA: HOLD "
  3386.  Number:   20
  3387.  Size:     1199 6980 6980
  3388.  Position: 0 17600 6310
  3389.  Type:     65535
  3390.  Layer:    0
  3391. End_Chunk
  3392. Chunk: Colours
  3393.  Number: 18
  3394.  0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C
  3395.  0x0C 0x0C
  3396. End_Chunk
  3397.  
  3398. Children:
  3399. ;
  3400. ;-------Object   67-------------------------------------------------------
  3401. Chunk: Standard
  3402.  Name:     "CLOCKA:Rim "
  3403.  Number:   67
  3404.  Size:     1199 6980 6980
  3405.  Position: 0 0 0
  3406.  Type:     35
  3407.  Layer:    0
  3408. End_Chunk
  3409.  
  3410. Children:
  3411. ;
  3412. ;-------Object   68-------------------------------------------------------
  3413. Chunk: Standard
  3414.  Name:     "CLOCKA:Face hold "
  3415.  Number:   68
  3416.  Size:     413 4799 4799
  3417.  Position: 0 1088 1088
  3418.  Type:     65535
  3419.  Layer:    0
  3420. End_Chunk
  3421.  
  3422. Children:
  3423. ;
  3424. ;-------Object   69-------------------------------------------------------
  3425. Chunk: Standard
  3426.  Name:     "CLOCKA:Hour hand "
  3427.  Number:   69
  3428.  Size:     0 1799 479
  3429.  Position: 404 2288 2159
  3430.  Type:     36
  3431.  Layer:    0
  3432. End_Chunk
  3433. Chunk: Colours
  3434.  Number: 3
  3435.  0x30 0x01 0x37
  3436. End_Chunk
  3437. Chunk: Rotations
  3438.  Initial: 0x0000 0x0000 0x0000
  3439.  Centre:  0 110 239
  3440. End_Chunk
  3441. ;
  3442. ;-------Object   70-------------------------------------------------------
  3443. Chunk: Standard
  3444.  Name:     "CLOCKA:Minute hand "
  3445.  Number:   70
  3446.  Size:     0 2399 599
  3447.  Position: 407 2249 2099
  3448.  Type:     37
  3449.  Layer:    0
  3450. End_Chunk
  3451. Chunk: Colours
  3452.  Number: 6
  3453.  0x9E 0x01 0x01 0xA7 0x05 0x01
  3454. End_Chunk
  3455. Chunk: Rotations
  3456.  Initial: 0x0000 0x0000 0x0000
  3457.  Centre:  0 149 299
  3458. End_Chunk
  3459. ;
  3460. ;-------Object   71-------------------------------------------------------
  3461. Chunk: Standard
  3462.  Name:     "CLOCKA:Second hand "
  3463.  Number:   71
  3464.  Size:     0 2399 23
  3465.  Position: 410 2249 2387
  3466.  Type:     38
  3467.  Layer:    0
  3468. End_Chunk
  3469. Chunk: Colours
  3470.  Number: 2
  3471.  0x01 0x00
  3472. End_Chunk
  3473. Chunk: Rotations
  3474.  Initial: 0x0000 0x0000 0x0000
  3475.  Centre:  0 149 11
  3476. End_Chunk
  3477. ;
  3478. ;-------Object   72-------------------------------------------------------
  3479. Chunk: Standard
  3480.  Name:     "CLOCKA:Face hold (0,1) "
  3481.  Number:   72
  3482.  Size:     0 4799 4799
  3483.  Position: 401 0 0
  3484.  Type:     65535
  3485.  Layer:    0
  3486. End_Chunk
  3487. Chunk: SCL
  3488. short  h, m, s, s2=0;
  3489.  
  3490.  
  3491.  
  3492.  /* stores the hours,minutes and second values of the system clock */
  3493.  
  3494. time (&h, &m, &s); 
  3495.  
  3496.     /* rotates the hands of the clock relative to the time */
  3497.  
  3498. if (s2!=s)
  3499.  
  3500.   /*sound (1, 72, -500, 0);*/
  3501.  
  3502.   s2=s;
  3503.  
  3504. xrot (#71)=360-s*6.0000;
  3505.  
  3506. xrot (#70)=360-m*6.0000-s/10.0000;
  3507.  
  3508. xrot (#69)=360-h*30.0000-m/2.0000;
  3509.  
  3510.  
  3511.  
  3512.     /*                */
  3513. end
  3514. End_Chunk
  3515.  
  3516. Children:
  3517. ;
  3518. ;-------Object   73-------------------------------------------------------
  3519. Chunk: Standard
  3520.  Name:     "CLOCKA:Face "
  3521.  Number:   73
  3522.  Size:     0 4799 4799
  3523.  Position: 0 0 0
  3524.  Type:     39
  3525.  Layer:    0
  3526.  OFlags:   r
  3527. End_Chunk
  3528. Chunk: Colours
  3529.  Number: 35
  3530.  0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01
  3531.  0x01 0x01 0x01 0x01 0x01 0x32 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x00 0x01
  3532.  0x01 0x01 0x01
  3533. End_Chunk
  3534. Chunk: Distancing
  3535.  Visible:   7493
  3536.  Invisible: 7961
  3537.  Replace:   74
  3538. End_Chunk
  3539. ;
  3540. ;-------Object   74-------------------------------------------------------
  3541. Chunk: Standard
  3542.  Name:     "CLOCKA:Face Rep1 "
  3543.  Number:   74
  3544.  Size:     0 4799 4799
  3545.  Position: 0 0 0
  3546.  Type:     40
  3547.  Layer:    0
  3548.  DFlags:   R
  3549.  OFlags:   Ii
  3550. End_Chunk
  3551. Chunk: Colours
  3552.  Number: 30
  3553.  0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x32 0x01 0x01 0x01 0x01 0x01 0x01 0x01
  3554.  0x01 0x01 0x01 0x01 0x01 0xC7 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01
  3555. End_Chunk
  3556.  
  3557. End_Children
  3558.  
  3559. End_Children
  3560.  
  3561. End_Children
  3562. ;
  3563. ;-------Object   75-------------------------------------------------------
  3564. Chunk: Standard
  3565.  Name:     "CLOCKA:Rim Rep1 "
  3566.  Number:   75
  3567.  Size:     1199 6980 6980
  3568.  Position: 0 0 0
  3569.  Type:     41
  3570.  Layer:    0
  3571.  DFlags:   R
  3572.  OFlags:   Ii
  3573. End_Chunk
  3574.  
  3575. Children:
  3576. ;
  3577. ;-------Object   76-------------------------------------------------------
  3578. Chunk: Standard
  3579.  Name:     "CLOCKA:Face hold Rep1 "
  3580.  Number:   76
  3581.  Size:     413 4799 4799
  3582.  Position: 0 1088 1088
  3583.  Type:     65535
  3584.  Layer:    0
  3585. End_Chunk
  3586.  
  3587. Children:
  3588. ;
  3589. ;-------Object   77-------------------------------------------------------
  3590. Chunk: Standard
  3591.  Name:     "CLOCKA:Hour hand Rep1 "
  3592.  Number:   77
  3593.  Size:     0 1799 479
  3594.  Position: 404 2288 2159
  3595.  Type:     36
  3596.  Layer:    0
  3597. End_Chunk
  3598. Chunk: Colours
  3599.  Number: 4
  3600.  0x30 0x01 0x37 0x30
  3601. End_Chunk
  3602. Chunk: Rotations
  3603.  Initial: 0x0000 0x0000 0x0000
  3604.  Centre:  0 110 239
  3605. End_Chunk
  3606. ;
  3607. ;-------Object   78-------------------------------------------------------
  3608. Chunk: Standard
  3609.  Name:     "CLOCKA:Minute hand Rep1 "
  3610.  Number:   78
  3611.  Size:     0 2399 599
  3612.  Position: 407 2249 2099
  3613.  Type:     37
  3614.  Layer:    0
  3615. End_Chunk
  3616. Chunk: Colours
  3617.  Number: 6
  3618.  0x9E 0x08 0x01 0xA7 0x05 0x01
  3619. End_Chunk
  3620. Chunk: Colours
  3621.  Number: 6
  3622.  0x9E 0x08 0x01 0xA7 0x05 0x01
  3623. End_Chunk
  3624. Chunk: Colours
  3625.  Number: 4
  3626.  0x30 0x01 0x01 0x30
  3627. End_Chunk
  3628. Chunk: Rotations
  3629.  Initial: 0x0000 0x0000 0x0000
  3630.  Centre:  0 149 299
  3631. End_Chunk
  3632. ;
  3633. ;-------Object   79-------------------------------------------------------
  3634. Chunk: Standard
  3635.  Name:     "CLOCKA:Second hand Rep1 "
  3636.  Number:   79
  3637.  Size:     0 2399 23
  3638.  Position: 410 2249 2387
  3639.  Type:     38
  3640.  Layer:    0
  3641. End_Chunk
  3642. Chunk: Colours
  3643.  Number: 2
  3644.  0x01 0x00
  3645. End_Chunk
  3646. Chunk: Rotations
  3647.  Initial: 0x0000 0x0000 0x0000
  3648.  Centre:  0 149 11
  3649. End_Chunk
  3650. ;
  3651. ;-------Object  110-------------------------------------------------------
  3652. Chunk: Standard
  3653.  Name:     "CLOCKA:Face hold (2,3) "
  3654.  Number:   110
  3655.  Size:     0 4799 4799
  3656.  Position: 401 0 0
  3657.  Type:     65535
  3658.  Layer:    0
  3659. End_Chunk
  3660. Chunk: SCL
  3661. short  h, m, s;
  3662.  
  3663.  
  3664.  
  3665. time (&h, &m, &s);
  3666.  
  3667. xrot (#79)=360-s*6.0000;
  3668.  
  3669. xrot (#78)=360- (m*6.0000+s/10.0000);
  3670.  
  3671. xrot (#77)=360- (h*30.0000+m/2.0000);
  3672.  
  3673.  
  3674.  
  3675.  
  3676.  
  3677.  
  3678.  
  3679.  
  3680.  
  3681.  
  3682.  
  3683.  
  3684.  
  3685.  
  3686.  
  3687.  
  3688.  
  3689.  
  3690.  
  3691.  
  3692.  
  3693.  
  3694.  
  3695.  
  3696.  
  3697.  
  3698.  
  3699.  
  3700.  
  3701.  
  3702.  
  3703.     /*                */
  3704.  
  3705.  
  3706.  
  3707.  
  3708.  
  3709.  
  3710.  
  3711.  
  3712.  
  3713.  
  3714.  
  3715.  
  3716.  
  3717.  
  3718.  
  3719.  
  3720. end
  3721. End_Chunk
  3722.  
  3723. Children:
  3724. ;
  3725. ;-------Object  111-------------------------------------------------------
  3726. Chunk: Standard
  3727.  Name:     "CLOCKA:Face Rep2 "
  3728.  Number:   111
  3729.  Size:     0 4799 4799
  3730.  Position: 0 0 0
  3731.  Type:     42
  3732.  Layer:    0
  3733. End_Chunk
  3734. Chunk: Colours
  3735.  Number: 35
  3736.  0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x32 0x01 0x01 0x01 0x01 0x01 0x01
  3737.  0x01 0x01 0x01 0x01 0x01 0xC7 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x00 0x01
  3738.  0x01 0x01 0x01
  3739. End_Chunk
  3740. Chunk: Distancing
  3741.  Visible:   41965
  3742.  Invisible: 44587
  3743.  Replace:   112
  3744. End_Chunk
  3745. ;
  3746. ;-------Object  112-------------------------------------------------------
  3747. Chunk: Standard
  3748.  Name:     "CLOCKA:Face Rep3 "
  3749.  Number:   112
  3750.  Size:     0 4799 4799
  3751.  Position: 0 0 0
  3752.  Type:     43
  3753.  Layer:    0
  3754.  DFlags:   R
  3755.  OFlags:   Ii
  3756. End_Chunk
  3757. Chunk: Colours
  3758.  Number: 35
  3759.  0x01 0x01 0x32 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01
  3760.  0x01 0x01 0x01 0x01 0x01 0xC7 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x00 0x01
  3761.  0x01 0x01 0x01
  3762. End_Chunk
  3763.  
  3764. End_Children
  3765.  
  3766. End_Children
  3767.  
  3768. End_Children
  3769.  
  3770. End_Children
  3771. ;
  3772. ;-------Object  113-------------------------------------------------------
  3773. Chunk: Standard
  3774.  Name:     "picture[113]"
  3775.  Number:   113
  3776.  Size:     2999 3300 2499
  3777.  Position: 8303 10000 3041
  3778.  Type:     65535
  3779.  Layer:    0
  3780. End_Chunk
  3781.  
  3782. Children:
  3783. ;
  3784. ;-------Object  114-------------------------------------------------------
  3785. Chunk: Standard
  3786.  Name:     "desk[114]"
  3787.  Number:   114
  3788.  Size:     3999 4000 2499
  3789.  Position: -500 -700 0
  3790.  Type:     44
  3791.  Layer:    0
  3792. End_Chunk
  3793. Chunk: TexCoords
  3794.  Number: 1
  3795.  Mode:   0
  3796.  SubChunk
  3797.   Facet:     7
  3798.   ImageRef:  1
  3799.   PixScale:  0
  3800.   NumCoords: 4
  3801.     0.00000 0.00000
  3802.     0.00000 1.00000
  3803.     1.00000 1.00000
  3804.     1.00000 0.00000
  3805. End_Chunk
  3806. Chunk: SCL
  3807. if (activate (me, 0))
  3808.  
  3809. {
  3810.  
  3811.   dlgPhoto;
  3812.  
  3813.   clrtrig (me, 0);
  3814.  
  3815. }
  3816. end
  3817. End_Chunk
  3818.  
  3819. Chunk: ImageRef
  3820.  Number: 1
  3821.  Index: 1 Image: 1
  3822. End_Chunk
  3823. Chunk: Colours
  3824.  Number: 10
  3825.  0x3F 0xFA 0x3F 0x3F 0x3F 0x3F 0x55 0xFA 0x3F 0x3F
  3826. End_Chunk
  3827. Chunk: Rotations
  3828.  Initial: 0x1553 0x1FFE 0x0000
  3829.  Centre:  1499 2000 1249
  3830. End_Chunk
  3831.  
  3832. End_Children
  3833. ;
  3834. ;-------Object  115-------------------------------------------------------
  3835. Chunk: Standard
  3836.  Name:     "picture"
  3837.  Number:   115
  3838.  Size:     2999 3300 2499
  3839.  Position: 50339 11000 2441
  3840.  Type:     65535
  3841.  Layer:    0
  3842. End_Chunk
  3843.  
  3844. Children:
  3845. ;
  3846. ;-------Object  116-------------------------------------------------------
  3847. Chunk: Standard
  3848.  Name:     "desk[116]"
  3849.  Number:   116
  3850.  Size:     2999 4000 2499
  3851.  Position: 0 -700 0
  3852.  Type:     45
  3853.  Layer:    0
  3854. End_Chunk
  3855.  
  3856. Chunk: ImageRef
  3857.  Number: 1
  3858.  Index: 1 Image: 45
  3859. End_Chunk
  3860. Chunk: TexCoords
  3861.  Number: 1
  3862.  Mode:   0
  3863.  SubChunk
  3864.   Facet:     7
  3865.   ImageRef:  1
  3866.   PixScale:  0
  3867.   NumCoords: 4
  3868.     0.00000 0.00000
  3869.     0.00000 1.00000
  3870.     1.00000 1.00000
  3871.     0.99967 0.00049
  3872. End_Chunk
  3873. Chunk: SCL
  3874. if (activate (me, 0))
  3875.  
  3876. {
  3877.  
  3878.   dlgInfo;
  3879.  
  3880.   clrtrig (me, 0);
  3881.  
  3882. }
  3883. end
  3884. End_Chunk
  3885. Chunk: Colours
  3886.  Number: 10
  3887.  0x3F 0xFA 0x3F 0x3F 0x3F 0x3F 0x55 0xFA 0x3F 0x3F
  3888. End_Chunk
  3889. Chunk: Rotations
  3890.  Initial: 0x1553 0xFFFFE000 0x0000
  3891.  Centre:  1499 2000 1249
  3892. End_Chunk
  3893.  
  3894. End_Children
  3895. ;
  3896. ;-------Object   24-------------------------------------------------------
  3897. Chunk: Standard
  3898.  Name:     "3"
  3899.  Number:   24
  3900.  Size:     1000 1000 1000
  3901.  Position: 38356 0 47234
  3902.  Type:     65535
  3903.  Layer:    0
  3904.  DFlags:   E
  3905. End_Chunk
  3906. Chunk: SCL
  3907. long   nearMe;
  3908.  
  3909. objnum Choose;
  3910.  
  3911. short  theObj;
  3912.  
  3913.  
  3914.  
  3915. resume (2, 0);
  3916.  
  3917. if (#13.Follow==me)
  3918.  
  3919. {
  3920.  
  3921.   nearMe=mdist (me, #11);
  3922.  
  3923.   if (nearMe<14000)
  3924.  
  3925.   {
  3926.  
  3927.     #13.Go=0;
  3928.  
  3929.     waitfs (#13.Delay);
  3930.  
  3931.     theObj=table (random (2)) {#23, #28};
  3932.  
  3933.     Choose=object (theObj);
  3934.  
  3935.     #13.Follow=Choose;
  3936.  
  3937.     #13.Go=1;
  3938.  
  3939.   }
  3940.  
  3941. }
  3942. end
  3943. End_Chunk
  3944. ;
  3945. ;-------Object   11-------------------------------------------------------
  3946. Chunk: Standard
  3947.  Name:     "WOMAN_HOLD"
  3948.  Number:   11
  3949.  Size:     4470 22000 4406
  3950.  Position: 3514 0 20000
  3951.  Type:     65535
  3952.  Layer:    0
  3953.  OFlags:   Ii
  3954. End_Chunk
  3955. Chunk: InitPos
  3956.  Position: 3514 0 20000
  3957. End_Chunk
  3958. Chunk: Dynamics
  3959.  MovType:     0x80000081
  3960.  Fuel:        0
  3961.  Climb:       0
  3962.  Gravity:     120
  3963.  Coupled:     13
  3964.  Drive:       0 0 0
  3965.  External:    0 0 0
  3966.  MaxForce:    0 0 0
  3967.  GroundFric:  0 0 0
  3968.  Restitution: 0 0 0
  3969.  Velocity:    0 0 0
  3970.  MaxVel:      0 0 0
  3971. End_Chunk
  3972.  
  3973. Children:
  3974. ;
  3975. ;-------Object   12-------------------------------------------------------
  3976. Chunk: Standard
  3977.  Name:     "woman"
  3978.  Number:   12
  3979.  Size:     0 21900 6600
  3980.  Position: 2118 0 -1280
  3981.  Type:     31
  3982.  Layer:    0
  3983.  DFlags:   rE
  3984. End_Chunk
  3985. Chunk: TexCoords
  3986.  Number: 1
  3987.  Mode:   0
  3988.  SubChunk
  3989.   Facet:     2
  3990.   ImageRef:  1
  3991.   PixScale:  0
  3992.   NumCoords: 4
  3993.     0.00000 0.00000
  3994.     0.00000 1.00000
  3995.     1.00000 1.00000
  3996.     1.00000 0.00000
  3997. End_Chunk
  3998.  
  3999. Chunk: ImageRef
  4000.  Number: 1
  4001.  Index: 1 Image: 44
  4002. End_Chunk
  4003. Chunk: InitPos
  4004.  Position: 2118 0 -1280
  4005. End_Chunk
  4006. Chunk: InitSize
  4007.  Size: 0 21900 6600
  4008. End_Chunk
  4009. Chunk: Rotations
  4010.  Initial: 0x0000 0x0000 0x0000
  4011.  Centre:  0 10950 0
  4012. End_Chunk
  4013. Chunk: SCL
  4014. short  ROT, IMG, TEMP, NUM;
  4015.  
  4016. fixed  Y;
  4017.  
  4018. short  ROTS, ONCE=1;
  4019.  
  4020.  
  4021.  
  4022. resume (2, 2);
  4023.  
  4024. yrot (me)=89-yvroff+yrot (object (vattach));
  4025.  
  4026. if (ROT)
  4027.  
  4028. {
  4029.  
  4030.   ROTS=ROT-44;
  4031.  
  4032.   NUM=table (ROTS) {18, 18, 18, 18, 18, 20, 15, 19, 18, 12, 20, 
  4033.  
  4034.       18, 13, 23, 21, 17, 11, 16};
  4035.  
  4036.   Y=angle (me, #8);
  4037.  
  4038.   IMG= ( (-Y+181)/ (360/NUM)+NUM/2-1)%NUM+1;
  4039.  
  4040.   if (ONCE)
  4041.  
  4042.   {
  4043.  
  4044.     repeat (NUM)
  4045.  
  4046.     {
  4047.  
  4048.       counter (20)=inloop;
  4049.  
  4050.       waitf;
  4051.  
  4052.     }
  4053.  
  4054.     ONCE=0;
  4055.  
  4056.   }
  4057.  
  4058.   if (IMG!=TEMP)
  4059.  
  4060.   {
  4061.  
  4062.     counter (20)=IMG;
  4063.  
  4064.     TEMP=IMG;
  4065.  
  4066.   }
  4067.  
  4068. }
  4069. end
  4070. End_Chunk
  4071. ;
  4072. ;-------Object   13-------------------------------------------------------
  4073. Chunk: Standard
  4074.  Name:     "direction"
  4075.  Number:   13
  4076.  Size:     2000 2000 1000
  4077.  Position: 1350 12200 2119
  4078.  Type:     65535
  4079.  Layer:    0
  4080.  DFlags:   rE
  4081. End_Chunk
  4082. Chunk: SCL
  4083. objnum Follow;
  4084.  
  4085. short  Speed=800, Delay=200, Go=1;
  4086.  
  4087. fixed  x, y;
  4088.  
  4089.  
  4090.  
  4091. if (first)
  4092.  
  4093.   Follow=#27;
  4094.  
  4095. y=angle3d (Follow, me, &y);
  4096.  
  4097. yrot (me)=y;
  4098.  
  4099. if (Go==1)
  4100.  
  4101.   zdrive (parent (me))=Speed;
  4102.  
  4103. else
  4104.  
  4105.   zdrive (parent (me))=0;
  4106.  
  4107.  
  4108. end
  4109. End_Chunk
  4110. Chunk: Rotations
  4111.  Initial: 0x0000 0x0000 0x0000
  4112.  Centre:  1000 1000 500
  4113. End_Chunk
  4114.  
  4115. End_Children
  4116.  
  4117. End_Children
  4118. ;
  4119. ;-------Object    2-------------------------------------------------------
  4120. Chunk: Standard
  4121.  Name:     "floor[2]"
  4122.  Number:   2
  4123.  Size:     35000 31000 3000
  4124.  Position: 47000 0 83000
  4125.  Type:     65535
  4126.  Layer:    0
  4127. End_Chunk
  4128. ;
  4129. ;-------Object    3-------------------------------------------------------
  4130. Chunk: Standard
  4131.  Name:     "floor[3]"
  4132.  Number:   3
  4133.  Size:     4000 31000 3000
  4134.  Position: 10000 0 83000
  4135.  Type:     65535
  4136.  Layer:    0
  4137. End_Chunk
  4138. ;
  4139. ;-------Object  166-------------------------------------------------------
  4140. Chunk: Standard
  4141.  Name:     " vis cub"
  4142.  Number:   166
  4143.  Size:     33000 31000 17000
  4144.  Position: 14000 0 83000
  4145.  Type:     65535
  4146.  Layer:    0
  4147.  DFlags:   E
  4148. End_Chunk
  4149. Chunk: SCL
  4150. if (yrot (#102))
  4151.  
  4152.   vis (me);
  4153.  
  4154. else
  4155.  
  4156.   invis (me);
  4157.  
  4158.  
  4159. end
  4160. End_Chunk
  4161.  
  4162. Children:
  4163. ;
  4164. ;-------Object   88-------------------------------------------------------
  4165. Chunk: Standard
  4166.  Name:     "floor[88]"
  4167.  Number:   88
  4168.  Size:     33000 0 17000
  4169.  Position: 0 31000 0
  4170.  Type:     0
  4171.  Layer:    0
  4172. End_Chunk
  4173. Chunk: TexCoords
  4174.  Number: 1
  4175.  Mode:   0
  4176.  SubChunk
  4177.   Facet:     6
  4178.   ImageRef:  1
  4179.   PixScale:  0
  4180.   NumCoords: 4
  4181.     0.00000 0.00000
  4182.     0.00000 1.00000
  4183.     1.00000 1.00000
  4184.     1.00000 0.00000
  4185. End_Chunk
  4186.  
  4187. Chunk: ImageRef
  4188.  Number: 1
  4189.  Index: 1 Image: 4
  4190. End_Chunk
  4191. ;
  4192. ;-------Object   91-------------------------------------------------------
  4193. Chunk: Standard
  4194.  Name:     "floor[91]"
  4195.  Number:   91
  4196.  Size:     0 31000 17000
  4197.  Position: 33000 0 0
  4198.  Type:     0
  4199.  Layer:    0
  4200. End_Chunk
  4201. Chunk: TexCoords
  4202.  Number: 1
  4203.  Mode:   0
  4204.  SubChunk
  4205.   Facet:     1
  4206.   ImageRef:  1
  4207.   PixScale:  0
  4208.   NumCoords: 4
  4209.     0.00000 0.00000
  4210.     0.00000 1.00000
  4211.     1.00000 1.00000
  4212.     1.00000 0.00000
  4213. End_Chunk
  4214.  
  4215. Chunk: ImageRef
  4216.  Number: 1
  4217.  Index: 1 Image: 3
  4218. End_Chunk
  4219. ;
  4220. ;-------Object   92-------------------------------------------------------
  4221. Chunk: Standard
  4222.  Name:     "floor[92]"
  4223.  Number:   92
  4224.  Size:     0 31000 17000
  4225.  Position: 0 0 0
  4226.  Type:     0
  4227.  Layer:    0
  4228. End_Chunk
  4229. Chunk: TexCoords
  4230.  Number: 1
  4231.  Mode:   0
  4232.  SubChunk
  4233.   Facet:     3
  4234.   ImageRef:  1
  4235.   PixScale:  0
  4236.   NumCoords: 4
  4237.     0.00000 0.00000
  4238.     0.00000 1.00000
  4239.     1.00000 1.00000
  4240.     1.00000 0.00000
  4241. End_Chunk
  4242.  
  4243. Chunk: ImageRef
  4244.  Number: 1
  4245.  Index: 1 Image: 3
  4246. End_Chunk
  4247. ;
  4248. ;-------Object   98-------------------------------------------------------
  4249. Chunk: Standard
  4250.  Name:     "floor[98]"
  4251.  Number:   98
  4252.  Size:     33000 0 17000
  4253.  Position: 0 0 0
  4254.  Type:     0
  4255.  Layer:    0
  4256. End_Chunk
  4257. Chunk: TexCoords
  4258.  Number: 1
  4259.  Mode:   0
  4260.  SubChunk
  4261.   Facet:     5
  4262.   ImageRef:  1
  4263.   PixScale:  0
  4264.   NumCoords: 4
  4265.     0.00000 0.00000
  4266.     0.00000 1.00000
  4267.     1.00000 1.00000
  4268.     1.00000 0.00000
  4269. End_Chunk
  4270.  
  4271. Chunk: ImageRef
  4272.  Number: 1
  4273.  Index: 1 Image: 4
  4274. End_Chunk
  4275. ;
  4276. ;-------Object   97-------------------------------------------------------
  4277. Chunk: Standard
  4278.  Name:     "floor[97]"
  4279.  Number:   97
  4280.  Size:     33000 31000 0
  4281.  Position: 0 0 17000
  4282.  Type:     0
  4283.  Layer:    0
  4284. End_Chunk
  4285. Chunk: TexCoords
  4286.  Number: 1
  4287.  Mode:   0
  4288.  SubChunk
  4289.   Facet:     2
  4290.   ImageRef:  1
  4291.   PixScale:  0
  4292.   NumCoords: 4
  4293.     0.00000 0.00000
  4294.     0.00000 1.00000
  4295.     1.00000 1.00000
  4296.     1.00000 0.00000
  4297. End_Chunk
  4298.  
  4299. Chunk: ImageRef
  4300.  Number: 1
  4301.  Index: 1 Image: 4
  4302. End_Chunk
  4303. ;
  4304. ;-------Object  126-------------------------------------------------------
  4305. Chunk: Standard
  4306.  Name:     "floor[126]"
  4307.  Number:   126
  4308.  Size:     33000 2000 0
  4309.  Position: 0 26000 7000
  4310.  Type:     29
  4311.  Layer:    0
  4312. End_Chunk
  4313. Chunk: TexCoords
  4314.  Number: 2
  4315.  Mode:   0
  4316.  SubChunk
  4317.   Facet:     1
  4318.   ImageRef:  1
  4319.   PixScale:  0
  4320.   NumCoords: 4
  4321.     0.00000 0.00000
  4322.     0.00000 1.00000
  4323.     1.00000 1.00000
  4324.     1.00000 0.00000
  4325.  SubChunk
  4326.   Facet:     1
  4327.   ImageRef:  2
  4328.   PixScale:  0
  4329.   NumCoords: 4
  4330.     0.00000 0.00000
  4331.     0.00000 1.00000
  4332.     -1.00000 1.00000
  4333.     -1.00000 0.00000
  4334. End_Chunk
  4335.  
  4336. Chunk: ImageRef
  4337.  Number: 2
  4338.  Index: 1 Image: 5
  4339.  Index: 2 Image: 17
  4340. End_Chunk
  4341. ;
  4342. ;-------Object  165-------------------------------------------------------
  4343. Chunk: Standard
  4344.  Name:     "floor[165]"
  4345.  Number:   165
  4346.  Size:     10 4000 8000
  4347.  Position: 1990 22000 3000
  4348.  Type:     30
  4349.  Layer:    0
  4350. End_Chunk
  4351. Chunk: TexCoords
  4352.  Number: 1
  4353.  Mode:   0
  4354.  SubChunk
  4355.   Facet:     1
  4356.   ImageRef:  1
  4357.   PixScale:  0
  4358.   NumCoords: 4
  4359.     0.00000 0.00000
  4360.     0.00000 1.00000
  4361.     -1.00000 1.00000
  4362.     -1.00000 0.00000
  4363. End_Chunk
  4364.  
  4365. Chunk: ImageRef
  4366.  Number: 1
  4367.  Index: 1 Image: 8
  4368. End_Chunk
  4369. ;
  4370. ;-------Object   32-------------------------------------------------------
  4371. Chunk: Standard
  4372.  Name:     "floor[32]"
  4373.  Number:   32
  4374.  Size:     10 4000 8000
  4375.  Position: 3990 22000 3000
  4376.  Type:     30
  4377.  Layer:    0
  4378. End_Chunk
  4379. Chunk: TexCoords
  4380.  Number: 1
  4381.  Mode:   0
  4382.  SubChunk
  4383.   Facet:     1
  4384.   ImageRef:  1
  4385.   PixScale:  0
  4386.   NumCoords: 4
  4387.     0.00000 0.00000
  4388.     0.00000 1.00000
  4389.     -1.00000 1.00000
  4390.     -1.00000 0.00000
  4391. End_Chunk
  4392.  
  4393. Chunk: ImageRef
  4394.  Number: 1
  4395.  Index: 1 Image: 8
  4396. End_Chunk
  4397. ;
  4398. ;-------Object   48-------------------------------------------------------
  4399. Chunk: Standard
  4400.  Name:     "floor[48]"
  4401.  Number:   48
  4402.  Size:     10 4000 8000
  4403.  Position: 31990 22000 3000
  4404.  Type:     30
  4405.  Layer:    0
  4406. End_Chunk
  4407. Chunk: TexCoords
  4408.  Number: 1
  4409.  Mode:   0
  4410.  SubChunk
  4411.   Facet:     1
  4412.   ImageRef:  1
  4413.   PixScale:  0
  4414.   NumCoords: 4
  4415.     0.00000 0.00000
  4416.     0.00000 1.00000
  4417.     -1.00000 1.00000
  4418.     -1.00000 0.00000
  4419. End_Chunk
  4420.  
  4421. Chunk: ImageRef
  4422.  Number: 1
  4423.  Index: 1 Image: 8
  4424. End_Chunk
  4425. ;
  4426. ;-------Object   33-------------------------------------------------------
  4427. Chunk: Standard
  4428.  Name:     "floor[33]"
  4429.  Number:   33
  4430.  Size:     10 4000 8000
  4431.  Position: 5990 22000 3000
  4432.  Type:     30
  4433.  Layer:    0
  4434. End_Chunk
  4435. Chunk: TexCoords
  4436.  Number: 1
  4437.  Mode:   0
  4438.  SubChunk
  4439.   Facet:     1
  4440.   ImageRef:  1
  4441.   PixScale:  0
  4442.   NumCoords: 4
  4443.     0.00000 0.00000
  4444.     0.00000 1.00000
  4445.     -1.00000 1.00000
  4446.     -1.00000 0.00000
  4447. End_Chunk
  4448.  
  4449. Chunk: ImageRef
  4450.  Number: 1
  4451.  Index: 1 Image: 8
  4452. End_Chunk
  4453. ;
  4454. ;-------Object   34-------------------------------------------------------
  4455. Chunk: Standard
  4456.  Name:     "floor[34]"
  4457.  Number:   34
  4458.  Size:     10 4000 8000
  4459.  Position: 7490 22000 3000
  4460.  Type:     30
  4461.  Layer:    0
  4462. End_Chunk
  4463. Chunk: TexCoords
  4464.  Number: 1
  4465.  Mode:   0
  4466.  SubChunk
  4467.   Facet:     1
  4468.   ImageRef:  1
  4469.   PixScale:  0
  4470.   NumCoords: 4
  4471.     0.00000 0.00000
  4472.     0.00000 1.00000
  4473.     -1.00000 1.00000
  4474.     -1.00000 0.00000
  4475. End_Chunk
  4476.  
  4477. Chunk: ImageRef
  4478.  Number: 1
  4479.  Index: 1 Image: 8
  4480. End_Chunk
  4481. ;
  4482. ;-------Object   35-------------------------------------------------------
  4483. Chunk: Standard
  4484.  Name:     "floor[35]"
  4485.  Number:   35
  4486.  Size:     10 4000 8000
  4487.  Position: 8990 22000 3000
  4488.  Type:     30
  4489.  Layer:    0
  4490. End_Chunk
  4491. Chunk: TexCoords
  4492.  Number: 1
  4493.  Mode:   0
  4494.  SubChunk
  4495.   Facet:     1
  4496.   ImageRef:  1
  4497.   PixScale:  0
  4498.   NumCoords: 4
  4499.     0.00000 0.00000
  4500.     0.00000 1.00000
  4501.     -1.00000 1.00000
  4502.     -1.00000 0.00000
  4503. End_Chunk
  4504.  
  4505. Chunk: ImageRef
  4506.  Number: 1
  4507.  Index: 1 Image: 8
  4508. End_Chunk
  4509. ;
  4510. ;-------Object   36-------------------------------------------------------
  4511. Chunk: Standard
  4512.  Name:     "floor[36]"
  4513.  Number:   36
  4514.  Size:     10 4000 8000
  4515.  Position: 10990 22000 3000
  4516.  Type:     30
  4517.  Layer:    0
  4518. End_Chunk
  4519. Chunk: TexCoords
  4520.  Number: 1
  4521.  Mode:   0
  4522.  SubChunk
  4523.   Facet:     1
  4524.   ImageRef:  1
  4525.   PixScale:  0
  4526.   NumCoords: 4
  4527.     0.00000 0.00000
  4528.     0.00000 1.00000
  4529.     -1.00000 1.00000
  4530.     -1.00000 0.00000
  4531. End_Chunk
  4532.  
  4533. Chunk: ImageRef
  4534.  Number: 1
  4535.  Index: 1 Image: 8
  4536. End_Chunk
  4537. ;
  4538. ;-------Object   38-------------------------------------------------------
  4539. Chunk: Standard
  4540.  Name:     "floor[38]"
  4541.  Number:   38
  4542.  Size:     10 4000 8000
  4543.  Position: 14490 22000 3000
  4544.  Type:     30
  4545.  Layer:    0
  4546. End_Chunk
  4547. Chunk: TexCoords
  4548.  Number: 1
  4549.  Mode:   0
  4550.  SubChunk
  4551.   Facet:     1
  4552.   ImageRef:  1
  4553.   PixScale:  0
  4554.   NumCoords: 4
  4555.     0.00000 0.00000
  4556.     0.00000 1.00000
  4557.     -1.00000 1.00000
  4558.     -1.00000 0.00000
  4559. End_Chunk
  4560.  
  4561. Chunk: ImageRef
  4562.  Number: 1
  4563.  Index: 1 Image: 8
  4564. End_Chunk
  4565. ;
  4566. ;-------Object   37-------------------------------------------------------
  4567. Chunk: Standard
  4568.  Name:     "floor[37]"
  4569.  Number:   37
  4570.  Size:     10 4000 8000
  4571.  Position: 12490 22000 3000
  4572.  Type:     30
  4573.  Layer:    0
  4574. End_Chunk
  4575. Chunk: TexCoords
  4576.  Number: 1
  4577.  Mode:   0
  4578.  SubChunk
  4579.   Facet:     1
  4580.   ImageRef:  1
  4581.   PixScale:  0
  4582.   NumCoords: 4
  4583.     0.00000 0.00000
  4584.     0.00000 1.00000
  4585.     -1.00000 1.00000
  4586.     -1.00000 0.00000
  4587. End_Chunk
  4588.  
  4589. Chunk: ImageRef
  4590.  Number: 1
  4591.  Index: 1 Image: 8
  4592. End_Chunk
  4593. ;
  4594. ;-------Object   39-------------------------------------------------------
  4595. Chunk: Standard
  4596.  Name:     "floor[39]"
  4597.  Number:   39
  4598.  Size:     10 4000 8000
  4599.  Position: 15990 22000 3000
  4600.  Type:     30
  4601.  Layer:    0
  4602. End_Chunk
  4603. Chunk: TexCoords
  4604.  Number: 1
  4605.  Mode:   0
  4606.  SubChunk
  4607.   Facet:     1
  4608.   ImageRef:  1
  4609.   PixScale:  0
  4610.   NumCoords: 4
  4611.     0.00000 0.00000
  4612.     0.00000 1.00000
  4613.     -1.00000 1.00000
  4614.     -1.00000 0.00000
  4615. End_Chunk
  4616.  
  4617. Chunk: ImageRef
  4618.  Number: 1
  4619.  Index: 1 Image: 8
  4620. End_Chunk
  4621. ;
  4622. ;-------Object   41-------------------------------------------------------
  4623. Chunk: Standard
  4624.  Name:     "floor[41]"
  4625.  Number:   41
  4626.  Size:     10 4000 8000
  4627.  Position: 19490 22000 3000
  4628.  Type:     30
  4629.  Layer:    0
  4630. End_Chunk
  4631. Chunk: TexCoords
  4632.  Number: 1
  4633.  Mode:   0
  4634.  SubChunk
  4635.   Facet:     1
  4636.   ImageRef:  1
  4637.   PixScale:  0
  4638.   NumCoords: 4
  4639.     0.00000 0.00000
  4640.     0.00000 1.00000
  4641.     -1.00000 1.00000
  4642.     -1.00000 0.00000
  4643. End_Chunk
  4644.  
  4645. Chunk: ImageRef
  4646.  Number: 1
  4647.  Index: 1 Image: 8
  4648. End_Chunk
  4649. ;
  4650. ;-------Object   42-------------------------------------------------------
  4651. Chunk: Standard
  4652.  Name:     "floor[42]"
  4653.  Number:   42
  4654.  Size:     10 4000 8000
  4655.  Position: 21490 22000 3000
  4656.  Type:     30
  4657.  Layer:    0
  4658. End_Chunk
  4659. Chunk: TexCoords
  4660.  Number: 1
  4661.  Mode:   0
  4662.  SubChunk
  4663.   Facet:     1
  4664.   ImageRef:  1
  4665.   PixScale:  0
  4666.   NumCoords: 4
  4667.     0.00000 0.00000
  4668.     0.00000 1.00000
  4669.     -1.00000 1.00000
  4670.     -1.00000 0.00000
  4671. End_Chunk
  4672.  
  4673. Chunk: ImageRef
  4674.  Number: 1
  4675.  Index: 1 Image: 8
  4676. End_Chunk
  4677. ;
  4678. ;-------Object   43-------------------------------------------------------
  4679. Chunk: Standard
  4680.  Name:     "floor[43]"
  4681.  Number:   43
  4682.  Size:     10 4000 8000
  4683.  Position: 23490 22000 3000
  4684.  Type:     30
  4685.  Layer:    0
  4686. End_Chunk
  4687. Chunk: TexCoords
  4688.  Number: 1
  4689.  Mode:   0
  4690.  SubChunk
  4691.   Facet:     1
  4692.   ImageRef:  1
  4693.   PixScale:  0
  4694.   NumCoords: 4
  4695.     0.00000 0.00000
  4696.     0.00000 1.00000
  4697.     -1.00000 1.00000
  4698.     -1.00000 0.00000
  4699. End_Chunk
  4700.  
  4701. Chunk: ImageRef
  4702.  Number: 1
  4703.  Index: 1 Image: 8
  4704. End_Chunk
  4705. ;
  4706. ;-------Object   44-------------------------------------------------------
  4707. Chunk: Standard
  4708.  Name:     "floor[44]"
  4709.  Number:   44
  4710.  Size:     10 4000 8000
  4711.  Position: 25490 22000 3000
  4712.  Type:     30
  4713.  Layer:    0
  4714. End_Chunk
  4715. Chunk: TexCoords
  4716.  Number: 1
  4717.  Mode:   0
  4718.  SubChunk
  4719.   Facet:     1
  4720.   ImageRef:  1
  4721.   PixScale:  0
  4722.   NumCoords: 4
  4723.     0.00000 0.00000
  4724.     0.00000 1.00000
  4725.     -1.00000 1.00000
  4726.     -1.00000 0.00000
  4727. End_Chunk
  4728.  
  4729. Chunk: ImageRef
  4730.  Number: 1
  4731.  Index: 1 Image: 8
  4732. End_Chunk
  4733. ;
  4734. ;-------Object   45-------------------------------------------------------
  4735. Chunk: Standard
  4736.  Name:     "floor[45]"
  4737.  Number:   45
  4738.  Size:     10 4000 8000
  4739.  Position: 27490 22000 3000
  4740.  Type:     30
  4741.  Layer:    0
  4742. End_Chunk
  4743. Chunk: TexCoords
  4744.  Number: 1
  4745.  Mode:   0
  4746.  SubChunk
  4747.   Facet:     1
  4748.   ImageRef:  1
  4749.   PixScale:  0
  4750.   NumCoords: 4
  4751.     0.00000 0.00000
  4752.     0.00000 1.00000
  4753.     -1.00000 1.00000
  4754.     -1.00000 0.00000
  4755. End_Chunk
  4756.  
  4757. Chunk: ImageRef
  4758.  Number: 1
  4759.  Index: 1 Image: 8
  4760. End_Chunk
  4761. ;
  4762. ;-------Object   46-------------------------------------------------------
  4763. Chunk: Standard
  4764.  Name:     "floor[46]"
  4765.  Number:   46
  4766.  Size:     10 4000 8000
  4767.  Position: 28990 22000 3000
  4768.  Type:     30
  4769.  Layer:    0
  4770. End_Chunk
  4771. Chunk: TexCoords
  4772.  Number: 1
  4773.  Mode:   0
  4774.  SubChunk
  4775.   Facet:     1
  4776.   ImageRef:  1
  4777.   PixScale:  0
  4778.   NumCoords: 4
  4779.     0.00000 0.00000
  4780.     0.00000 1.00000
  4781.     -1.00000 1.00000
  4782.     -1.00000 0.00000
  4783. End_Chunk
  4784.  
  4785. Chunk: ImageRef
  4786.  Number: 1
  4787.  Index: 1 Image: 8
  4788. End_Chunk
  4789. ;
  4790. ;-------Object   47-------------------------------------------------------
  4791. Chunk: Standard
  4792.  Name:     "floor[47]"
  4793.  Number:   47
  4794.  Size:     10 4000 8000
  4795.  Position: 30490 22000 3000
  4796.  Type:     30
  4797.  Layer:    0
  4798. End_Chunk
  4799. Chunk: TexCoords
  4800.  Number: 1
  4801.  Mode:   0
  4802.  SubChunk
  4803.   Facet:     1
  4804.   ImageRef:  1
  4805.   PixScale:  0
  4806.   NumCoords: 4
  4807.     0.00000 0.00000
  4808.     0.00000 1.00000
  4809.     -1.00000 1.00000
  4810.     -1.00000 0.00000
  4811. End_Chunk
  4812.  
  4813. Chunk: ImageRef
  4814.  Number: 1
  4815.  Index: 1 Image: 8
  4816. End_Chunk
  4817. ;
  4818. ;-------Object   40-------------------------------------------------------
  4819. Chunk: Standard
  4820.  Name:     "floor[40]"
  4821.  Number:   40
  4822.  Size:     10 4000 8000
  4823.  Position: 17700 22000 3000
  4824.  Type:     30
  4825.  Layer:    0
  4826. End_Chunk
  4827. Chunk: TexCoords
  4828.  Number: 1
  4829.  Mode:   0
  4830.  SubChunk
  4831.   Facet:     1
  4832.   ImageRef:  1
  4833.   PixScale:  0
  4834.   NumCoords: 4
  4835.     0.00000 0.00000
  4836.     0.00000 1.00000
  4837.     -1.00000 1.00000
  4838.     -1.00000 0.00000
  4839. End_Chunk
  4840.  
  4841. Chunk: ImageRef
  4842.  Number: 1
  4843.  Index: 1 Image: 8
  4844. End_Chunk
  4845. ;
  4846. ;-------Object   50-------------------------------------------------------
  4847. Chunk: Standard
  4848.  Name:     "Clothes 45"
  4849.  Number:   50
  4850.  Size:     0 11500 7000
  4851.  Position: 4000 12000 3900
  4852.  Type:     30
  4853.  Layer:    0
  4854. End_Chunk
  4855. Chunk: TexCoords
  4856.  Number: 1
  4857.  Mode:   0
  4858.  SubChunk
  4859.   Facet:     1
  4860.   ImageRef:  1
  4861.   PixScale:  0
  4862.   NumCoords: 4
  4863.     0.00000 0.00000
  4864.     0.00000 1.00000
  4865.     -1.00000 1.00000
  4866.     -1.00000 0.00000
  4867. End_Chunk
  4868. Chunk: SCL
  4869. resume (0, 2);
  4870.  
  4871. if (activate (me, 0))
  4872.  
  4873. {
  4874.  
  4875.   while (mouseb)
  4876.  
  4877.     waitf;
  4878.  
  4879.   share (1)=45;
  4880.  
  4881.   share (7)=45;
  4882.  
  4883.   #16.REFRESH=1;
  4884.  
  4885.   invis (me);
  4886.  
  4887.   clrtrig (me, 0);
  4888.  
  4889. }
  4890. end
  4891. End_Chunk
  4892.  
  4893. Chunk: ImageRef
  4894.  Number: 1
  4895.  Index: 1 Image: 48
  4896. End_Chunk
  4897. ;
  4898. ;-------Object   63-------------------------------------------------------
  4899. Chunk: Standard
  4900.  Name:     "Clothes 58"
  4901.  Number:   63
  4902.  Size:     10 6000 8000
  4903.  Position: 27480 17700 3100
  4904.  Type:     30
  4905.  Layer:    0
  4906. End_Chunk
  4907. Chunk: TexCoords
  4908.  Number: 1
  4909.  Mode:   0
  4910.  SubChunk
  4911.   Facet:     1
  4912.   ImageRef:  1
  4913.   PixScale:  0
  4914.   NumCoords: 4
  4915.     0.00000 0.00000
  4916.     0.00000 1.00000
  4917.     -1.00000 1.00000
  4918.     -1.00000 0.00000
  4919. End_Chunk
  4920. Chunk: SCL
  4921. resume (0, 2);
  4922.  
  4923. if (activate (me, 0))
  4924.  
  4925. {
  4926.  
  4927.   while (mouseb)
  4928.  
  4929.     waitf;
  4930.  
  4931.   share (1)=58;
  4932.  
  4933.   share (7)=58;
  4934.  
  4935.   #16.REFRESH=1;
  4936.  
  4937.   invis (me);
  4938.  
  4939.   clrtrig (me, 0);
  4940.  
  4941. }
  4942. end
  4943. End_Chunk
  4944.  
  4945. Chunk: ImageRef
  4946.  Number: 1
  4947.  Index: 1 Image: 46
  4948. End_Chunk
  4949. ;
  4950. ;-------Object   64-------------------------------------------------------
  4951. Chunk: Standard
  4952.  Name:     "Clothes 60"
  4953.  Number:   64
  4954.  Size:     10 7600 8400
  4955.  Position: 30480 16500 3300
  4956.  Type:     30
  4957.  Layer:    0
  4958. End_Chunk
  4959. Chunk: TexCoords
  4960.  Number: 1
  4961.  Mode:   0
  4962.  SubChunk
  4963.   Facet:     1
  4964.   ImageRef:  2
  4965.   PixScale:  0
  4966.   NumCoords: 4
  4967.     0.00000 0.00000
  4968.     0.00000 1.00000
  4969.     -1.00000 1.00000
  4970.     -1.00000 0.00000
  4971. End_Chunk
  4972. Chunk: SCL
  4973. resume (0, 2);
  4974.  
  4975. if (activate (me, 0))
  4976.  
  4977. {
  4978.  
  4979.   while (mouseb)
  4980.  
  4981.     waitf;
  4982.  
  4983.   share (1)=60;
  4984.  
  4985.   share (7)=60;
  4986.  
  4987.   #16.REFRESH=1;
  4988.  
  4989.   invis (me);
  4990.  
  4991.   clrtrig (me, 0);
  4992.  
  4993. }
  4994. end
  4995. End_Chunk
  4996.  
  4997. Chunk: ImageRef
  4998.  Number: 2
  4999.  Index: 1 Image: 46
  5000.  Index: 2 Image: 62
  5001. End_Chunk
  5002. ;
  5003. ;-------Object   49-------------------------------------------------------
  5004. Chunk: Standard
  5005.  Name:     "Clothes 44"
  5006.  Number:   49
  5007.  Size:     10 11100 11200
  5008.  Position: 2000 13400 1200
  5009.  Type:     30
  5010.  Layer:    0
  5011. End_Chunk
  5012. Chunk: TexCoords
  5013.  Number: 1
  5014.  Mode:   0
  5015.  SubChunk
  5016.   Facet:     1
  5017.   ImageRef:  1
  5018.   PixScale:  0
  5019.   NumCoords: 4
  5020.     0.00000 0.00000
  5021.     0.00000 1.00000
  5022.     -1.00000 1.00000
  5023.     -1.00000 0.00000
  5024. End_Chunk
  5025. Chunk: SCL
  5026. resume (0, 2);
  5027.  
  5028. if (activate (me, 0))
  5029.  
  5030. {
  5031.  
  5032.   while (mouseb)
  5033.  
  5034.     waitf;
  5035.  
  5036.   share (1)=44;
  5037.  
  5038.   share (7)=44;
  5039.  
  5040.   #16.REFRESH=1;
  5041.  
  5042.   invis (me);
  5043.  
  5044.   clrtrig (me, 0);
  5045.  
  5046. }
  5047. end
  5048. End_Chunk
  5049.  
  5050. Chunk: ImageRef
  5051.  Number: 1
  5052.  Index: 1 Image: 47
  5053. End_Chunk
  5054. ;
  5055. ;-------Object   51-------------------------------------------------------
  5056. Chunk: Standard
  5057.  Name:     "Clothes 46"
  5058.  Number:   51
  5059.  Size:     10 13900 8700
  5060.  Position: 6000 10300 3100
  5061.  Type:     30
  5062.  Layer:    0
  5063. End_Chunk
  5064. Chunk: TexCoords
  5065.  Number: 1
  5066.  Mode:   0
  5067.  SubChunk
  5068.   Facet:     1
  5069.   ImageRef:  2
  5070.   PixScale:  0
  5071.   NumCoords: 4
  5072.     0.00000 0.00000
  5073.     0.00000 1.00000
  5074.     -1.00000 1.00000
  5075.     -1.00000 0.00000
  5076. End_Chunk
  5077. Chunk: SCL
  5078. resume (0, 2);
  5079.  
  5080. if (activate (me, 0))
  5081.  
  5082. {
  5083.  
  5084.   while (mouseb)
  5085.  
  5086.     waitf;
  5087.  
  5088.   share (1)=46;
  5089.  
  5090.   share (7)=46;
  5091.  
  5092.   #16.REFRESH=1;
  5093.  
  5094.   invis (me);
  5095.  
  5096.   clrtrig (me, 0);
  5097.  
  5098. }
  5099. end
  5100. End_Chunk
  5101.  
  5102. Chunk: ImageRef
  5103.  Number: 2
  5104.  Index: 1 Image: 46
  5105.  Index: 2 Image: 49
  5106. End_Chunk
  5107. ;
  5108. ;-------Object   52-------------------------------------------------------
  5109. Chunk: Standard
  5110.  Name:     "Clothes 47"
  5111.  Number:   52
  5112.  Size:     10 10100 10500
  5113.  Position: 7500 14300 1600
  5114.  Type:     30
  5115.  Layer:    0
  5116. End_Chunk
  5117. Chunk: TexCoords
  5118.  Number: 1
  5119.  Mode:   0
  5120.  SubChunk
  5121.   Facet:     1
  5122.   ImageRef:  2
  5123.   PixScale:  0
  5124.   NumCoords: 4
  5125.     0.00000 0.00000
  5126.     0.00000 1.00000
  5127.     -1.00000 1.00000
  5128.     -1.00000 0.00000
  5129. End_Chunk
  5130. Chunk: SCL
  5131. resume (0, 2);
  5132.  
  5133. if (activate (me, 0))
  5134.  
  5135. {
  5136.  
  5137.   while (mouseb)
  5138.  
  5139.     waitf;
  5140.  
  5141.   share (1)=47;
  5142.  
  5143.   share (7)=47;
  5144.  
  5145.   #16.REFRESH=1;
  5146.  
  5147.   invis (me);
  5148.  
  5149.   clrtrig (me, 0);
  5150.  
  5151. }
  5152. end
  5153. End_Chunk
  5154.  
  5155. Chunk: ImageRef
  5156.  Number: 2
  5157.  Index: 1 Image: 46
  5158.  Index: 2 Image: 50
  5159. End_Chunk
  5160. ;
  5161. ;-------Object   53-------------------------------------------------------
  5162. Chunk: Standard
  5163.  Name:     "Clothes 48"
  5164.  Number:   53
  5165.  Size:     0 14500 8800
  5166.  Position: 9000 9600 3800
  5167.  Type:     30
  5168.  Layer:    0
  5169. End_Chunk
  5170. Chunk: TexCoords
  5171.  Number: 1
  5172.  Mode:   0
  5173.  SubChunk
  5174.   Facet:     1
  5175.   ImageRef:  2
  5176.   PixScale:  0
  5177.   NumCoords: 4
  5178.     0.00000 0.00000
  5179.     0.00000 1.00000
  5180.     -1.00000 1.00000
  5181.     -1.00000 0.00000
  5182. End_Chunk
  5183. Chunk: SCL
  5184. resume (0, 2);
  5185.  
  5186. if (activate (me, 0))
  5187.  
  5188. {
  5189.  
  5190.   while (mouseb)
  5191.  
  5192.     waitf;
  5193.  
  5194.   share (1)=48;
  5195.  
  5196.   share (7)=48;
  5197.  
  5198.   #16.REFRESH=1;
  5199.  
  5200.   invis (me);
  5201.  
  5202.   clrtrig (me, 0);
  5203.  
  5204. }
  5205. end
  5206. End_Chunk
  5207.  
  5208. Chunk: ImageRef
  5209.  Number: 2
  5210.  Index: 1 Image: 46
  5211.  Index: 2 Image: 51
  5212. End_Chunk
  5213. ;
  5214. ;-------Object   54-------------------------------------------------------
  5215. Chunk: Standard
  5216.  Name:     "Clothes 49"
  5217.  Number:   54
  5218.  Size:     0 18500 7100
  5219.  Position: 11000 5700 4400
  5220.  Type:     30
  5221.  Layer:    0
  5222. End_Chunk
  5223. Chunk: TexCoords
  5224.  Number: 1
  5225.  Mode:   0
  5226.  SubChunk
  5227.   Facet:     1
  5228.   ImageRef:  2
  5229.   PixScale:  0
  5230.   NumCoords: 4
  5231.     0.00000 0.00000
  5232.     0.00000 1.00000
  5233.     -1.00000 1.00000
  5234.     -1.00000 0.00000
  5235. End_Chunk
  5236. Chunk: SCL
  5237. resume (0, 2);
  5238.  
  5239. if (activate (me, 0))
  5240.  
  5241. {
  5242.  
  5243.   while (mouseb)
  5244.  
  5245.     waitf;
  5246.  
  5247.   share (1)=49;
  5248.  
  5249.   share (7)=49;
  5250.  
  5251.   #16.REFRESH=1;
  5252.  
  5253.   invis (me);
  5254.  
  5255.   clrtrig (me, 0);
  5256.  
  5257. }
  5258. end
  5259. End_Chunk
  5260.  
  5261. Chunk: ImageRef
  5262.  Number: 2
  5263.  Index: 1 Image: 46
  5264.  Index: 2 Image: 52
  5265. End_Chunk
  5266. ;
  5267. ;-------Object   55-------------------------------------------------------
  5268. Chunk: Standard
  5269.  Name:     "Clothes 50"
  5270.  Number:   55
  5271.  Size:     10 14100 5300
  5272.  Position: 12500 9600 4200
  5273.  Type:     30
  5274.  Layer:    0
  5275. End_Chunk
  5276. Chunk: TexCoords
  5277.  Number: 1
  5278.  Mode:   0
  5279.  SubChunk
  5280.   Facet:     1
  5281.   ImageRef:  2
  5282.   PixScale:  0
  5283.   NumCoords: 4
  5284.     0.00000 0.00000
  5285.     0.00000 1.00000
  5286.     -1.00000 1.00000
  5287.     -1.00000 0.00000
  5288. End_Chunk
  5289. Chunk: SCL
  5290. resume (0, 2);
  5291.  
  5292. if (activate (me, 0))
  5293.  
  5294. {
  5295.  
  5296.   while (mouseb)
  5297.  
  5298.     waitf;
  5299.  
  5300.   share (1)=50;
  5301.  
  5302.   share (7)=50;
  5303.  
  5304.   #16.REFRESH=1;
  5305.  
  5306.   invis (me);
  5307.  
  5308.   clrtrig (me, 0);
  5309.  
  5310. }
  5311. end
  5312. End_Chunk
  5313.  
  5314. Chunk: ImageRef
  5315.  Number: 2
  5316.  Index: 1 Image: 46
  5317.  Index: 2 Image: 53
  5318. End_Chunk
  5319. ;
  5320. ;-------Object   56-------------------------------------------------------
  5321. Chunk: Standard
  5322.  Name:     "Clothes 51"
  5323.  Number:   56
  5324.  Size:     0 9500 7300
  5325.  Position: 14500 14700 3100
  5326.  Type:     30
  5327.  Layer:    0
  5328. End_Chunk
  5329. Chunk: TexCoords
  5330.  Number: 1
  5331.  Mode:   0
  5332.  SubChunk
  5333.   Facet:     1
  5334.   ImageRef:  2
  5335.   PixScale:  0
  5336.   NumCoords: 4
  5337.     0.00000 0.00000
  5338.     0.00000 1.00000
  5339.     -1.00000 1.00000
  5340.     -1.00000 0.00000
  5341. End_Chunk
  5342. Chunk: SCL
  5343. resume (0, 2);
  5344.  
  5345. if (activate (me, 0))
  5346.  
  5347. {
  5348.  
  5349.   while (mouseb)
  5350.  
  5351.     waitf;
  5352.  
  5353.   share (1)=51;
  5354.  
  5355.   share (7)=51;
  5356.  
  5357.   #16.REFRESH=1;
  5358.  
  5359.   invis (me);
  5360.  
  5361.   clrtrig (me, 0);
  5362.  
  5363. }
  5364. end
  5365. End_Chunk
  5366.  
  5367. Chunk: ImageRef
  5368.  Number: 2
  5369.  Index: 1 Image: 46
  5370.  Index: 2 Image: 54
  5371. End_Chunk
  5372. ;
  5373. ;-------Object   57-------------------------------------------------------
  5374. Chunk: Standard
  5375.  Name:     "Clothes 52"
  5376.  Number:   57
  5377.  Size:     0 6700 7000
  5378.  Position: 16000 17800 3800
  5379.  Type:     30
  5380.  Layer:    0
  5381. End_Chunk
  5382. Chunk: TexCoords
  5383.  Number: 1
  5384.  Mode:   0
  5385.  SubChunk
  5386.   Facet:     1
  5387.   ImageRef:  2
  5388.   PixScale:  0
  5389.   NumCoords: 4
  5390.     0.00000 0.00000
  5391.     0.00000 1.00000
  5392.     -1.00000 1.00000
  5393.     -1.00000 0.00000
  5394. End_Chunk
  5395. Chunk: SCL
  5396. resume (0, 2);
  5397.  
  5398. if (activate (me, 0))
  5399.  
  5400. {
  5401.  
  5402.   while (mouseb)
  5403.  
  5404.     waitf;
  5405.  
  5406.   share (1)=52;
  5407.  
  5408.   share (7)=52;
  5409.  
  5410.   #16.REFRESH=1;
  5411.  
  5412.   invis (me);
  5413.  
  5414.   clrtrig (me, 0);
  5415.  
  5416. }
  5417. end
  5418. End_Chunk
  5419.  
  5420. Chunk: ImageRef
  5421.  Number: 2
  5422.  Index: 1 Image: 46
  5423.  Index: 2 Image: 55
  5424. End_Chunk
  5425. ;
  5426. ;-------Object   58-------------------------------------------------------
  5427. Chunk: Standard
  5428.  Name:     "Clothes 53"
  5429.  Number:   58
  5430.  Size:     10 6700 4200
  5431.  Position: 17690 18100 5600
  5432.  Type:     30
  5433.  Layer:    0
  5434. End_Chunk
  5435. Chunk: TexCoords
  5436.  Number: 1
  5437.  Mode:   0
  5438.  SubChunk
  5439.   Facet:     1
  5440.   ImageRef:  2
  5441.   PixScale:  0
  5442.   NumCoords: 4
  5443.     0.00000 0.00000
  5444.     0.00000 1.00000
  5445.     -1.00000 1.00000
  5446.     -1.00000 0.00000
  5447. End_Chunk
  5448. Chunk: SCL
  5449. resume (0, 2);
  5450.  
  5451. if (activate (me, 0))
  5452.  
  5453. {
  5454.  
  5455.   while (mouseb)
  5456.  
  5457.     waitf;
  5458.  
  5459.   share (1)=53;
  5460.  
  5461.   share (7)=53;
  5462.  
  5463.   #16.REFRESH=1;
  5464.  
  5465.   invis (me);
  5466.  
  5467.   clrtrig (me, 0);
  5468.  
  5469. }
  5470. end
  5471. End_Chunk
  5472.  
  5473. Chunk: ImageRef
  5474.  Number: 2
  5475.  Index: 1 Image: 46
  5476.  Index: 2 Image: 56
  5477. End_Chunk
  5478. ;
  5479. ;-------Object   59-------------------------------------------------------
  5480. Chunk: Standard
  5481.  Name:     "Clothes 54"
  5482.  Number:   59
  5483.  Size:     0 9900 6200
  5484.  Position: 19480 14200 3800
  5485.  Type:     30
  5486.  Layer:    0
  5487. End_Chunk
  5488. Chunk: TexCoords
  5489.  Number: 1
  5490.  Mode:   0
  5491.  SubChunk
  5492.   Facet:     1
  5493.   ImageRef:  2
  5494.   PixScale:  0
  5495.   NumCoords: 4
  5496.     0.00000 0.00000
  5497.     0.00000 1.00000
  5498.     -1.00000 1.00000
  5499.     -1.00000 0.00000
  5500. End_Chunk
  5501. Chunk: SCL
  5502. resume (0, 2);
  5503.  
  5504. if (activate (me, 0))
  5505.  
  5506. {
  5507.  
  5508.   while (mouseb)
  5509.  
  5510.     waitf;
  5511.  
  5512.   share (1)=54;
  5513.  
  5514.   share (7)=54;
  5515.  
  5516.   #16.REFRESH=1;
  5517.  
  5518.   invis (me);
  5519.  
  5520.   clrtrig (me, 0);
  5521.  
  5522. }
  5523. end
  5524. End_Chunk
  5525.  
  5526. Chunk: ImageRef
  5527.  Number: 2
  5528.  Index: 1 Image: 46
  5529.  Index: 2 Image: 57
  5530. End_Chunk
  5531. ;
  5532. ;-------Object   60-------------------------------------------------------
  5533. Chunk: Standard
  5534.  Name:     "Clothes 55"
  5535.  Number:   60
  5536.  Size:     10 8000 7100
  5537.  Position: 21480 16600 3300
  5538.  Type:     30
  5539.  Layer:    0
  5540. End_Chunk
  5541. Chunk: TexCoords
  5542.  Number: 1
  5543.  Mode:   0
  5544.  SubChunk
  5545.   Facet:     1
  5546.   ImageRef:  2
  5547.   PixScale:  0
  5548.   NumCoords: 4
  5549.     0.00000 0.00000
  5550.     0.00000 1.00000
  5551.     -1.00000 1.00000
  5552.     -1.00000 0.00000
  5553. End_Chunk
  5554. Chunk: SCL
  5555. resume (0, 2);
  5556.  
  5557. if (activate (me, 0))
  5558.  
  5559. {
  5560.  
  5561.   while (mouseb)
  5562.  
  5563.     waitf;
  5564.  
  5565.   share (1)=55;
  5566.  
  5567.   share (7)=55;
  5568.  
  5569.   #16.REFRESH=1;
  5570.  
  5571.   invis (me);
  5572.  
  5573.   clrtrig (me, 0);
  5574.  
  5575. }
  5576. end
  5577. End_Chunk
  5578.  
  5579. Chunk: ImageRef
  5580.  Number: 2
  5581.  Index: 1 Image: 46
  5582.  Index: 2 Image: 58
  5583. End_Chunk
  5584. ;
  5585. ;-------Object   61-------------------------------------------------------
  5586. Chunk: Standard
  5587.  Name:     "Clothes 56"
  5588.  Number:   61
  5589.  Size:     10 4900 6500
  5590.  Position: 23480 17400 3700
  5591.  Type:     30
  5592.  Layer:    0
  5593. End_Chunk
  5594. Chunk: TexCoords
  5595.  Number: 1
  5596.  Mode:   0
  5597.  SubChunk
  5598.   Facet:     1
  5599.   ImageRef:  2
  5600.   PixScale:  0
  5601.   NumCoords: 4
  5602.     0.00000 0.00000
  5603.     0.00000 1.00000
  5604.     -1.00000 1.00000
  5605.     -1.00000 0.00000
  5606. End_Chunk
  5607. Chunk: SCL
  5608. resume (0, 2);
  5609.  
  5610. if (activate (me, 0))
  5611.  
  5612. {
  5613.  
  5614.   while (mouseb)
  5615.  
  5616.     waitf;
  5617.  
  5618.   share (1)=56;
  5619.  
  5620.   share (7)=56;
  5621.  
  5622.   #16.REFRESH=1;
  5623.  
  5624.   invis (me);
  5625.  
  5626.   clrtrig (me, 0);
  5627.  
  5628. }
  5629. end
  5630. End_Chunk
  5631.  
  5632. Chunk: ImageRef
  5633.  Number: 2
  5634.  Index: 1 Image: 46
  5635.  Index: 2 Image: 59
  5636. End_Chunk
  5637. ;
  5638. ;-------Object   62-------------------------------------------------------
  5639. Chunk: Standard
  5640.  Name:     "Clothes 57"
  5641.  Number:   62
  5642.  Size:     10 9700 9000
  5643.  Position: 25480 14700 2400
  5644.  Type:     30
  5645.  Layer:    0
  5646. End_Chunk
  5647. Chunk: TexCoords
  5648.  Number: 1
  5649.  Mode:   0
  5650.  SubChunk
  5651.   Facet:     1
  5652.   ImageRef:  2
  5653.   PixScale:  0
  5654.   NumCoords: 4
  5655.     0.00000 0.00000
  5656.     0.00000 1.00000
  5657.     -1.00000 1.00000
  5658.     -1.00000 0.00000
  5659. End_Chunk
  5660. Chunk: SCL
  5661. resume (0, 2);
  5662.  
  5663. if (activate (me, 0))
  5664.  
  5665. {
  5666.  
  5667.   while (mouseb)
  5668.  
  5669.     waitf;
  5670.  
  5671.   share (1)=57;
  5672.  
  5673.   share (7)=57;
  5674.  
  5675.   #16.REFRESH=1;
  5676.  
  5677.   invis (me);
  5678.  
  5679.   clrtrig (me, 0);
  5680.  
  5681. }
  5682. end
  5683. End_Chunk
  5684.  
  5685. Chunk: ImageRef
  5686.  Number: 2
  5687.  Index: 1 Image: 46
  5688.  Index: 2 Image: 60
  5689. End_Chunk
  5690. ;
  5691. ;-------Object  169-------------------------------------------------------
  5692. Chunk: Standard
  5693.  Name:     "Clothes 59"
  5694.  Number:   169
  5695.  Size:     10 11600 9600
  5696.  Position: 28980 12700 2400
  5697.  Type:     30
  5698.  Layer:    0
  5699. End_Chunk
  5700. Chunk: TexCoords
  5701.  Number: 1
  5702.  Mode:   0
  5703.  SubChunk
  5704.   Facet:     1
  5705.   ImageRef:  2
  5706.   PixScale:  0
  5707.   NumCoords: 4
  5708.     0.00000 0.00000
  5709.     0.00000 1.00000
  5710.     -1.00000 1.00000
  5711.     -1.00000 0.00000
  5712. End_Chunk
  5713. Chunk: SCL
  5714. resume (0, 2);
  5715.  
  5716. if (activate (me, 0))
  5717.  
  5718. {
  5719.  
  5720.   while (mouseb)
  5721.  
  5722.     waitf;
  5723.  
  5724.   share (1)=59;
  5725.  
  5726.   share (7)=59;
  5727.  
  5728.   #16.REFRESH=1;
  5729.  
  5730.   invis (me);
  5731.  
  5732.   clrtrig (me, 0);
  5733.  
  5734. }
  5735. end
  5736. End_Chunk
  5737.  
  5738. Chunk: ImageRef
  5739.  Number: 2
  5740.  Index: 1 Image: 46
  5741.  Index: 2 Image: 61
  5742. End_Chunk
  5743. ;
  5744. ;-------Object   65-------------------------------------------------------
  5745. Chunk: Standard
  5746.  Name:     "Clothes 61"
  5747.  Number:   65
  5748.  Size:     10 11100 8100
  5749.  Position: 31980 11700 3100
  5750.  Type:     30
  5751.  Layer:    0
  5752. End_Chunk
  5753. Chunk: TexCoords
  5754.  Number: 1
  5755.  Mode:   0
  5756.  SubChunk
  5757.   Facet:     1
  5758.   ImageRef:  2
  5759.   PixScale:  0
  5760.   NumCoords: 4
  5761.     0.00000 0.00000
  5762.     0.00000 1.00000
  5763.     -1.00000 1.00000
  5764.     -1.00000 0.00000
  5765. End_Chunk
  5766. Chunk: SCL
  5767. resume (0, 2);
  5768.  
  5769. if (activate (me, 0))
  5770.  
  5771. {
  5772.  
  5773.   while (mouseb)
  5774.  
  5775.     waitf;
  5776.  
  5777.   share (1)=61;
  5778.  
  5779.   share (7)=61;
  5780.  
  5781.   #16.REFRESH=1;
  5782.  
  5783.   invis (me);
  5784.  
  5785.   clrtrig (me, 0);
  5786.  
  5787. }
  5788. end
  5789. End_Chunk
  5790.  
  5791. Chunk: ImageRef
  5792.  Number: 2
  5793.  Index: 1 Image: 46
  5794.  Index: 2 Image: 63
  5795. End_Chunk
  5796.  
  5797. End_Children
  5798. ;
  5799. ;-------Object  135-------------------------------------------------------
  5800. Chunk: Standard
  5801.  Name:     "floor[135]"
  5802.  Number:   135
  5803.  Size:     2000 15000 32000
  5804.  Position: 8000 12000 33000
  5805.  Type:     0
  5806.  Layer:    0
  5807. End_Chunk
  5808. Chunk: TexCoords
  5809.  Number: 1
  5810.  Mode:   0
  5811.  SubChunk
  5812.   Facet:     3
  5813.   ImageRef:  1
  5814.   PixScale:  0
  5815.   NumCoords: 4
  5816.     0.00000 0.00000
  5817.     0.00000 1.00000
  5818.     1.00000 1.00000
  5819.     1.00000 0.00000
  5820. End_Chunk
  5821. Chunk: Colours
  5822.  Number: 6
  5823.  0x00 0x76 0x77 0x76 0x75 0x75
  5824. End_Chunk
  5825.  
  5826. Chunk: ImageRef
  5827.  Number: 1
  5828.  Index: 1 Image: 24
  5829. End_Chunk
  5830. ;
  5831. ;-------Object  118-------------------------------------------------------
  5832. Chunk: Standard
  5833.  Name:     "other"
  5834.  Number:   118
  5835.  Size:     3000 3000 3000
  5836.  Position: 88826 0 5689
  5837.  Type:     32
  5838.  Layer:    0
  5839. End_Chunk
  5840. Chunk: SCL
  5841. long   STATS[8];
  5842.  
  5843.  
  5844.  
  5845. if (first)
  5846.  
  5847. {
  5848.  
  5849.   counter (20)=-1;
  5850.  
  5851.   counter (25)=-1;
  5852.  
  5853.   counter (26)=-1;
  5854.  
  5855.   counter (50)=-1;
  5856.  
  5857.   counter (51)=-1;
  5858.  
  5859.   counter (52)=-1;
  5860.  
  5861.   counter (53)=-1;
  5862.  
  5863. }
  5864.  
  5865. if (counter (50)!=-1 || counter (51)!=-1 || counter (52)!=-1 || 
  5866.  
  5867.     counter (53)!=-1)
  5868.  
  5869. {
  5870.  
  5871.   if (counter (50)!=-1)
  5872.  
  5873.     STATS[0]=counter (50);
  5874.  
  5875.   else
  5876.  
  5877.     STATS[0]=0;
  5878.  
  5879.   if (counter (51)!=-1)
  5880.  
  5881.     STATS[1]=counter (51);
  5882.  
  5883.   else
  5884.  
  5885.     STATS[1]=0;
  5886.  
  5887.   if (counter (52)!=-1)
  5888.  
  5889.     STATS[2]=counter (52);
  5890.  
  5891.   else
  5892.  
  5893.     STATS[2]=0;
  5894.  
  5895.   if (counter (53)!=-1)
  5896.  
  5897.     STATS[4]=counter (53);
  5898.  
  5899.   else
  5900.  
  5901.     STATS[4]=0;
  5902.  
  5903.   STATS[5]=0;
  5904.  
  5905.   STATS[6]=0;
  5906.  
  5907.   STATS[7]=0;
  5908.  
  5909.   statsExp (&STATS);
  5910.  
  5911.   counter (50)=-1;
  5912.  
  5913.   counter (51)=-1;
  5914.  
  5915.   counter (52)=-1;
  5916.  
  5917.   counter (53)=-1;
  5918.  
  5919. }
  5920. end
  5921. End_Chunk
  5922. Chunk: Text
  5923.   "char   NAME[10], PATH[256], DIR[256];\r"
  5924.   "long   WIDTH, HEIGHT, newPOS, oldWIDTH;\r"
  5925.   "short  Scale=35;\r\r"
  5926.   "if (first)\r"
  5927.   "{\r"
  5928.   "  strcpy (&DIR, \"c:\\\\pet\\\\images\\\\\");\r"
  5929.   "  strcpy (&NAME, \"4.gif\");\r"
  5930.   "}\r"
  5931.   "if (activate (me, 0) || first)\r"
  5932.   "{\r"
  5933.   "  strcpy (&PATH, &DIR);\r"
  5934.   "  strcat (&PATH, &NAME);\r"
  5935.   "  imageLd (&PATH, 57, 1, &WIDTH, &HEIGHT);\r"
  5936.   "  newPOS=zpos ('woman');\r"
  5937.   "  oldWIDTH=zsize ('woman')/2;\r"
  5938.   "  zsize ('woman')=WIDTH*Scale;\r"
  5939.   "  ysize ('woman')=HEIGHT*Scale;\r"
  5940.   "  write (&zcent ('woman'))=zsize ('woman')/2;\r"
  5941.   "  newPOS=newPOS+oldWIDTH-WIDTH*Scale/2;\r"
  5942.   "  zpos ('woman')=newPOS;\r"
  5943.   "  strcpy (&PATH, &DIR);\r"
  5944.   "  clrtrig (me, 0);\r"
  5945.   "}"
  5946. End_Chunk
  5947. Chunk: Colours
  5948.  Number: 6
  5949.  0x2B 0x15 0x2B 0x60 0x60 0x60
  5950. End_Chunk
  5951.  
  5952. End_Children
  5953. ;
  5954. ;-------Object   14-------------------------------------------------------
  5955. Chunk: Standard
  5956.  Name:     "Functions"
  5957.  Number:   14
  5958.  Size:     35000 3000 3000
  5959.  Position: 2123551 0 1958973
  5960.  Type:     65535
  5961.  Layer:    0
  5962. End_Chunk
  5963.  
  5964. Children:
  5965. ;
  5966. ;-------Object   15-------------------------------------------------------
  5967. Chunk: Standard
  5968.  Name:     "loadImage"
  5969.  Number:   15
  5970.  Size:     3000 3000 3000
  5971.  Position: 3000 0 0
  5972.  Type:     32
  5973.  Layer:    0
  5974. End_Chunk
  5975. Chunk: Text
  5976.   "char   NAME[10], PATH[256], DIR[256];\r"
  5977.   "long   WIDTH, HEIGHT, newPOS, oldWIDTH;\r"
  5978.   "short  Scale=35;\r\r"
  5979.   "if (first)\r"
  5980.   "{\r"
  5981.   "  strcpy (&DIR, \"c:\\\\pet\\\\images\\\\\");\r"
  5982.   "  strcpy (&NAME, \"4.gif\");\r"
  5983.   "}\r"
  5984.   "if (activate (me, 0) || first)\r"
  5985.   "{\r"
  5986.   "  strcpy (&PATH, &DIR);\r"
  5987.   "  strcat (&PATH, &NAME);\r"
  5988.   "  imageLd (&PATH, 57, 1, &WIDTH, &HEIGHT);\r"
  5989.   "  newPOS=zpos ('woman');\r"
  5990.   "  oldWIDTH=zsize ('woman')/2;\r"
  5991.   "  zsize ('woman')=WIDTH*Scale;\r"
  5992.   "  ysize ('woman')=HEIGHT*Scale;\r"
  5993.   "  write (&zcent ('woman'))=zsize ('woman')/2;\r"
  5994.   "  newPOS=newPOS+oldWIDTH-WIDTH*Scale/2;\r"
  5995.   "  zpos ('woman')=newPOS;\r"
  5996.   "  strcpy (&PATH, &DIR);\r"
  5997.   "  clrtrig (me, 0);\r"
  5998.   "}"
  5999. End_Chunk
  6000. Chunk: Colours
  6001.  Number: 6
  6002.  0x2B 0x15 0x2B 0x60 0x60 0x60
  6003. End_Chunk
  6004. Chunk: SCL
  6005. char   NAME[10], PATH[256], DIR[256], DRIVE[3];
  6006.  
  6007. long   WIDTH, HEIGHT, newPOS, oldWIDTH, STATS[8];
  6008.  
  6009. short  Scale=20, imgNum=44, LOWEST, MOODS=1, TEMP, ROT;
  6010.  
  6011.  
  6012.  
  6013. resume (2, 2);
  6014.  
  6015. if (first)
  6016.  
  6017. {
  6018.  
  6019.   cdDrive (&DRIVE);
  6020.  
  6021.   strcpy (&DIR, &DRIVE);
  6022.  
  6023.   strcat (&DIR, "\\LoveBytes\\");
  6024.  
  6025.   counter (20)=-1;
  6026.  
  6027.   counter (25)=-1;
  6028.  
  6029.   counter (21)=0;
  6030.  
  6031. }
  6032.  
  6033. if (vis? (#11) || vis? (#120) || first || vis? (#127))
  6034.  
  6035. {
  6036.  
  6037.   if (counter (20)>-1 && vis? (#11))
  6038.  
  6039.   {
  6040.  
  6041.     strcpy (&PATH, &DIR);
  6042.  
  6043.     strcat (&PATH, "images\\");
  6044.  
  6045.     ROT=#12.ROT;
  6046.  
  6047.     if (ROT>0)
  6048.  
  6049.     {
  6050.  
  6051.       ltoa (&NAME, ROT);
  6052.  
  6053.       strcat (&PATH, &NAME);
  6054.  
  6055.       strcat (&PATH, "\\");
  6056.  
  6057.     }
  6058.  
  6059.     ltoa (&NAME, counter (20));
  6060.  
  6061.     strcat (&PATH, &NAME);
  6062.  
  6063.     strcat (&PATH, ".gif");
  6064.  
  6065.     imageLd (&PATH, imgNum, 1, &WIDTH, &HEIGHT);
  6066.  
  6067.     newPOS=zpos (#12);
  6068.  
  6069.     oldWIDTH=zsize (#12)/2;
  6070.  
  6071.     zsize (#12)=WIDTH*Scale;
  6072.  
  6073.     ysize (#12)=HEIGHT*Scale;
  6074.  
  6075.     write (&zcent (#12))=zsize (#12)/2;
  6076.  
  6077.     newPOS=newPOS+oldWIDTH-WIDTH*Scale/2;
  6078.  
  6079.     zpos (#12)=newPOS;
  6080.  
  6081.     counter (20)=-1;
  6082.  
  6083.     if (ROT==0)
  6084.  
  6085.       MOODS=1;
  6086.  
  6087.     ROT=0;
  6088.  
  6089.   }
  6090.  
  6091.   if (counter (20)>-1 && vis? (#120))
  6092.  
  6093.   {
  6094.  
  6095.     strcpy (&PATH, &DIR);
  6096.  
  6097.     strcat (&PATH, "images\\");
  6098.  
  6099.     ROT=#120.ROT;
  6100.  
  6101.     if (ROT>0)
  6102.  
  6103.     {
  6104.  
  6105.       ltoa (&NAME, ROT);
  6106.  
  6107.       strcat (&PATH, &NAME);
  6108.  
  6109.       strcat (&PATH, "\\");
  6110.  
  6111.     }
  6112.  
  6113.     ltoa (&NAME, counter (20));
  6114.  
  6115.     strcat (&PATH, &NAME);
  6116.  
  6117.     strcat (&PATH, ".gif");
  6118.  
  6119.     imageLd (&PATH, imgNum, 1, &WIDTH, &HEIGHT);
  6120.  
  6121.     newPOS=zpos (#120);
  6122.  
  6123.     oldWIDTH=zsize (#120)/2;
  6124.  
  6125.     zsize (#120)=WIDTH*Scale;
  6126.  
  6127.     ysize (#120)=HEIGHT*Scale;
  6128.  
  6129.     write (&zcent (#120))=zsize (#120)/2;
  6130.  
  6131.     newPOS=newPOS+oldWIDTH-WIDTH*Scale/2;
  6132.  
  6133.     zpos (#120)=newPOS;
  6134.  
  6135.     counter (20)=-1;
  6136.  
  6137.     if (ROT==0)
  6138.  
  6139.       MOODS=1;
  6140.  
  6141.     ROT=0;
  6142.  
  6143.   }
  6144.  
  6145.   if (counter (22)>-1 && vis? (#127))
  6146.  
  6147.   {
  6148.  
  6149.     strcpy (&PATH, &DIR);
  6150.  
  6151.     strcat (&PATH, "images\\");
  6152.  
  6153.     ltoa (&NAME, counter (22));
  6154.  
  6155.     strcat (&PATH, &NAME);
  6156.  
  6157.     strcat (&PATH, ".gif");
  6158.  
  6159.     imageLd (&PATH, imgNum, 1, &WIDTH, &HEIGHT);
  6160.  
  6161.     newPOS=zpos (#127);
  6162.  
  6163.     oldWIDTH=zsize (#127)/2;
  6164.  
  6165.     zsize (#127)=WIDTH*Scale;
  6166.  
  6167.     ysize (#127)=HEIGHT*Scale;
  6168.  
  6169.     write (&zcent (#127))=zsize (#127)/2;
  6170.  
  6171.     newPOS=newPOS+oldWIDTH-WIDTH*Scale/2;
  6172.  
  6173.     zpos (#127)=newPOS;
  6174.  
  6175.     counter (22)=-1;
  6176.  
  6177.   }
  6178.  
  6179.   if (counter (25)>-1)
  6180.  
  6181.   {
  6182.  
  6183.     strcpy (&PATH, &DIR);
  6184.  
  6185.     strcat (&PATH, "sounds\\");
  6186.  
  6187.     ltoa (&NAME, counter (25));
  6188.  
  6189.     strcat (&PATH, &NAME);
  6190.  
  6191.     strcat (&PATH, ".wav");
  6192.  
  6193.     playWAV (&PATH);
  6194.  
  6195.     counter (25)=-1;
  6196.  
  6197.   }
  6198.  
  6199.   if (counter (26)>-1)
  6200.  
  6201.   {
  6202.  
  6203.     strcpy (&PATH, &DIR);
  6204.  
  6205.     strcat (&PATH, "sounds\\");
  6206.  
  6207.     ltoa (&NAME, counter (26));
  6208.  
  6209.     strcat (&PATH, &NAME);
  6210.  
  6211.     strcat (&PATH, ".wav");
  6212.  
  6213.     while (sndState)
  6214.  
  6215.       waitf;
  6216.  
  6217.     playWAV (&PATH);
  6218.  
  6219.     counter (26)=-1;
  6220.  
  6221.   }
  6222.  
  6223.   if (MOODS && !counter (21) && !vis? (#120))
  6224.  
  6225.   {
  6226.  
  6227.     if (!first)
  6228.  
  6229.       waitfs (50);
  6230.  
  6231.     statsGet (&STATS);
  6232.  
  6233.     repeat (5)
  6234.  
  6235.     {
  6236.  
  6237.       TEMP=5+-inloop;
  6238.  
  6239.       repeat (5)
  6240.  
  6241.       {
  6242.  
  6243.         if (STATS[TEMP]<STATS[inloop-1] && 
  6244.  
  6245.             STATS[TEMP]<STATS[LOWEST])
  6246.  
  6247.           LOWEST=TEMP;
  6248.  
  6249.       }
  6250.  
  6251.     }
  6252.  
  6253.     if (STATS[LOWEST]<111)
  6254.  
  6255.       counter (20)=131;
  6256.  
  6257.     if (STATS[LOWEST]>=111 && STATS[LOWEST]<222)
  6258.  
  6259.       counter (20)=119;
  6260.  
  6261.     if (STATS[LOWEST]>=222 && STATS[LOWEST]<333)
  6262.  
  6263.       counter (20)=table (random (2)) {117, 125};
  6264.  
  6265.     if (STATS[LOWEST]>=333 && STATS[LOWEST]<444)
  6266.  
  6267.       counter (20)=table (random (3)) {120, 124, 126};
  6268.  
  6269.     if (STATS[LOWEST]>=444 && STATS[LOWEST]<555)
  6270.  
  6271.       counter (20)=table (random (2)) {121, 127};
  6272.  
  6273.     if (STATS[LOWEST]>=555 && STATS[LOWEST]<666)
  6274.  
  6275.       counter (20)=2;
  6276.  
  6277.     if (STATS[LOWEST]>=666 && STATS[LOWEST]<777)
  6278.  
  6279.       counter (20)=129;
  6280.  
  6281.     if (STATS[LOWEST]>=777 && STATS[LOWEST]<888)
  6282.  
  6283.       counter (20)=130;
  6284.  
  6285.     if (STATS[LOWEST]>=888)
  6286.  
  6287.       counter (20)=1;
  6288.  
  6289.     strcpy (&PATH, &DIR);
  6290.  
  6291.     strcat (&PATH, "images\\");
  6292.  
  6293.     ltoa (&NAME, counter (20));
  6294.  
  6295.     strcat (&PATH, &NAME);
  6296.  
  6297.     strcat (&PATH, ".gif");
  6298.  
  6299.     imageLd (&PATH, imgNum, 1, &WIDTH, &HEIGHT);
  6300.  
  6301.     newPOS=zpos (#12);
  6302.  
  6303.     oldWIDTH=zsize (#12)/2;
  6304.  
  6305.     zsize (#12)=WIDTH*Scale;
  6306.  
  6307.     ysize (#12)=HEIGHT*Scale;
  6308.  
  6309.     write (&zcent (#12))=zsize (#12)/2;
  6310.  
  6311.     newPOS=newPOS+oldWIDTH-WIDTH*Scale/2;
  6312.  
  6313.     zpos (#12)=newPOS;
  6314.  
  6315.     counter (20)=-1;
  6316.  
  6317.     MOODS=0;
  6318.  
  6319.   }
  6320.  
  6321. }
  6322. end
  6323. End_Chunk
  6324. ;
  6325. ;-------Object   17-------------------------------------------------------
  6326. Chunk: Standard
  6327.  Name:     "Icons"
  6328.  Number:   17
  6329.  Size:     3000 3000 3000
  6330.  Position: 6000 0 0
  6331.  Type:     33
  6332.  Layer:    0
  6333. End_Chunk
  6334. Chunk: Text
  6335.   "short  SELECTED=0;\r\r"
  6336.   "instr (1)=49;\r"
  6337.   "instr (2)=51;\r"
  6338.   "instr (3)=53;\r"
  6339.   "instr (4)=SELECTED;\r"
  6340.   "switch (marker (2));\r"
  6341.   "case 1: \r"
  6342.   "  instr (1)=50;\r"
  6343.   "case 2: \r"
  6344.   "  instr (2)=52;\r"
  6345.   "case 3: \r"
  6346.   "  instr (3)=54;\r"
  6347.   "switch (marker (1));\r"
  6348.   "case 1: \r"
  6349.   "  dlgStats;\r"
  6350.   "case 2: \r"
  6351.   "  dlgShop;\r"
  6352.   "case 3: \r"
  6353.   "  dlgUse;\r"
  6354.   "marker (1)=0;\r"
  6355.   "marker (2)=0;\r"
  6356.   "repeat (4)\r"
  6357.   "  update (inloop);\r\r"
  6358. End_Chunk
  6359. Chunk: Colours
  6360.  Number: 6
  6361.  0xC5 0x10 0xC5 0xC5 0xC5 0xC5
  6362. End_Chunk
  6363. Chunk: SCL
  6364. short  SELECTED=36;
  6365.  
  6366.  
  6367.  
  6368. instr (1)=37;
  6369.  
  6370. instr (2)=39;
  6371.  
  6372. instr (3)=41;
  6373.  
  6374. instr (4)=SELECTED;
  6375.  
  6376. switch (marker (2));
  6377.  
  6378. case 1: 
  6379.  
  6380.   instr (1)=38;
  6381.  
  6382. case 2: 
  6383.  
  6384.   instr (2)=40;
  6385.  
  6386. case 3: 
  6387.  
  6388.   instr (3)=42;
  6389.  
  6390. switch (marker (1));
  6391.  
  6392. case 1: 
  6393.  
  6394.   dlgStats;
  6395.  
  6396. case 2: 
  6397.  
  6398.   dlgShop;
  6399.  
  6400. case 3: 
  6401.  
  6402.   dlgUse;
  6403.  
  6404. marker (1)=0;
  6405.  
  6406. marker (2)=0;
  6407.  
  6408. repeat (4)
  6409.  
  6410.   update (inloop);
  6411.  
  6412.  
  6413. end
  6414. End_Chunk
  6415. ;
  6416. ;-------Object   18-------------------------------------------------------
  6417. Chunk: Standard
  6418.  Name:     "Items"
  6419.  Number:   18
  6420.  Size:     3000 3000 3000
  6421.  Position: 9000 0 0
  6422.  Type:     33
  6423.  Layer:    0
  6424. End_Chunk
  6425. Chunk: Text
  6426.   "short  TEMP=-1, imgNum=56, imgNum2=55, TEMP2;\r"
  6427.   "long   WIDTH, HEIGHT, COOKEDV;\r"
  6428.   "char   NAME[10], PATH[256], DIR[256], SHARE[5];\r\r"
  6429.   "if (first)\r"
  6430.   "  strcpy (&DIR, \"c:\\\\pet\\\\images\\\\\");\r"
  6431.   "if (activate (me, 0))\r"
  6432.   "  share (1)=-1;\r"
  6433.   "if (TEMP!=share (1))\r"
  6434.   "{\r"
  6435.   "  'WASHER:DOOR'.REFRESH=1;\r"
  6436.   "  TEMP2='WASHER:DOOR'.WASH;\r"
  6437.   "  if (TEMP2)\r"
  6438.   "    'WASHER:DOOR'.WASH=1;\r"
  6439.   "  else\r"
  6440.   "    'WASHER:DOOR'.WASH=0;\r"
  6441.   "  if (share (1)>=0)\r"
  6442.   "  {\r"
  6443.   "    ltoa (&SHARE, share (1));\r"
  6444.   "    strcpy (&PATH, &DIR);\r"
  6445.   "    strcat (&PATH, &SHARE);\r"
  6446.   "    if (objAttrP (share (1), \"C\") && 'cookerLogic'.COOKED>0)\r"
  6447.   "    {\r"
  6448.   "      regGetN (\"CookedValue\", &COOKEDV);\r"
  6449.   "      if (COOKEDV==2)\r"
  6450.   "        strcat (&PATH, \"r\");\r"
  6451.   "      if (COOKEDV>2)\r"
  6452.   "        strcat (&PATH, \"b\");\r"
  6453.   "    }\r"
  6454.   "    strcat (&PATH, \".bmp\");\r"
  6455.   "    imageLd (&PATH, imgNum, 1, &WIDTH, &HEIGHT);\r"
  6456.   "    gvar (0, 'Icons')=imgNum;\r"
  6457.   "  }\r"
  6458.   "  else\r"
  6459.   "    gvar (0, 'Icons')=imgNum2;\r"
  6460.   "  imgNum=56;\r"
  6461.   "  strcpy (&PATH, &DIR);\r"
  6462.   "}\r"
  6463.   "TEMP=share (1);\r\r"
  6464. End_Chunk
  6465. Chunk: SCL
  6466. short  TEMP=-1, imgNum=35, imgNum2=36, TEMP2;
  6467.  
  6468. long   WIDTH, HEIGHT, COOKEDV;
  6469.  
  6470. char   NAME[10], PATH[256], DIR[256], SHARE[5];
  6471.  
  6472.  
  6473.  
  6474. if (first)
  6475.  
  6476.   strcpy (&DIR, "c:\\LoveBytes\\images\\");
  6477.  
  6478. if (activate (me, 0))
  6479.  
  6480.   share (1)=-1;
  6481.  
  6482. if (TEMP!=share (1))
  6483.  
  6484. {
  6485.  
  6486.   if (share (1)>=0)
  6487.  
  6488.   {
  6489.  
  6490.     ltoa (&SHARE, share (1));
  6491.  
  6492.     strcpy (&PATH, &DIR);
  6493.  
  6494.     strcat (&PATH, &SHARE);
  6495.  
  6496.     if (objAttrP (share (1), "C") && share (5)>0)
  6497.  
  6498.     {
  6499.  
  6500.       regGetN ("CookedValue", &COOKEDV);
  6501.  
  6502.       if (COOKEDV==2)
  6503.  
  6504.         strcat (&PATH, "r");
  6505.  
  6506.       if (COOKEDV>2)
  6507.  
  6508.         strcat (&PATH, "b");
  6509.  
  6510.     }
  6511.  
  6512.     strcat (&PATH, ".bmp");
  6513.  
  6514.     imageLd (&PATH, imgNum, 1, &WIDTH, &HEIGHT);
  6515.  
  6516.     #17.SELECTED=imgNum;
  6517.  
  6518.   }
  6519.  
  6520.   else
  6521.  
  6522.     #17.SELECTED=imgNum2;
  6523.  
  6524.   strcpy (&PATH, &DIR);
  6525.  
  6526. }
  6527.  
  6528. TEMP=share (1);
  6529.  
  6530.  
  6531. end
  6532. End_Chunk
  6533. Chunk: Colours
  6534.  Number: 6
  6535.  0xC5 0x15 0xC5 0xC5 0xC5 0xC5
  6536. End_Chunk
  6537. ;
  6538. ;-------Object   19-------------------------------------------------------
  6539. Chunk: Standard
  6540.  Name:     "updateAmbient"
  6541.  Number:   19
  6542.  Size:     3000 3000 3000
  6543.  Position: 12000 0 0
  6544.  Type:     33
  6545.  Layer:    0
  6546. End_Chunk
  6547. Chunk: Text
  6548.   "long   oldVALUE, stats[8], CURRENT, TEMP;\r"
  6549.   "float  newVALUE, TOTAL, CURRENT2;\r\r"
  6550.   "resume (0, 2);\r"
  6551.   "if (first)\r"
  6552.   "{\r"
  6553.   "  if (regGetN (\"AmbientCurrent\", &TEMP))\r"
  6554.   "    regPutN (\"AmbientCurrent\", 0);\r"
  6555.   "  if (regGetN (\"AmbientTotal\", &TEMP))\r"
  6556.   "    regPutN (\"AmbientTotal\", 5);\r"
  6557.   "  TOTAL=TEMP;\r"
  6558.   "}\r"
  6559.   "if (activate (me, 0))\r"
  6560.   "{\r"
  6561.   "  regGetN (\"AmbientCurrent\", &CURRENT);\r"
  6562.   "  if (CURRENT>TOTAL)\r"
  6563.   "  {\r"
  6564.   "    CURRENT=TOTAL;\r"
  6565.   "    regPutN (\"AmbientCurrent\", CURRENT);\r"
  6566.   "  }\r"
  6567.   "  else\r"
  6568.   "  {\r"
  6569.   "    if (CURRENT<0)\r"
  6570.   "    {\r"
  6571.   "      CURRENT=0;\r"
  6572.   "      regPutN (\"AmbientCurrent\", CURRENT);\r"
  6573.   "    }\r"
  6574.   "  }\r"
  6575.   "  CURRENT2=CURRENT;\r\r"
  6576.   "  /*DO CALCULATION*/\r"
  6577.   "  newVALUE=CURRENT/TOTAL;\r"
  6578.   "  newVALUE=newVALUE*1000;\r"
  6579.   "  newVALUE=1000-newVALUE;\r\r"
  6580.   "  /*GET AMBIENT VALUE*/\r"
  6581.   "  statsGet (&stats);\r"
  6582.   "  oldVALUE=stats[3];\r\r"
  6583.   "  /*FIND DIFFERENCE*/\r"
  6584.   "  newVALUE=newVALUE-oldVALUE;\r"
  6585.   "  \r"
  6586.   "  /*WRITE NEW VALUE*/\r"
  6587.   "  stats[0]=0;\r"
  6588.   "  stats[1]=0;\r"
  6589.   "  stats[2]=0;\r"
  6590.   "  stats[3]=newVALUE;\r"
  6591.   "  stats[4]=0;\r"
  6592.   "  stats[5]=0;\r"
  6593.   "  stats[6]=0;\r"
  6594.   "  stats[7]=0;\r"
  6595.   "  statsExp (&stats);\r"
  6596.   "}\r"
  6597. End_Chunk
  6598. Chunk: SCL
  6599. long   oldVALUE, stats[8], CURRENT, TEMP, TEMP2;
  6600.  
  6601. float  newVALUE, TOTAL;
  6602.  
  6603. char   REG[256], VALUE[5];
  6604.  
  6605.  
  6606.  
  6607. if (counter (30) || first || activate (me, 0))
  6608.  
  6609. {
  6610.  
  6611.   CURRENT=0;
  6612.  
  6613.   regGetN ("AmbientTotal", &TEMP);
  6614.  
  6615.   TOTAL=TEMP;
  6616.  
  6617.   if (regGetN ("rat", &TEMP))
  6618.  
  6619.     TEMP=0;
  6620.  
  6621.   CURRENT+=TEMP*5;
  6622.  
  6623.   if (regGetN ("tony", &TEMP))
  6624.  
  6625.     TEMP=0;
  6626.  
  6627.   CURRENT+=TEMP*5;
  6628.  
  6629.   if (regGetN ("alix", &TEMP))
  6630.  
  6631.     TEMP=0;
  6632.  
  6633.   CURRENT+=TEMP*5;
  6634.  
  6635.   regGetN ("fish", &TEMP);
  6636.  
  6637.   if (TEMP==0)
  6638.  
  6639.     CURRENT+=5;
  6640.  
  6641.   regGetN ("dog", &TEMP);
  6642.  
  6643.   if (TEMP==0)
  6644.  
  6645.     CURRENT+=5;
  6646.  
  6647.   repeat (20)
  6648.  
  6649.   {
  6650.  
  6651.     strcpy (®, "rubbish");
  6652.  
  6653.     ltoa (&VALUE, inloop);
  6654.  
  6655.     strcat (®, &VALUE);
  6656.  
  6657.     if (regGetN (®, &TEMP))
  6658.  
  6659.       TEMP=0;
  6660.  
  6661.     CURRENT+=TEMP;
  6662.  
  6663.   }
  6664.  
  6665.   repeat (18)
  6666.  
  6667.   {
  6668.  
  6669.     strcpy (®, "ClothesItemStatus");
  6670.  
  6671.     ltoa (&VALUE, inloop);
  6672.  
  6673.     strcat (®, &VALUE);
  6674.  
  6675.     if (regGetN (®, &TEMP2))
  6676.  
  6677.       TEMP2=0;
  6678.  
  6679.     if (TEMP2==2)
  6680.  
  6681.       TEMP=1;
  6682.  
  6683.     else
  6684.  
  6685.       TEMP=0;
  6686.  
  6687.     CURRENT+=TEMP;
  6688.  
  6689.   }
  6690.  
  6691.   repeat (10)
  6692.  
  6693.   {
  6694.  
  6695.     strcpy (®, "Dishes");
  6696.  
  6697.     ltoa (&VALUE, inloop);
  6698.  
  6699.     strcat (®, &VALUE);
  6700.  
  6701.     if (regGetN (®, &TEMP))
  6702.  
  6703.       TEMP=0;
  6704.  
  6705.     CURRENT+=TEMP;
  6706.  
  6707.   }
  6708.  
  6709.   repeat (21)
  6710.  
  6711.   {
  6712.  
  6713.     strcpy (®, "weed");
  6714.  
  6715.     ltoa (&VALUE, inloop);
  6716.  
  6717.     strcat (®, &VALUE);
  6718.  
  6719.     if (regGetN (®, &TEMP))
  6720.  
  6721.       TEMP=0;
  6722.  
  6723.     CURRENT+=TEMP;
  6724.  
  6725.   }
  6726.  
  6727.   repeat (12)
  6728.  
  6729.   {
  6730.  
  6731.     strcpy (®, "grass");
  6732.  
  6733.     ltoa (&VALUE, inloop);
  6734.  
  6735.     strcat (®, &VALUE);
  6736.  
  6737.     if (regGetN (®, &TEMP))
  6738.  
  6739.       TEMP=0;
  6740.  
  6741.     CURRENT+=TEMP;
  6742.  
  6743.   }
  6744.  
  6745.   repeat (5)
  6746.  
  6747.   {
  6748.  
  6749.     strcpy (®, "water");
  6750.  
  6751.     ltoa (&VALUE, inloop);
  6752.  
  6753.     strcat (®, &VALUE);
  6754.  
  6755.     if (regGetN (®, &TEMP))
  6756.  
  6757.       TEMP=0;
  6758.  
  6759.     CURRENT+=TEMP;
  6760.  
  6761.   }
  6762.  
  6763.   repeat (25)
  6764.  
  6765.   {
  6766.  
  6767.     strcpy (®, "flower");
  6768.  
  6769.     ltoa (&VALUE, inloop);
  6770.  
  6771.     strcat (®, &VALUE);
  6772.  
  6773.     if (regGetN (®, &TEMP2))
  6774.  
  6775.       TEMP=0;
  6776.  
  6777.     if (!TEMP2)
  6778.  
  6779.       CURRENT+=1;
  6780.  
  6781.   }
  6782.  
  6783. /*
  6784.  
  6785.   IF CURRENT IS >TOTAL THEN AMBIENT = 0
  6786.  
  6787.   IF CURRENT IS 0 THEN AMBIENT = 1000
  6788.  
  6789. *//*DO CALCULATION*/
  6790.  
  6791.  
  6792.  
  6793.   CURRENT=TOTAL-CURRENT;
  6794.  
  6795.   if (CURRENT<0)
  6796.  
  6797.     CURRENT=0;
  6798.  
  6799.   newVALUE=CURRENT/TOTAL;
  6800.  
  6801.   newVALUE=newVALUE*1000;
  6802.  
  6803.   if (newVALUE>1000)
  6804.  
  6805.     newVALUE=1000;
  6806.  
  6807.   /*GET AMBIENT VALUE*/
  6808.  
  6809.   statsGet (&stats);
  6810.  
  6811.   oldVALUE=stats[3];
  6812.  
  6813.   /*FIND DIFFERENCE*/
  6814.  
  6815.   newVALUE=newVALUE-oldVALUE;
  6816.  
  6817.   /*WRITE NEW VALUE*/
  6818.  
  6819.   stats[0]=0;
  6820.  
  6821.   stats[1]=0;
  6822.  
  6823.   stats[2]=0;
  6824.  
  6825.   stats[3]=newVALUE;
  6826.  
  6827.   stats[4]=0;
  6828.  
  6829.   stats[5]=0;
  6830.  
  6831.   stats[6]=0;
  6832.  
  6833.   stats[7]=0;
  6834.  
  6835.   statsExp (&stats);
  6836.  
  6837.   counter (30)=0;
  6838.  
  6839. }
  6840. end
  6841. End_Chunk
  6842. Chunk: Colours
  6843.  Number: 6
  6844.  0xC5 0x10 0xC5 0xC5 0xC5 0xC5
  6845. End_Chunk
  6846. ;
  6847. ;-------Object   21-------------------------------------------------------
  6848. Chunk: Standard
  6849.  Name:     "clickJo"
  6850.  Number:   21
  6851.  Size:     3000 3000 3000
  6852.  Position: 18000 0 0
  6853.  Type:     33
  6854.  Layer:    0
  6855. End_Chunk
  6856. Chunk: Text
  6857.   "long   TEMP, PARAM[4], COOKING, CURRENT;\r"
  6858.   "char   SHARE[5], PATH[1024], DIR[1024], NAME[32];\r"
  6859.   "short  SOUND, COOKED, TEMP2, RANDOM;\r\r"
  6860.   "/*\r"
  6861.   "HERE IF YOU CLICK ON JO, IT WILL CHECK IF THE ITEM IS GIVABLE\r"
  6862.   "OR BOPABLE AND REACT ACCORDINGLY\r"
  6863.   "*/\r"
  6864.   "resume (0, 2);\r"
  6865.   "if (first)\r"
  6866.   "  strcpy (&DIR, \"c:\\\\pet\\\\sounds\\\\\");\r"
  6867.   "if (activate ('woman', 0) && share (1)>=0)\r"
  6868.   "{\r"
  6869.   "    /*\r"
  6870.   "    GET SOUND FILE FROM DATABASE\r"
  6871.   "    */\r"
  6872.   "  paramGet (share (1), &PARAM);\r"
  6873.   "  if (PARAM[1]>0)\r"
  6874.   "  {\r"
  6875.   "    SOUND=1;\r"
  6876.   "    ltoa (&SHARE, PARAM[1]);\r"
  6877.   "    strcpy (&PATH, &DIR);\r"
  6878.   "    strcat (&PATH, &SHARE);\r"
  6879.   "    strcat (&PATH, \".WAV\");\r"
  6880.   "  }\r"
  6881.   "  if (objAttrP (share (1), \"B\") && share (1)>=0)\r"
  6882.   "  {\r"
  6883.   "    if (SOUND==1)\r"
  6884.   "      playWAV (&PATH);\r"
  6885.   "    statsObj (share (1));\r\r\r"
  6886.   "/*\r"
  6887.   "IF THE OBJEST IS WASHABLE\r"
  6888.   "*/\r"
  6889.   "  }\r"
  6890.   "  if (objAttrP (share (1), \"W\") && share (1)>=0)\r"
  6891.   "  {\r"
  6892.   "    TEMP='WASHER:DOOR'.WASH;\r"
  6893.   "    if (TEMP)\r"
  6894.   "    /* CLOTHES ARE FROM FLOOR */\r"
  6895.   "      alert (\"I can't wear that, you need to wash it first\", 0);\r"
  6896.   "    else\r"
  6897.   "    {\r"
  6898.   "      TEMP2='WASHER:DOOR'.WASHED;\r"
  6899.   "      if (TEMP2)\r"
  6900.   "      {\r"
  6901.   "        repeat (2)\r"
  6902.   "        {\r"
  6903.   "          TEMP='WASHER:DOOR'.CI[inloop];\r"
  6904.   "          if (share (1)==TEMP)\r"
  6905.   "          {\r"
  6906.   "            TEMP2=inloop;\r"
  6907.   "            break;\r"
  6908.   "          }\r"
  6909.   "        }\r"
  6910.   "        ltoa (&SHARE, TEMP2);\r"
  6911.   "        strcpy (&NAME, \"ClothesItemStatus\");\r"
  6912.   "        strcat (&NAME, &SHARE);\r"
  6913.   "        RANDOM=random (3);\r"
  6914.   "        if (RANDOM>0)\r"
  6915.   "        {\r"
  6916.   "          alert (\"Thanks, its perfectly clean, I'll put it back i\"\r"
  6917.   "              \"n my wardrobe.\", 0);\r"
  6918.   "          regPutN (&NAME, 1);\r"
  6919.   "        }\r"
  6920.   "        else\r"
  6921.   "        {\r"
  6922.   "          alert (\"Oh no it has shrunk!! I can't wear that any mor\"\r"
  6923.   "              \"e!\", 0);\r"
  6924.   "          regPutN (&NAME, 0);\r"
  6925.   "        }\r"
  6926.   "        regGetN (\"AmbientCurrent\", &CURRENT);\r"
  6927.   "        regPutN (\"AmbientCurrent\", CURRENT-1);\r"
  6928.   "        settrig (0, 'updateAmbient');\r"
  6929.   "        share (1)=-1;\r"
  6930.   "      }\r"
  6931.   "    }\r\r"
  6932.   "/*\r\r"
  6933.   "IF THE OBJECT IS GIVABLE\r"
  6934.   "*/\r\r"
  6935.   "  }\r"
  6936.   "  if (objAttrP (share (1), \"G\") && share (1)>=0)\r"
  6937.   "  {\r"
  6938.   "    if (SOUND==1)\r"
  6939.   "      playWAV (&PATH);\r"
  6940.   "    statsObj (share (1));\r"
  6941.   "    useObj (share (1));\r\r"
  6942.   "/*\r"
  6943.   "IF THE OBJECT IS Cookable\r"
  6944.   "*/\r\r"
  6945.   "  }\r"
  6946.   "  if (objAttrP (share (1), \"C\") && share (1)>=0)\r"
  6947.   "  {\r"
  6948.   "    COOKED='cookerLogic'.COOKED;\r"
  6949.   "    if (COOKED>0)\r"
  6950.   "    {\r"
  6951.   "      regGetN (\"CookedValue\", &COOKING);\r"
  6952.   "      switch (COOKING);\r"
  6953.   "      case 1: \r"
  6954.   "      {\r"
  6955.   "        alert (\"Yuck! I'm not eating that, it's under cooked!\", \r"
  6956.   "            0);\r"
  6957.   "        settrig (0, 'Items');\r"
  6958.   "      }\r"
  6959.   "      case 2: \r"
  6960.   "      {\r"
  6961.   "        if (SOUND==1)\r"
  6962.   "          playWAV (&PATH);\r"
  6963.   "        statsObj (share (1));\r"
  6964.   "        settrig (0, 'Items');\r"
  6965.   "      }\r"
  6966.   "      case 3: \r"
  6967.   "      {\r"
  6968.   "        alert (\"Yuck!! How can i eat that, it's burnt!!\", 0);\r"
  6969.   "        settrig (0, 'Items');\r\r"
  6970.   "      /*\r"
  6971.   "      ADD SOME DISHES\r"
  6972.   "      */\r\r"
  6973.   "      }\r"
  6974.   "      gvar (2, 'itemsControl')=1;\r"
  6975.   "      settrig (0, 'itemsControl');\r"
  6976.   "    }\r"
  6977.   "    else\r"
  6978.   "      alert (\"You need to cook the food first!!\", 0);\r"
  6979.   "  }\r"
  6980.   "  if (SOUND==1)\r"
  6981.   "    strcpy (&PATH, &DIR);\r"
  6982.   "  SOUND=0;\r"
  6983.   "  while (mouseb)\r"
  6984.   "    waitf;\r"
  6985.   "  clrtrig ('woman', 0);\r"
  6986.   "}\r"
  6987. End_Chunk
  6988. Chunk: SCL
  6989. long   STATS[8];
  6990.  
  6991. short  LOWEST, MOOD, TEMP;
  6992.  
  6993. float  Total;
  6994.  
  6995.  
  6996.  
  6997. /*CODE FOR CLICKING ON JO*/
  6998.  
  6999. resume (2, 2);
  7000.  
  7001. if (activate (#12, 0))
  7002.  
  7003. {
  7004.  
  7005.   if (share (1)>=0)
  7006.  
  7007.   {
  7008.  
  7009.     #12.ROT=0;
  7010.  
  7011.     #12.ONCE=1;
  7012.  
  7013. /*GET HER MOOD*/
  7014.  
  7015.   }
  7016.  
  7017.   statsGet (&STATS);
  7018.  
  7019.   repeat (5)
  7020.  
  7021.   {
  7022.  
  7023.     TEMP=5+-inloop;
  7024.  
  7025.     repeat (5)
  7026.  
  7027.     {
  7028.  
  7029.       if (STATS[TEMP]<STATS[inloop-1] && 
  7030.  
  7031.           STATS[TEMP]<STATS[LOWEST])
  7032.  
  7033.         LOWEST=TEMP;
  7034.  
  7035.     }
  7036.  
  7037.   }
  7038.  
  7039.   MOOD=STATS[LOWEST]/100;
  7040.  
  7041.   MOOD=table (MOOD) {0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4};
  7042.  
  7043.   if (share (1)<0)
  7044.  
  7045.   {
  7046.  
  7047.  
  7048.  
  7049.  
  7050.  
  7051.  
  7052.  
  7053.  /* SOUND RESPONSES FOR TOUCHING UP DEPENDING ON MOOD */
  7054.  
  7055.  
  7056.  
  7057.  
  7058.  
  7059.  
  7060.  
  7061.     switch (MOOD);
  7062.  
  7063.     case 0: 
  7064.  
  7065.       counter (25)=table (random (6)) {176, 11, 29, 82, 89, 90};
  7066.  
  7067.     case 1: 
  7068.  
  7069.       counter (25)=table (random (5)) {175, 178, 41, 28, 72, 
  7070.  
  7071.           12};
  7072.  
  7073.     case 2: 
  7074.  
  7075.       counter (25)=table (random (2)) {15, 9};
  7076.  
  7077.     case 3: 
  7078.  
  7079.       counter (25)=table (random (4)) {171, 179, 94, 174};
  7080.  
  7081.     case 4: 
  7082.  
  7083.       counter (25)=table (random (3)) {172, 173, 174};
  7084.  
  7085.     counter (50)=-2;
  7086.  
  7087.     counter (51)=-2;
  7088.  
  7089.     counter (52)=-2;
  7090.  
  7091.     counter (53)=-2;
  7092.  
  7093.   }
  7094.  
  7095.   else
  7096.  
  7097.     counter (40)=MOOD;
  7098.  
  7099.   statsGet (&STATS);
  7100.  
  7101.   Total=STATS[0]+STATS[1]+STATS[2]+STATS[4];
  7102.  
  7103.   Total=Total/4;
  7104.  
  7105.   if (Total<30)
  7106.  
  7107.   {
  7108.  
  7109.     share (1)=-1;
  7110.  
  7111.     dumpHim (0);
  7112.  
  7113.     exitVis;
  7114.  
  7115.   }
  7116.  
  7117.   while (mouseb)
  7118.  
  7119.     waitf;
  7120.  
  7121.   clrtrig (me, 0);
  7122.  
  7123.   clrtrig (#12, 0);
  7124.  
  7125. }
  7126. end
  7127. End_Chunk
  7128. Chunk: Colours
  7129.  Number: 6
  7130.  0xC5 0x10 0xC5 0xC5 0xC5 0xC5
  7131. End_Chunk
  7132. ;
  7133. ;-------Object   16-------------------------------------------------------
  7134. Chunk: Standard
  7135.  Name:     "Wardrobe"
  7136.  Number:   16
  7137.  Size:     3000 3000 3000
  7138.  Position: 21000 0 0
  7139.  Type:     33
  7140.  Layer:    0
  7141. End_Chunk
  7142. Chunk: SCL
  7143. long   TEMP, GET, TEMP2[19];
  7144.  
  7145. short  REFRESH, CLOTHES=0;
  7146.  
  7147.  
  7148.  
  7149. if (first || REFRESH)
  7150.  
  7151. {
  7152.  
  7153.   if (regGetN ("ClothesItemStatus1", &GET))
  7154.  
  7155.     TEMP2[1]=0;
  7156.  
  7157.   else
  7158.  
  7159.     TEMP2[1]=GET;
  7160.  
  7161.   if (regGetN ("ClothesItemStatus2", &GET))
  7162.  
  7163.     TEMP2[2]=0;
  7164.  
  7165.   else
  7166.  
  7167.     TEMP2[2]=GET;
  7168.  
  7169.   if (regGetN ("ClothesItemStatus3", &GET))
  7170.  
  7171.     TEMP2[3]=0;
  7172.  
  7173.   else
  7174.  
  7175.     TEMP2[3]=GET;
  7176.  
  7177.   if (regGetN ("ClothesItemStatus4", &GET))
  7178.  
  7179.     TEMP2[4]=0;
  7180.  
  7181.   else
  7182.  
  7183.     TEMP2[4]=GET;
  7184.  
  7185.   if (regGetN ("ClothesItemStatus5", &GET))
  7186.  
  7187.     TEMP2[5]=0;
  7188.  
  7189.   else
  7190.  
  7191.     TEMP2[5]=GET;
  7192.  
  7193.   if (regGetN ("ClothesItemStatus6", &GET))
  7194.  
  7195.     TEMP2[6]=0;
  7196.  
  7197.   else
  7198.  
  7199.     TEMP2[6]=GET;
  7200.  
  7201.   if (regGetN ("ClothesItemStatus7", &GET))
  7202.  
  7203.     TEMP2[7]=0;
  7204.  
  7205.   else
  7206.  
  7207.     TEMP2[7]=GET;
  7208.  
  7209.   if (regGetN ("ClothesItemStatus8", &GET))
  7210.  
  7211.     TEMP2[8]=0;
  7212.  
  7213.   else
  7214.  
  7215.     TEMP2[8]=GET;
  7216.  
  7217.   if (regGetN ("ClothesItemStatus9", &GET))
  7218.  
  7219.     TEMP2[9]=0;
  7220.  
  7221.   else
  7222.  
  7223.     TEMP2[9]=GET;
  7224.  
  7225.   if (regGetN ("ClothesItemStatus10", &GET))
  7226.  
  7227.     TEMP2[10]=0;
  7228.  
  7229.   else
  7230.  
  7231.     TEMP2[10]=GET;
  7232.  
  7233.   if (regGetN ("ClothesItemStatus11", &GET))
  7234.  
  7235.     TEMP2[11]=0;
  7236.  
  7237.   else
  7238.  
  7239.     TEMP2[11]=GET;
  7240.  
  7241.   if (regGetN ("ClothesItemStatus12", &GET))
  7242.  
  7243.     TEMP2[12]=0;
  7244.  
  7245.   else
  7246.  
  7247.     TEMP2[12]=GET;
  7248.  
  7249.   if (regGetN ("ClothesItemStatus13", &GET))
  7250.  
  7251.     TEMP2[13]=0;
  7252.  
  7253.   else
  7254.  
  7255.     TEMP2[13]=GET;
  7256.  
  7257.   if (regGetN ("ClothesItemStatus14", &GET))
  7258.  
  7259.     TEMP2[14]=0;
  7260.  
  7261.   else
  7262.  
  7263.     TEMP2[14]=GET;
  7264.  
  7265.   if (regGetN ("ClothesItemStatus15", &GET))
  7266.  
  7267.     TEMP2[15]=0;
  7268.  
  7269.   else
  7270.  
  7271.     TEMP2[15]=GET;
  7272.  
  7273.   if (regGetN ("ClothesItemStatus16", &GET))
  7274.  
  7275.     TEMP2[16]=0;
  7276.  
  7277.   else
  7278.  
  7279.     TEMP2[16]=GET;
  7280.  
  7281.   if (regGetN ("ClothesItemStatus17", &GET))
  7282.  
  7283.     TEMP2[17]=0;
  7284.  
  7285.   else
  7286.  
  7287.     TEMP2[17]=GET;
  7288.  
  7289.   if (regGetN ("ClothesItemStatus18", &GET))
  7290.  
  7291.     TEMP2[18]=0;
  7292.  
  7293.   else
  7294.  
  7295.     TEMP2[18]=GET;
  7296.  
  7297.   repeat (18)
  7298.  
  7299.   {
  7300.  
  7301.     if (TEMP2[inloop]==1)
  7302.  
  7303.       vis (object (table (inloop-1) {#49, #50, #51, #52, #53, 
  7304.  
  7305.           #54, #55, #56, #57, #58, #59, #60, #61, #62, #63, 
  7306.  
  7307.           #169, #64, #65}));
  7308.  
  7309.     else
  7310.  
  7311.       invis (object (table (inloop-1) {#49, #50, #51, #52, #53, 
  7312.  
  7313.           #54, #55, #56, #57, #58, #59, #60, #61, #62, #63, 
  7314.  
  7315.           #169, #64, #65}));
  7316.  
  7317.   }
  7318.  
  7319.   if (share (7))
  7320.  
  7321.   {
  7322.  
  7323.     GET=share (7)-43;
  7324.  
  7325.     invis (object (table (GET-1) {#49, #50, #51, #52, #53, #54, 
  7326.  
  7327.         #55, #56, #57, #58, #59, #60, #61, #62, #63, #169, #64, 
  7328.  
  7329.         #65}));
  7330.  
  7331.   }
  7332.  
  7333.   REFRESH=0;
  7334.  
  7335. }
  7336.  
  7337. if (share (1)!=share (7))
  7338.  
  7339. {
  7340.  
  7341.   share (7)=0;
  7342.  
  7343.   REFRESH=1;
  7344.  
  7345. }
  7346. end
  7347. End_Chunk
  7348. Chunk: Text
  7349.   "long   TEMP, PARAM[4], COOKING, CURRENT;\r"
  7350.   "char   SHARE[5], PATH[1024], DIR[1024], NAME[32];\r"
  7351.   "short  SOUND, COOKED, TEMP2, RANDOM;\r\r"
  7352.   "/*\r"
  7353.   "HERE IF YOU CLICK ON JO, IT WILL CHECK IF THE ITEM IS GIVABLE\r"
  7354.   "OR BOPABLE AND REACT ACCORDINGLY\r"
  7355.   "*/\r"
  7356.   "resume (0, 2);\r"
  7357.   "if (first)\r"
  7358.   "  strcpy (&DIR, \"c:\\\\pet\\\\sounds\\\\\");\r"
  7359.   "if (activate ('woman', 0) && share (1)>=0)\r"
  7360.   "{\r"
  7361.   "    /*\r"
  7362.   "    GET SOUND FILE FROM DATABASE\r"
  7363.   "    */\r"
  7364.   "  paramGet (share (1), &PARAM);\r"
  7365.   "  if (PARAM[1]>0)\r"
  7366.   "  {\r"
  7367.   "    SOUND=1;\r"
  7368.   "    ltoa (&SHARE, PARAM[1]);\r"
  7369.   "    strcpy (&PATH, &DIR);\r"
  7370.   "    strcat (&PATH, &SHARE);\r"
  7371.   "    strcat (&PATH, \".WAV\");\r"
  7372.   "  }\r"
  7373.   "  if (objAttrP (share (1), \"B\") && share (1)>=0)\r"
  7374.   "  {\r"
  7375.   "    if (SOUND==1)\r"
  7376.   "      playWAV (&PATH);\r"
  7377.   "    statsObj (share (1));\r\r\r"
  7378.   "/*\r"
  7379.   "IF THE OBJEST IS WASHABLE\r"
  7380.   "*/\r"
  7381.   "  }\r"
  7382.   "  if (objAttrP (share (1), \"W\") && share (1)>=0)\r"
  7383.   "  {\r"
  7384.   "    TEMP='WASHER:DOOR'.WASH;\r"
  7385.   "    if (TEMP)\r"
  7386.   "    /* CLOTHES ARE FROM FLOOR */\r"
  7387.   "      alert (\"I can't wear that, you need to wash it first\", 0);\r"
  7388.   "    else\r"
  7389.   "    {\r"
  7390.   "      TEMP2='WASHER:DOOR'.WASHED;\r"
  7391.   "      if (TEMP2)\r"
  7392.   "      {\r"
  7393.   "        repeat (2)\r"
  7394.   "        {\r"
  7395.   "          TEMP='WASHER:DOOR'.CI[inloop];\r"
  7396.   "          if (share (1)==TEMP)\r"
  7397.   "          {\r"
  7398.   "            TEMP2=inloop;\r"
  7399.   "            break;\r"
  7400.   "          }\r"
  7401.   "        }\r"
  7402.   "        ltoa (&SHARE, TEMP2);\r"
  7403.   "        strcpy (&NAME, \"ClothesItemStatus\");\r"
  7404.   "        strcat (&NAME, &SHARE);\r"
  7405.   "        RANDOM=random (3);\r"
  7406.   "        if (RANDOM>0)\r"
  7407.   "        {\r"
  7408.   "          alert (\"Thanks, its perfectly clean, I'll put it back i\"\r"
  7409.   "              \"n my wardrobe.\", 0);\r"
  7410.   "          regPutN (&NAME, 1);\r"
  7411.   "        }\r"
  7412.   "        else\r"
  7413.   "        {\r"
  7414.   "          alert (\"Oh no it has shrunk!! I can't wear that any mor\"\r"
  7415.   "              \"e!\", 0);\r"
  7416.   "          regPutN (&NAME, 0);\r"
  7417.   "        }\r"
  7418.   "        regGetN (\"AmbientCurrent\", &CURRENT);\r"
  7419.   "        regPutN (\"AmbientCurrent\", CURRENT-1);\r"
  7420.   "        settrig (0, 'updateAmbient');\r"
  7421.   "        share (1)=-1;\r"
  7422.   "      }\r"
  7423.   "    }\r\r"
  7424.   "/*\r\r"
  7425.   "IF THE OBJECT IS GIVABLE\r"
  7426.   "*/\r\r"
  7427.   "  }\r"
  7428.   "  if (objAttrP (share (1), \"G\") && share (1)>=0)\r"
  7429.   "  {\r"
  7430.   "    if (SOUND==1)\r"
  7431.   "      playWAV (&PATH);\r"
  7432.   "    statsObj (share (1));\r"
  7433.   "    useObj (share (1));\r\r"
  7434.   "/*\r"
  7435.   "IF THE OBJECT IS Cookable\r"
  7436.   "*/\r\r"
  7437.   "  }\r"
  7438.   "  if (objAttrP (share (1), \"C\") && share (1)>=0)\r"
  7439.   "  {\r"
  7440.   "    COOKED='cookerLogic'.COOKED;\r"
  7441.   "    if (COOKED>0)\r"
  7442.   "    {\r"
  7443.   "      regGetN (\"CookedValue\", &COOKING);\r"
  7444.   "      switch (COOKING);\r"
  7445.   "      case 1: \r"
  7446.   "      {\r"
  7447.   "        alert (\"Yuck! I'm not eating that, it's under cooked!\", \r"
  7448.   "            0);\r"
  7449.   "        settrig (0, 'Items');\r"
  7450.   "      }\r"
  7451.   "      case 2: \r"
  7452.   "      {\r"
  7453.   "        if (SOUND==1)\r"
  7454.   "          playWAV (&PATH);\r"
  7455.   "        statsObj (share (1));\r"
  7456.   "        settrig (0, 'Items');\r"
  7457.   "      }\r"
  7458.   "      case 3: \r"
  7459.   "      {\r"
  7460.   "        alert (\"Yuck!! How can i eat that, it's burnt!!\", 0);\r"
  7461.   "        settrig (0, 'Items');\r\r"
  7462.   "      /*\r"
  7463.   "      ADD SOME DISHES\r"
  7464.   "      */\r\r"
  7465.   "      }\r"
  7466.   "      gvar (2, 'itemsControl')=1;\r"
  7467.   "      settrig (0, 'itemsControl');\r"
  7468.   "    }\r"
  7469.   "    else\r"
  7470.   "      alert (\"You need to cook the food first!!\", 0);\r"
  7471.   "  }\r"
  7472.   "  if (SOUND==1)\r"
  7473.   "    strcpy (&PATH, &DIR);\r"
  7474.   "  SOUND=0;\r"
  7475.   "  while (mouseb)\r"
  7476.   "    waitf;\r"
  7477.   "  clrtrig ('woman', 0);\r"
  7478.   "}\r"
  7479. End_Chunk
  7480. Chunk: Colours
  7481.  Number: 6
  7482.  0xC5 0x15 0xC5 0xC5 0xC5 0xC5
  7483. End_Chunk
  7484. ;
  7485. ;-------Object   30-------------------------------------------------------
  7486. Chunk: Standard
  7487.  Name:     "remarks"
  7488.  Number:   30
  7489.  Size:     3000 3000 3000
  7490.  Position: 24000 0 0
  7491.  Type:     33
  7492.  Layer:    0
  7493. End_Chunk
  7494. Chunk: SCL
  7495. long   STATS[8], PARAM[4];
  7496.  
  7497. short  MOOD, RANDOM, TEMP, LOWEST, RND, EXISTS, COOK, CTIMER, 
  7498.  
  7499.     MSLD, TCOOKED;
  7500.  
  7501. long   VALUE, TIMER, DAY, MONTH, CHOUR, CMONTH, CDAY, CMINS;
  7502.  
  7503. char   NAME[35], INLOOP[4];
  7504.  
  7505. objnum OBJECT;
  7506.  
  7507. long   ILL;
  7508.  
  7509.  
  7510.  
  7511. resume (0, 2);
  7512.  
  7513.  
  7514.  
  7515. /*CODE FOR AMBIENT REMARKS*/
  7516.  
  7517.  
  7518.  
  7519. if (first)
  7520.  
  7521. {
  7522.  
  7523.   ranseed (vrtime);
  7524.  
  7525.   if (regGetN ("ill", &ILL))
  7526.  
  7527.     ILL=0;
  7528.  
  7529.   RND=random (2);
  7530.  
  7531.   if (RND==0 && ILL==0)
  7532.  
  7533.     vis (#11);
  7534.  
  7535.   else
  7536.  
  7537.     kill (#11);
  7538.  
  7539.   if (ILL)
  7540.  
  7541.   {
  7542.  
  7543.     vis (#120);
  7544.  
  7545.     counter (20)=251;
  7546.  
  7547.   }
  7548.  
  7549. }
  7550.  
  7551. resume (0, 2);
  7552.  
  7553. if (vis? (#11))
  7554.  
  7555. {
  7556.  
  7557.   EXISTS=0;
  7558.  
  7559.   VALUE=0;
  7560.  
  7561.   RND=random (1500);
  7562.  
  7563.   if (RND==4 || first)
  7564.  
  7565.   {
  7566.  
  7567.     if (regGetN ("Cooking", &VALUE))
  7568.  
  7569.       VALUE=0;
  7570.  
  7571.     if (VALUE)
  7572.  
  7573.     {
  7574.  
  7575.  
  7576.  
  7577.  
  7578.  
  7579.  
  7580.  
  7581.   /*
  7582.  
  7583.  
  7584.  
  7585.  
  7586.  
  7587.  
  7588.  
  7589.   CHECK HOW LONG ITEM HAS BEEN COOKING
  7590.  
  7591.  
  7592.  
  7593.  
  7594.  
  7595.  
  7596.  
  7597.   */
  7598.  
  7599.  
  7600.  
  7601.  
  7602.  
  7603.  
  7604.  
  7605.       regGetN ("CookerTimer", &TIMER);
  7606.  
  7607.       regGetN ("CookDay", &DAY);
  7608.  
  7609.       regGetN ("CookMonth", &MONTH);
  7610.  
  7611.       regGetN ("Cooker", &VALUE);
  7612.  
  7613.       COOK=VALUE;
  7614.  
  7615.       paramGet (COOK, &PARAM);
  7616.  
  7617.       timeCurr (&CHOUR, &CMINS);
  7618.  
  7619.       dateCurr (&CMONTH, &CDAY);
  7620.  
  7621.       CTIMER=CHOUR*60;
  7622.  
  7623.       CTIMER=CTIMER+CMINS;
  7624.  
  7625.       if (CDAY>DAY+1 || CMONTH!=MONTH)
  7626.  
  7627.       {
  7628.  
  7629.  
  7630.  
  7631.  
  7632.  
  7633.  
  7634.  
  7635.      /* HOUSE HAS BURNT */
  7636.  
  7637.  
  7638.  
  7639.  
  7640.  
  7641.  
  7642.  
  7643.  
  7644.  
  7645.  
  7646.  
  7647.  
  7648.  
  7649.  
  7650.  
  7651.         share (1)=-1;
  7652.  
  7653.         dumpHim (1);
  7654.  
  7655.         exitVis;
  7656.  
  7657.       }
  7658.  
  7659.       else
  7660.  
  7661.       {
  7662.  
  7663.         if (CDAY==DAY+1)
  7664.  
  7665.         {
  7666.  
  7667.           MSLD=1440-TIMER;
  7668.  
  7669.           TCOOKED=MSLD+CTIMER;
  7670.  
  7671.         }
  7672.  
  7673.         if (CDAY==DAY)
  7674.  
  7675.           TCOOKED=CTIMER-TIMER;
  7676.  
  7677.         if (TCOOKED<0)
  7678.  
  7679.           TCOOKED=-TCOOKED;
  7680.  
  7681.         if (TCOOKED>=PARAM[0] && TCOOKED<PARAM[0]+10)
  7682.  
  7683.           counter (26)=38;
  7684.  
  7685.         if (TCOOKED>=PARAM[0]+10 && TCOOKED<PARAM[0]+30)
  7686.  
  7687.           counter (26)=table (random (3)) {3, 106, 107};
  7688.  
  7689.         if (TCOOKED>=PARAM[0]+30 && TCOOKED<PARAM[0]+60)
  7690.  
  7691.           counter (26)=table (random (4)) {39, 108, 109};
  7692.  
  7693.  
  7694.  
  7695.         /*vis ('smoke');*/
  7696.  
  7697.  
  7698.  
  7699.         if (TCOOKED>=PARAM[0]+60)
  7700.  
  7701.         { /*BURN HOUSE*/
  7702.  
  7703.  
  7704.  
  7705.           share (1)=-1;
  7706.  
  7707.           dumpHim (1);
  7708.  
  7709.           exitVis;
  7710.  
  7711.         }
  7712.  
  7713.       }
  7714.  
  7715.  
  7716.  
  7717.  
  7718.  
  7719.  
  7720.  
  7721. /*AMBIENT REMARKS*/
  7722.  
  7723.  
  7724.  
  7725.  
  7726.  
  7727.  
  7728.  
  7729.     }
  7730.  
  7731.   }
  7732.  
  7733.   RANDOM=random (1500);
  7734.  
  7735.   if (RANDOM==100)
  7736.  
  7737.   {
  7738.  
  7739.     statsGet (&STATS);
  7740.  
  7741.     repeat (5)
  7742.  
  7743.     {
  7744.  
  7745.       TEMP=5+-inloop;
  7746.  
  7747.       repeat (5)
  7748.  
  7749.       {
  7750.  
  7751.         if (STATS[TEMP]<STATS[inloop-1] && 
  7752.  
  7753.             STATS[TEMP]<STATS[LOWEST])
  7754.  
  7755.           LOWEST=TEMP;
  7756.  
  7757.       }
  7758.  
  7759.     }
  7760.  
  7761.     MOOD=STATS[LOWEST]/100;
  7762.  
  7763.     MOOD=table (MOOD) {0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4};
  7764.  
  7765.     switch (MOOD);
  7766.  
  7767.     case 0: 
  7768.  
  7769.       counter (26)=table (random (4)) {182, 121, 149, 183};
  7770.  
  7771.     case 1: 
  7772.  
  7773.       counter (26)=table (random (3)) {36, 71, 90};
  7774.  
  7775.     case 2: 
  7776.  
  7777.       counter (26)=table (random (3)) {1, 68, 179};
  7778.  
  7779.     case 3: 
  7780.  
  7781.       counter (26)=table (random (4)) {16, 68, 94, 120};
  7782.  
  7783.     case 4: 
  7784.  
  7785.       counter (26)=table (random (3)) {20, 53, 52};
  7786.  
  7787.   }
  7788.  
  7789.   RANDOM=random (2000);
  7790.  
  7791.   if (#12.ROT)
  7792.  
  7793.     counter (20)=-1;
  7794.  
  7795. }
  7796. end
  7797. End_Chunk
  7798. Chunk: Text
  7799.   "long   TEMP, PARAM[4], COOKING, CURRENT;\r"
  7800.   "char   SHARE[5], PATH[1024], DIR[1024], NAME[32];\r"
  7801.   "short  SOUND, COOKED, TEMP2, RANDOM;\r\r"
  7802.   "/*\r"
  7803.   "HERE IF YOU CLICK ON JO, IT WILL CHECK IF THE ITEM IS GIVABLE\r"
  7804.   "OR BOPABLE AND REACT ACCORDINGLY\r"
  7805.   "*/\r"
  7806.   "resume (0, 2);\r"
  7807.   "if (first)\r"
  7808.   "  strcpy (&DIR, \"c:\\\\pet\\\\sounds\\\\\");\r"
  7809.   "if (activate ('woman', 0) && share (1)>=0)\r"
  7810.   "{\r"
  7811.   "    /*\r"
  7812.   "    GET SOUND FILE FROM DATABASE\r"
  7813.   "    */\r"
  7814.   "  paramGet (share (1), &PARAM);\r"
  7815.   "  if (PARAM[1]>0)\r"
  7816.   "  {\r"
  7817.   "    SOUND=1;\r"
  7818.   "    ltoa (&SHARE, PARAM[1]);\r"
  7819.   "    strcpy (&PATH, &DIR);\r"
  7820.   "    strcat (&PATH, &SHARE);\r"
  7821.   "    strcat (&PATH, \".WAV\");\r"
  7822.   "  }\r"
  7823.   "  if (objAttrP (share (1), \"B\") && share (1)>=0)\r"
  7824.   "  {\r"
  7825.   "    if (SOUND==1)\r"
  7826.   "      playWAV (&PATH);\r"
  7827.   "    statsObj (share (1));\r\r\r"
  7828.   "/*\r"
  7829.   "IF THE OBJEST IS WASHABLE\r"
  7830.   "*/\r"
  7831.   "  }\r"
  7832.   "  if (objAttrP (share (1), \"W\") && share (1)>=0)\r"
  7833.   "  {\r"
  7834.   "    TEMP='WASHER:DOOR'.WASH;\r"
  7835.   "    if (TEMP)\r"
  7836.   "    /* CLOTHES ARE FROM FLOOR */\r"
  7837.   "      alert (\"I can't wear that, you need to wash it first\", 0);\r"
  7838.   "    else\r"
  7839.   "    {\r"
  7840.   "      TEMP2='WASHER:DOOR'.WASHED;\r"
  7841.   "      if (TEMP2)\r"
  7842.   "      {\r"
  7843.   "        repeat (2)\r"
  7844.   "        {\r"
  7845.   "          TEMP='WASHER:DOOR'.CI[inloop];\r"
  7846.   "          if (share (1)==TEMP)\r"
  7847.   "          {\r"
  7848.   "            TEMP2=inloop;\r"
  7849.   "            break;\r"
  7850.   "          }\r"
  7851.   "        }\r"
  7852.   "        ltoa (&SHARE, TEMP2);\r"
  7853.   "        strcpy (&NAME, \"ClothesItemStatus\");\r"
  7854.   "        strcat (&NAME, &SHARE);\r"
  7855.   "        RANDOM=random (3);\r"
  7856.   "        if (RANDOM>0)\r"
  7857.   "        {\r"
  7858.   "          alert (\"Thanks, its perfectly clean, I'll put it back i\"\r"
  7859.   "              \"n my wardrobe.\", 0);\r"
  7860.   "          regPutN (&NAME, 1);\r"
  7861.   "        }\r"
  7862.   "        else\r"
  7863.   "        {\r"
  7864.   "          alert (\"Oh no it has shrunk!! I can't wear that any mor\"\r"
  7865.   "              \"e!\", 0);\r"
  7866.   "          regPutN (&NAME, 0);\r"
  7867.   "        }\r"
  7868.   "        regGetN (\"AmbientCurrent\", &CURRENT);\r"
  7869.   "        regPutN (\"AmbientCurrent\", CURRENT-1);\r"
  7870.   "        settrig (0, 'updateAmbient');\r"
  7871.   "        share (1)=-1;\r"
  7872.   "      }\r"
  7873.   "    }\r\r"
  7874.   "/*\r\r"
  7875.   "IF THE OBJECT IS GIVABLE\r"
  7876.   "*/\r\r"
  7877.   "  }\r"
  7878.   "  if (objAttrP (share (1), \"G\") && share (1)>=0)\r"
  7879.   "  {\r"
  7880.   "    if (SOUND==1)\r"
  7881.   "      playWAV (&PATH);\r"
  7882.   "    statsObj (share (1));\r"
  7883.   "    useObj (share (1));\r\r"
  7884.   "/*\r"
  7885.   "IF THE OBJECT IS Cookable\r"
  7886.   "*/\r\r"
  7887.   "  }\r"
  7888.   "  if (objAttrP (share (1), \"C\") && share (1)>=0)\r"
  7889.   "  {\r"
  7890.   "    COOKED='cookerLogic'.COOKED;\r"
  7891.   "    if (COOKED>0)\r"
  7892.   "    {\r"
  7893.   "      regGetN (\"CookedValue\", &COOKING);\r"
  7894.   "      switch (COOKING);\r"
  7895.   "      case 1: \r"
  7896.   "      {\r"
  7897.   "        alert (\"Yuck! I'm not eating that, it's under cooked!\", \r"
  7898.   "            0);\r"
  7899.   "        settrig (0, 'Items');\r"
  7900.   "      }\r"
  7901.   "      case 2: \r"
  7902.   "      {\r"
  7903.   "        if (SOUND==1)\r"
  7904.   "          playWAV (&PATH);\r"
  7905.   "        statsObj (share (1));\r"
  7906.   "        settrig (0, 'Items');\r"
  7907.   "      }\r"
  7908.   "      case 3: \r"
  7909.   "      {\r"
  7910.   "        alert (\"Yuck!! How can i eat that, it's burnt!!\", 0);\r"
  7911.   "        settrig (0, 'Items');\r\r"
  7912.   "      /*\r"
  7913.   "      ADD SOME DISHES\r"
  7914.   "      */\r\r"
  7915.   "      }\r"
  7916.   "      gvar (2, 'itemsControl')=1;\r"
  7917.   "      settrig (0, 'itemsControl');\r"
  7918.   "    }\r"
  7919.   "    else\r"
  7920.   "      alert (\"You need to cook the food first!!\", 0);\r"
  7921.   "  }\r"
  7922.   "  if (SOUND==1)\r"
  7923.   "    strcpy (&PATH, &DIR);\r"
  7924.   "  SOUND=0;\r"
  7925.   "  while (mouseb)\r"
  7926.   "    waitf;\r"
  7927.   "  clrtrig ('woman', 0);\r"
  7928.   "}\r"
  7929. End_Chunk
  7930. Chunk: Colours
  7931.  Number: 6
  7932.  0xC5 0x10 0xC5 0xC5 0xC5 0xC5
  7933. End_Chunk
  7934. ;
  7935. ;-------Object   66-------------------------------------------------------
  7936. Chunk: Standard
  7937.  Name:     "statsOverTime"
  7938.  Number:   66
  7939.  Size:     3000 3000 3000
  7940.  Position: 27000 0 0
  7941.  Type:     33
  7942.  Layer:    0
  7943. End_Chunk
  7944. Chunk: SCL
  7945. /*
  7946.  
  7947.  
  7948.  
  7949. USE THIS CODE TO AFFECT STATS OVER TIME
  7950.  
  7951.  
  7952.  
  7953. AND TO DUMP WHEN STATS GET TOO LOW
  7954.  
  7955.  
  7956.  
  7957. */
  7958.  
  7959.  
  7960.  
  7961. float  DAYS;
  7962.  
  7963. short  Hunger, Happy, Health, Sex;
  7964.  
  7965. long   STATS[8], Time;
  7966.  
  7967. float  Total;
  7968.  
  7969.  
  7970.  
  7971. if (vrtime>Time+120000 || first)
  7972.  
  7973. {
  7974.  
  7975.   Health=0;
  7976.  
  7977.   Happy=0;
  7978.  
  7979.   Sex=0;
  7980.  
  7981.   Hunger=-2;
  7982.  
  7983.   statsGet (&STATS);
  7984.  
  7985.   if (STATS[4]<50)
  7986.  
  7987.     Health=-3;
  7988.  
  7989.   if (STATS[0]<50)
  7990.  
  7991.     Happy=-3;
  7992.  
  7993.   if (STATS[1]<50)
  7994.  
  7995.     Sex=-2;
  7996.  
  7997.   STATS[0]=Health;
  7998.  
  7999.   STATS[1]=Happy;
  8000.  
  8001.   STATS[2]=Sex;
  8002.  
  8003.   STATS[3]=0;
  8004.  
  8005.   STATS[4]=Hunger;
  8006.  
  8007.   STATS[5]=0;
  8008.  
  8009.   STATS[6]=0;
  8010.  
  8011.   STATS[7]=0;
  8012.  
  8013.   statsExp (&STATS);
  8014.  
  8015.   statsGet (&STATS);
  8016.  
  8017.   Total=STATS[0]+STATS[1]+STATS[2]+STATS[4];
  8018.  
  8019.   Total=Total/4;
  8020.  
  8021.   Time=vrtime;
  8022.  
  8023. }
  8024.  
  8025. if (Total<50)
  8026.  
  8027. {
  8028.  
  8029.   share (1)=-1;
  8030.  
  8031.   dumpHim (0);
  8032.  
  8033.   exitVis;
  8034.  
  8035. }
  8036. end
  8037. End_Chunk
  8038. Chunk: Text
  8039.   "long   TEMP, PARAM[4], COOKING, CURRENT;\r"
  8040.   "char   SHARE[5], PATH[1024], DIR[1024], NAME[32];\r"
  8041.   "short  SOUND, COOKED, TEMP2, RANDOM;\r\r"
  8042.   "/*\r"
  8043.   "HERE IF YOU CLICK ON JO, IT WILL CHECK IF THE ITEM IS GIVABLE\r"
  8044.   "OR BOPABLE AND REACT ACCORDINGLY\r"
  8045.   "*/\r"
  8046.   "resume (0, 2);\r"
  8047.   "if (first)\r"
  8048.   "  strcpy (&DIR, \"c:\\\\pet\\\\sounds\\\\\");\r"
  8049.   "if (activate ('woman', 0) && share (1)>=0)\r"
  8050.   "{\r"
  8051.   "    /*\r"
  8052.   "    GET SOUND FILE FROM DATABASE\r"
  8053.   "    */\r"
  8054.   "  paramGet (share (1), &PARAM);\r"
  8055.   "  if (PARAM[1]>0)\r"
  8056.   "  {\r"
  8057.   "    SOUND=1;\r"
  8058.   "    ltoa (&SHARE, PARAM[1]);\r"
  8059.   "    strcpy (&PATH, &DIR);\r"
  8060.   "    strcat (&PATH, &SHARE);\r"
  8061.   "    strcat (&PATH, \".WAV\");\r"
  8062.   "  }\r"
  8063.   "  if (objAttrP (share (1), \"B\") && share (1)>=0)\r"
  8064.   "  {\r"
  8065.   "    if (SOUND==1)\r"
  8066.   "      playWAV (&PATH);\r"
  8067.   "    statsObj (share (1));\r\r\r"
  8068.   "/*\r"
  8069.   "IF THE OBJEST IS WASHABLE\r"
  8070.   "*/\r"
  8071.   "  }\r"
  8072.   "  if (objAttrP (share (1), \"W\") && share (1)>=0)\r"
  8073.   "  {\r"
  8074.   "    TEMP='WASHER:DOOR'.WASH;\r"
  8075.   "    if (TEMP)\r"
  8076.   "    /* CLOTHES ARE FROM FLOOR */\r"
  8077.   "      alert (\"I can't wear that, you need to wash it first\", 0);\r"
  8078.   "    else\r"
  8079.   "    {\r"
  8080.   "      TEMP2='WASHER:DOOR'.WASHED;\r"
  8081.   "      if (TEMP2)\r"
  8082.   "      {\r"
  8083.   "        repeat (2)\r"
  8084.   "        {\r"
  8085.   "          TEMP='WASHER:DOOR'.CI[inloop];\r"
  8086.   "          if (share (1)==TEMP)\r"
  8087.   "          {\r"
  8088.   "            TEMP2=inloop;\r"
  8089.   "            break;\r"
  8090.   "          }\r"
  8091.   "        }\r"
  8092.   "        ltoa (&SHARE, TEMP2);\r"
  8093.   "        strcpy (&NAME, \"ClothesItemStatus\");\r"
  8094.   "        strcat (&NAME, &SHARE);\r"
  8095.   "        RANDOM=random (3);\r"
  8096.   "        if (RANDOM>0)\r"
  8097.   "        {\r"
  8098.   "          alert (\"Thanks, its perfectly clean, I'll put it back i\"\r"
  8099.   "              \"n my wardrobe.\", 0);\r"
  8100.   "          regPutN (&NAME, 1);\r"
  8101.   "        }\r"
  8102.   "        else\r"
  8103.   "        {\r"
  8104.   "          alert (\"Oh no it has shrunk!! I can't wear that any mor\"\r"
  8105.   "              \"e!\", 0);\r"
  8106.   "          regPutN (&NAME, 0);\r"
  8107.   "        }\r"
  8108.   "        regGetN (\"AmbientCurrent\", &CURRENT);\r"
  8109.   "        regPutN (\"AmbientCurrent\", CURRENT-1);\r"
  8110.   "        settrig (0, 'updateAmbient');\r"
  8111.   "        share (1)=-1;\r"
  8112.   "      }\r"
  8113.   "    }\r\r"
  8114.   "/*\r\r"
  8115.   "IF THE OBJECT IS GIVABLE\r"
  8116.   "*/\r\r"
  8117.   "  }\r"
  8118.   "  if (objAttrP (share (1), \"G\") && share (1)>=0)\r"
  8119.   "  {\r"
  8120.   "    if (SOUND==1)\r"
  8121.   "      playWAV (&PATH);\r"
  8122.   "    statsObj (share (1));\r"
  8123.   "    useObj (share (1));\r\r"
  8124.   "/*\r"
  8125.   "IF THE OBJECT IS Cookable\r"
  8126.   "*/\r\r"
  8127.   "  }\r"
  8128.   "  if (objAttrP (share (1), \"C\") && share (1)>=0)\r"
  8129.   "  {\r"
  8130.   "    COOKED='cookerLogic'.COOKED;\r"
  8131.   "    if (COOKED>0)\r"
  8132.   "    {\r"
  8133.   "      regGetN (\"CookedValue\", &COOKING);\r"
  8134.   "      switch (COOKING);\r"
  8135.   "      case 1: \r"
  8136.   "      {\r"
  8137.   "        alert (\"Yuck! I'm not eating that, it's under cooked!\", \r"
  8138.   "            0);\r"
  8139.   "        settrig (0, 'Items');\r"
  8140.   "      }\r"
  8141.   "      case 2: \r"
  8142.   "      {\r"
  8143.   "        if (SOUND==1)\r"
  8144.   "          playWAV (&PATH);\r"
  8145.   "        statsObj (share (1));\r"
  8146.   "        settrig (0, 'Items');\r"
  8147.   "      }\r"
  8148.   "      case 3: \r"
  8149.   "      {\r"
  8150.   "        alert (\"Yuck!! How can i eat that, it's burnt!!\", 0);\r"
  8151.   "        settrig (0, 'Items');\r\r"
  8152.   "      /*\r"
  8153.   "      ADD SOME DISHES\r"
  8154.   "      */\r\r"
  8155.   "      }\r"
  8156.   "      gvar (2, 'itemsControl')=1;\r"
  8157.   "      settrig (0, 'itemsControl');\r"
  8158.   "    }\r"
  8159.   "    else\r"
  8160.   "      alert (\"You need to cook the food first!!\", 0);\r"
  8161.   "  }\r"
  8162.   "  if (SOUND==1)\r"
  8163.   "    strcpy (&PATH, &DIR);\r"
  8164.   "  SOUND=0;\r"
  8165.   "  while (mouseb)\r"
  8166.   "    waitf;\r"
  8167.   "  clrtrig ('woman', 0);\r"
  8168.   "}\r"
  8169. End_Chunk
  8170. Chunk: Colours
  8171.  Number: 6
  8172.  0xC5 0x15 0xC5 0xC5 0xC5 0xC5
  8173. End_Chunk
  8174.  
  8175. End_Children
  8176. ;
  8177. ;-------Object  117-------------------------------------------------------
  8178. Chunk: Standard
  8179.  Name:     "Menus"
  8180.  Number:   117
  8181.  Size:     10000 10000 10000
  8182.  Position: 2141581 0 1983222
  8183.  Type:     65535
  8184.  Layer:    0
  8185. End_Chunk
  8186. Chunk: SCL
  8187. if (first)
  8188.  
  8189. {
  8190.  
  8191.   menuNew (me);
  8192.  
  8193.   menuLock (0);
  8194.  
  8195. }
  8196. end
  8197. End_Chunk
  8198. Chunk: Text
  8199.   "item \"E&xit\" scl exitVis; sclend\r"
  8200.   "item \"A&bout\" scl Credits; sclend"
  8201. End_Chunk
  8202. ;
  8203. ;-------Object  119-------------------------------------------------------
  8204. Chunk: Standard
  8205.  Name:     "clickJo 2"
  8206.  Number:   119
  8207.  Size:     3000 3000 3000
  8208.  Position: 2141551 3000 1958973
  8209.  Type:     33
  8210.  Layer:    0
  8211. End_Chunk
  8212. Chunk: Text
  8213.   "long   TEMP, PARAM[4], COOKING, CURRENT;\r"
  8214.   "char   SHARE[5], PATH[1024], DIR[1024], NAME[32];\r"
  8215.   "short  SOUND, COOKED, TEMP2, RANDOM;\r\r"
  8216.   "/*\r"
  8217.   "HERE IF YOU CLICK ON JO, IT WILL CHECK IF THE ITEM IS GIVABLE\r"
  8218.   "OR BOPABLE AND REACT ACCORDINGLY\r"
  8219.   "*/\r"
  8220.   "resume (0, 2);\r"
  8221.   "if (first)\r"
  8222.   "  strcpy (&DIR, \"c:\\\\pet\\\\sounds\\\\\");\r"
  8223.   "if (activate ('woman', 0) && share (1)>=0)\r"
  8224.   "{\r"
  8225.   "    /*\r"
  8226.   "    GET SOUND FILE FROM DATABASE\r"
  8227.   "    */\r"
  8228.   "  paramGet (share (1), &PARAM);\r"
  8229.   "  if (PARAM[1]>0)\r"
  8230.   "  {\r"
  8231.   "    SOUND=1;\r"
  8232.   "    ltoa (&SHARE, PARAM[1]);\r"
  8233.   "    strcpy (&PATH, &DIR);\r"
  8234.   "    strcat (&PATH, &SHARE);\r"
  8235.   "    strcat (&PATH, \".WAV\");\r"
  8236.   "  }\r"
  8237.   "  if (objAttrP (share (1), \"B\") && share (1)>=0)\r"
  8238.   "  {\r"
  8239.   "    if (SOUND==1)\r"
  8240.   "      playWAV (&PATH);\r"
  8241.   "    statsObj (share (1));\r\r\r"
  8242.   "/*\r"
  8243.   "IF THE OBJEST IS WASHABLE\r"
  8244.   "*/\r"
  8245.   "  }\r"
  8246.   "  if (objAttrP (share (1), \"W\") && share (1)>=0)\r"
  8247.   "  {\r"
  8248.   "    TEMP='WASHER:DOOR'.WASH;\r"
  8249.   "    if (TEMP)\r"
  8250.   "    /* CLOTHES ARE FROM FLOOR */\r"
  8251.   "      alert (\"I can't wear that, you need to wash it first\", 0);\r"
  8252.   "    else\r"
  8253.   "    {\r"
  8254.   "      TEMP2='WASHER:DOOR'.WASHED;\r"
  8255.   "      if (TEMP2)\r"
  8256.   "      {\r"
  8257.   "        repeat (2)\r"
  8258.   "        {\r"
  8259.   "          TEMP='WASHER:DOOR'.CI[inloop];\r"
  8260.   "          if (share (1)==TEMP)\r"
  8261.   "          {\r"
  8262.   "            TEMP2=inloop;\r"
  8263.   "            break;\r"
  8264.   "          }\r"
  8265.   "        }\r"
  8266.   "        ltoa (&SHARE, TEMP2);\r"
  8267.   "        strcpy (&NAME, \"ClothesItemStatus\");\r"
  8268.   "        strcat (&NAME, &SHARE);\r"
  8269.   "        RANDOM=random (3);\r"
  8270.   "        if (RANDOM>0)\r"
  8271.   "        {\r"
  8272.   "          alert (\"Thanks, its perfectly clean, I'll put it back i\"\r"
  8273.   "              \"n my wardrobe.\", 0);\r"
  8274.   "          regPutN (&NAME, 1);\r"
  8275.   "        }\r"
  8276.   "        else\r"
  8277.   "        {\r"
  8278.   "          alert (\"Oh no it has shrunk!! I can't wear that any mor\"\r"
  8279.   "              \"e!\", 0);\r"
  8280.   "          regPutN (&NAME, 0);\r"
  8281.   "        }\r"
  8282.   "        regGetN (\"AmbientCurrent\", &CURRENT);\r"
  8283.   "        regPutN (\"AmbientCurrent\", CURRENT-1);\r"
  8284.   "        settrig (0, 'updateAmbient');\r"
  8285.   "        share (1)=-1;\r"
  8286.   "      }\r"
  8287.   "    }\r\r"
  8288.   "/*\r\r"
  8289.   "IF THE OBJECT IS GIVABLE\r"
  8290.   "*/\r\r"
  8291.   "  }\r"
  8292.   "  if (objAttrP (share (1), \"G\") && share (1)>=0)\r"
  8293.   "  {\r"
  8294.   "    if (SOUND==1)\r"
  8295.   "      playWAV (&PATH);\r"
  8296.   "    statsObj (share (1));\r"
  8297.   "    useObj (share (1));\r\r"
  8298.   "/*\r"
  8299.   "IF THE OBJECT IS Cookable\r"
  8300.   "*/\r\r"
  8301.   "  }\r"
  8302.   "  if (objAttrP (share (1), \"C\") && share (1)>=0)\r"
  8303.   "  {\r"
  8304.   "    COOKED='cookerLogic'.COOKED;\r"
  8305.   "    if (COOKED>0)\r"
  8306.   "    {\r"
  8307.   "      regGetN (\"CookedValue\", &COOKING);\r"
  8308.   "      switch (COOKING);\r"
  8309.   "      case 1: \r"
  8310.   "      {\r"
  8311.   "        alert (\"Yuck! I'm not eating that, it's under cooked!\", \r"
  8312.   "            0);\r"
  8313.   "        settrig (0, 'Items');\r"
  8314.   "      }\r"
  8315.   "      case 2: \r"
  8316.   "      {\r"
  8317.   "        if (SOUND==1)\r"
  8318.   "          playWAV (&PATH);\r"
  8319.   "        statsObj (share (1));\r"
  8320.   "        settrig (0, 'Items');\r"
  8321.   "      }\r"
  8322.   "      case 3: \r"
  8323.   "      {\r"
  8324.   "        alert (\"Yuck!! How can i eat that, it's burnt!!\", 0);\r"
  8325.   "        settrig (0, 'Items');\r\r"
  8326.   "      /*\r"
  8327.   "      ADD SOME DISHES\r"
  8328.   "      */\r\r"
  8329.   "      }\r"
  8330.   "      gvar (2, 'itemsControl')=1;\r"
  8331.   "      settrig (0, 'itemsControl');\r"
  8332.   "    }\r"
  8333.   "    else\r"
  8334.   "      alert (\"You need to cook the food first!!\", 0);\r"
  8335.   "  }\r"
  8336.   "  if (SOUND==1)\r"
  8337.   "    strcpy (&PATH, &DIR);\r"
  8338.   "  SOUND=0;\r"
  8339.   "  while (mouseb)\r"
  8340.   "    waitf;\r"
  8341.   "  clrtrig ('woman', 0);\r"
  8342.   "}\r"
  8343. End_Chunk
  8344. Chunk: SCL
  8345. long   TEMP, COOKING;
  8346.  
  8347. short  COOKED, FREE=1, MOOD, WEAR;
  8348.  
  8349. char   NAME[256], SHARE[10];
  8350.  
  8351.  
  8352.  
  8353. resume (4, 4);
  8354.  
  8355.  
  8356.  
  8357. /*CODE FOR CLICKING ON JO*/
  8358.  
  8359.  
  8360.  
  8361. if (first)
  8362.  
  8363.   counter (40)=-1;
  8364.  
  8365. if (counter (40)>=0)
  8366.  
  8367. {
  8368.  
  8369.   FREE=1;
  8370.  
  8371.   MOOD=counter (40);
  8372.  
  8373.   counter (40)=-1;
  8374.  
  8375.   if (share (1)>=0)
  8376.  
  8377.   {
  8378.  
  8379.     if (objAttrP (share (1), "G"))
  8380.  
  8381.     {
  8382.  
  8383.  
  8384.  
  8385.       /* SOUND RESPONSES FOR GIVE DEPENDING ON MOOD  */
  8386.  
  8387.  
  8388.  
  8389.       switch (MOOD);
  8390.  
  8391.       case 0: 
  8392.  
  8393.         counter (25)=table (random (4)) {95, 97, 6, 105};
  8394.  
  8395.       case 1: 
  8396.  
  8397.         counter (25)=table (random (3)) {95, 97, 6};
  8398.  
  8399.       case 2: 
  8400.  
  8401.         counter (25)=table (random (4)) {6, 14, 21, 91};
  8402.  
  8403.       case 3: 
  8404.  
  8405.         counter (25)=table (random (10)) {21, 16, 40, 91, 6, 20, 
  8406.  
  8407.             14, 21, 171, 91};
  8408.  
  8409.       case 4: 
  8410.  
  8411.         counter (25)=table (random (10)) {20, 52, 53, 94, 159, 
  8412.  
  8413.             171, 14, 1, 91, 40};
  8414.  
  8415.  
  8416.  
  8417.  
  8418.  
  8419.  
  8420.  
  8421.  
  8422.  
  8423.  
  8424.  
  8425.  
  8426.  
  8427.  
  8428.  
  8429.       /* END OF GIVE */
  8430.  
  8431.  
  8432.  
  8433.  
  8434.  
  8435.  
  8436.  
  8437.     }
  8438.  
  8439.     if (share (1)>=0)
  8440.  
  8441.     {
  8442.  
  8443.       if (objAttrP (share (1), "C") && FREE)
  8444.  
  8445.       {
  8446.  
  8447.         COOKED=share (5);
  8448.  
  8449.         if (COOKED>0)
  8450.  
  8451.         {
  8452.  
  8453.           if (share (1)==22 || share (1)==23)
  8454.  
  8455.           {
  8456.  
  8457.  
  8458.  
  8459.  
  8460.  
  8461.  
  8462.  
  8463.             /* YOU COOKED THE FISH OR THE DOG*/
  8464.  
  8465.  
  8466.  
  8467.  
  8468.  
  8469.  
  8470.  
  8471.             counter (25)=table (random (6)) {30, 63, 72, 73, 72, 
  8472.  
  8473.                 72};
  8474.  
  8475.             counter (20)=table (random (3)) {105, 113, 138};
  8476.  
  8477.             share (5)=0;
  8478.  
  8479.             counter (51)=-200;
  8480.  
  8481.             counter (52)=-50;
  8482.  
  8483.             share (1)=-1;
  8484.  
  8485.           }
  8486.  
  8487.           if (share (1)>13 && share (1)<21)
  8488.  
  8489.           {
  8490.  
  8491.             regGetN ("CookedValue", &COOKING);
  8492.  
  8493.             share (5)=0;
  8494.  
  8495.             switch (COOKING);
  8496.  
  8497.             case 1: 
  8498.  
  8499.             {
  8500.  
  8501.  
  8502.  
  8503.  
  8504.  
  8505.  
  8506.  
  8507.             /*UNDER COOKED*/
  8508.  
  8509.  
  8510.  
  8511.  
  8512.  
  8513.  
  8514.  
  8515.               counter (25)=44;
  8516.  
  8517.               counter (20)=table (random (3)) {169, 170, 189};
  8518.  
  8519.               counter (51)=-20;
  8520.  
  8521.               share (1)=-1;
  8522.  
  8523.             }
  8524.  
  8525.             case 2: 
  8526.  
  8527.             {
  8528.  
  8529.  
  8530.  
  8531.  
  8532.  
  8533.  
  8534.  
  8535.             /*PERFECT*/
  8536.  
  8537.  
  8538.  
  8539.  
  8540.  
  8541.  
  8542.  
  8543.               counter (25)=table (random (3)) {13, 62, 104};
  8544.  
  8545.               counter (20)=table (random (3)) {107, 112, 134};
  8546.  
  8547.               statsObj (share (1));
  8548.  
  8549.               share (1)=-1;
  8550.  
  8551.             }
  8552.  
  8553.             case 3: 
  8554.  
  8555.             {
  8556.  
  8557.  
  8558.  
  8559.  
  8560.  
  8561.  
  8562.  
  8563.             /*BURNT*/
  8564.  
  8565.  
  8566.  
  8567.  
  8568.  
  8569.  
  8570.  
  8571.               counter (25)=table (random (4)) {5, 61, 102, 103};
  8572.  
  8573.               counter (20)=table (random (3)) {113, 138, 184};
  8574.  
  8575.               counter (51)=-10;
  8576.  
  8577.               share (1)=-1;
  8578.  
  8579.             }
  8580.  
  8581.             case 4: 
  8582.  
  8583.             {
  8584.  
  8585.               counter (25)=table (random (4)) {5, 61, 102, 103};
  8586.  
  8587.               counter (20)=table (random (3)) {113, 138, 184};
  8588.  
  8589.               counter (51)=-10;
  8590.  
  8591.               share (1)=-1;
  8592.  
  8593.             }
  8594.  
  8595.             case 5: 
  8596.  
  8597.             {
  8598.  
  8599.               counter (25)=table (random (4)) {5, 61, 102, 103};
  8600.  
  8601.               counter (20)=table (random (3)) {113, 138, 184};
  8602.  
  8603.               counter (51)=-10;
  8604.  
  8605.               share (1)=-1;
  8606.  
  8607.  
  8608.  
  8609.  
  8610.  
  8611.  
  8612.  
  8613.             /* ADD SOME DISHES*/
  8614.  
  8615.  
  8616.  
  8617.  
  8618.  
  8619.  
  8620.  
  8621.             }
  8622.  
  8623.             repeat (10)
  8624.  
  8625.             {
  8626.  
  8627.               strcpy (&NAME, "Dishes");
  8628.  
  8629.               ltoa (&SHARE, inloop);
  8630.  
  8631.               strcat (&NAME, &SHARE);
  8632.  
  8633.               if (regGetN (&NAME, &TEMP))
  8634.  
  8635.               {
  8636.  
  8637.                 regPutN (&NAME, 1);
  8638.  
  8639.                 break;
  8640.  
  8641.               }
  8642.  
  8643.               else
  8644.  
  8645.               {
  8646.  
  8647.                 if (TEMP==0)
  8648.  
  8649.                 {
  8650.  
  8651.                   regPutN (&NAME, 1);
  8652.  
  8653.                   break;
  8654.  
  8655.                 }
  8656.  
  8657.               }
  8658.  
  8659.             }
  8660.  
  8661.           }
  8662.  
  8663.           FREE=0;
  8664.  
  8665.         }
  8666.  
  8667.         else
  8668.  
  8669.         {
  8670.  
  8671.           if (share (1)!=22 && share (1)!=23)
  8672.  
  8673.           {
  8674.  
  8675.             counter (25)=table (random (2)) {24, 101};
  8676.  
  8677.             counter (20)=table (random (3)) {169, 170, 189};
  8678.  
  8679.             FREE=0;
  8680.  
  8681.           }
  8682.  
  8683.         }
  8684.  
  8685.       }
  8686.  
  8687.     }
  8688.  
  8689.     WEAR=share (7);
  8690.  
  8691.     if (share (1)>=0 && FREE && WEAR==0)
  8692.  
  8693.     {
  8694.  
  8695.       if (objAttrP (share (1), "W"))
  8696.  
  8697.       {
  8698.  
  8699.         if (share (1)>43 && share (1)<62)
  8700.  
  8701.         {
  8702.  
  8703.           strcpy (&NAME, "ClothesItemStatus");
  8704.  
  8705.           TEMP=share (1)-43;
  8706.  
  8707.           ltoa (&SHARE, TEMP);
  8708.  
  8709.           strcat (&NAME, &SHARE);
  8710.  
  8711.           if (regGetN (&NAME, &TEMP))
  8712.  
  8713.             TEMP=0;
  8714.  
  8715.           if (TEMP>0)
  8716.  
  8717.           {
  8718.  
  8719.             share (1)=-1;
  8720.  
  8721.             counter (20)=-1;
  8722.  
  8723.             counter (25)=189;
  8724.  
  8725.           }
  8726.  
  8727.           else
  8728.  
  8729.           {
  8730.  
  8731.               /* TAKE IT */
  8732.  
  8733.             strcpy (&NAME, "ClothesItemStatus");
  8734.  
  8735.             TEMP=share (1)-43;
  8736.  
  8737.             ltoa (&SHARE, TEMP);
  8738.  
  8739.             strcat (&NAME, &SHARE);
  8740.  
  8741.             regPutN (&NAME, 1);
  8742.  
  8743.             statsObj (share (1));
  8744.  
  8745.             useObj (share (1));
  8746.  
  8747.             #16.REFRESH=1;
  8748.  
  8749.             counter (25)=193;
  8750.  
  8751.           }
  8752.  
  8753.         }
  8754.  
  8755.         FREE=0;
  8756.  
  8757.       }
  8758.  
  8759.     }
  8760.  
  8761.     if (share (1)>=0 && FREE && WEAR)
  8762.  
  8763.     {
  8764.  
  8765.       if (objAttrP (share (1), "W"))
  8766.  
  8767.       {
  8768.  
  8769.         if (share (1)>43 && share (1)<62)
  8770.  
  8771.         {
  8772.  
  8773.           if (MOOD>2)
  8774.  
  8775.           {
  8776.  
  8777.             #12.ROT=share (1);
  8778.  
  8779.             strcpy (&NAME, "ClothesItemStatus");
  8780.  
  8781.             TEMP=share (1)-43;
  8782.  
  8783.             ltoa (&SHARE, TEMP);
  8784.  
  8785.             strcat (&NAME, &SHARE);
  8786.  
  8787.             regPutN (&NAME, 2);
  8788.  
  8789.             counter (30)=1;
  8790.  
  8791.             counter (25)=table (random (6)) {19, 40, 42, 43, 46, 
  8792.  
  8793.                 159, 15};
  8794.  
  8795.             share (1)=-1;
  8796.  
  8797.           }
  8798.  
  8799.           else
  8800.  
  8801.           {
  8802.  
  8803.             /* NOT IN THE MOOD */
  8804.  
  8805.             share (1)=-1;
  8806.  
  8807.             counter (25)=table (random (6)) {27, 92, 127};
  8808.  
  8809.           }
  8810.  
  8811.         }
  8812.  
  8813.         FREE=0;
  8814.  
  8815.         share (7)=0;
  8816.  
  8817.       }
  8818.  
  8819.     }
  8820.  
  8821.     if (share (1)>-1 && share (1)<2 && FREE)
  8822.  
  8823.     { /*flowers*/
  8824.  
  8825.  
  8826.  
  8827.  
  8828.  
  8829.  
  8830.  
  8831.       counter (20)=table (random (4)) {108, 109, 110, 111};
  8832.  
  8833.       statsObj (share (1));
  8834.  
  8835.       useObj (share (1));
  8836.  
  8837.       FREE=0;
  8838.  
  8839.     }
  8840.  
  8841.     if (share (1)>1 && share (1)<4 && FREE)
  8842.  
  8843.     { /*chocs*/
  8844.  
  8845.  
  8846.  
  8847.  
  8848.  
  8849.  
  8850.  
  8851.       if (random (5)==3)
  8852.  
  8853.         counter (25)=33;
  8854.  
  8855.       counter (20)=table (random (4)) {190, 191, 192, 193};
  8856.  
  8857.       statsObj (share (1));
  8858.  
  8859.       useObj (share (1));
  8860.  
  8861.       FREE=0;
  8862.  
  8863.     }
  8864.  
  8865.     if (share (1)==9 && FREE)
  8866.  
  8867.     { /*budviser*/
  8868.  
  8869.  
  8870.  
  8871.  
  8872.  
  8873.  
  8874.  
  8875.       counter (25)=table (random (2)) {67, 123};
  8876.  
  8877.       counter (20)=133;
  8878.  
  8879.       statsObj (share (1));
  8880.  
  8881.       useObj (share (1));
  8882.  
  8883.       FREE=0;
  8884.  
  8885.     }
  8886.  
  8887.     if (share (1)==33 && FREE)
  8888.  
  8889.     { /*frying pan*/
  8890.  
  8891.  
  8892.  
  8893.  
  8894.  
  8895.  
  8896.  
  8897.       counter (20)=table (random (6)) {104, 103, 102, 0, 104, 
  8898.  
  8899.           105, 113};
  8900.  
  8901.       counter (25)=186;
  8902.  
  8903.       counter (26)=table (random (14)) {11, 12, 28, 63, 82, 83, 
  8904.  
  8905.           89, 90, 148, 175, 176, 178, 180, 73};
  8906.  
  8907.       statsObj (share (1));
  8908.  
  8909.       if (MOOD<2)
  8910.  
  8911.       {
  8912.  
  8913.         #13.Go=0;
  8914.  
  8915.         counter (21)=1;
  8916.  
  8917.         repeat (6)
  8918.  
  8919.         {
  8920.  
  8921.           counter (20)=table (inloop-1) {154, 155, 151, 160, 
  8922.  
  8923.               161, 158};
  8924.  
  8925.           waitfs (5);
  8926.  
  8927.         }
  8928.  
  8929.         counter (21)=0;
  8930.  
  8931.         #13.Go=1;
  8932.  
  8933.       }
  8934.  
  8935.       FREE=0;
  8936.  
  8937.     }
  8938.  
  8939.     if (share (1)==34 && FREE)
  8940.  
  8941.     { /*whip*/
  8942.  
  8943.  
  8944.  
  8945.  
  8946.  
  8947.  
  8948.  
  8949.       counter (20)=table (MOOD) {8, 138, 102, 277, 277};
  8950.  
  8951.       counter (25)=185;
  8952.  
  8953.       if (MOOD>2)
  8954.  
  8955.         counter (26)=table (random (8)) {9, 15, 85, 86, 94, 130, 
  8956.  
  8957.             171, 179};
  8958.  
  8959.       else
  8960.  
  8961.         counter (26)=table (random (15)) {93, 11, 12, 28, 63, 
  8962.  
  8963.             82, 83, 89, 90, 148, 175, 176, 178, 180, 73};
  8964.  
  8965.       statsObj (share (1));
  8966.  
  8967.       FREE=0;
  8968.  
  8969.     }
  8970.  
  8971.     if (share (1)==63 && FREE)
  8972.  
  8973.     {
  8974.  
  8975.       share (70)=3;
  8976.  
  8977.  
  8978.  
  8979.  
  8980.  
  8981.  
  8982.  
  8983.     /*add menu lock stuff*/
  8984.  
  8985.  
  8986.  
  8987.  
  8988.  
  8989.  
  8990.  
  8991.       statsObj (share (1));
  8992.  
  8993.       useObj (share (1));
  8994.  
  8995.       FREE=0;
  8996.  
  8997.       menuLock (1);
  8998.  
  8999.       loadvrt ("map.vrt");
  9000.  
  9001.     }
  9002.  
  9003.     if (share (1)==64 && FREE)
  9004.  
  9005.     {
  9006.  
  9007.       share (70)=2;
  9008.  
  9009.       statsObj (share (1));
  9010.  
  9011.       useObj (share (1));
  9012.  
  9013.       FREE=0;
  9014.  
  9015.       menuLock (1);
  9016.  
  9017.       loadvrt ("map.vrt");
  9018.  
  9019.     }
  9020.  
  9021.     if (share (1)==79 && FREE)
  9022.  
  9023.     {
  9024.  
  9025.       share (70)=1;
  9026.  
  9027.       statsObj (share (1));
  9028.  
  9029.       useObj (share (1));
  9030.  
  9031.       FREE=0;
  9032.  
  9033.       menuLock (1);
  9034.  
  9035.       loadvrt ("map.vrt");
  9036.  
  9037.     }
  9038.  
  9039.     if (share (1)>39 && share (1)<43 && FREE)
  9040.  
  9041.     {
  9042.  
  9043.       share (70)=0;
  9044.  
  9045.       switch (share (1));
  9046.  
  9047.       case 40: 
  9048.  
  9049.         share (69)=1;
  9050.  
  9051.       case 41: 
  9052.  
  9053.         share (69)=2;
  9054.  
  9055.       case 42: 
  9056.  
  9057.         share (69)=3;
  9058.  
  9059.       statsObj (share (1));
  9060.  
  9061.       useObj (share (1));
  9062.  
  9063.       FREE=0;
  9064.  
  9065.       share (1)=76;
  9066.  
  9067.       menuLock (1);
  9068.  
  9069.       loadvrt ("map.vrt");
  9070.  
  9071.     }
  9072.  
  9073.     if (share (1)==81 && FREE)
  9074.  
  9075.     {
  9076.  
  9077.       if (MOOD>2)
  9078.  
  9079.       {
  9080.  
  9081.         statsObj (share (1));
  9082.  
  9083.         useObj (share (1));
  9084.  
  9085.         menuLock (1);
  9086.  
  9087.         loadvrt ("striptease.vrt");
  9088.  
  9089.       }
  9090.  
  9091.       else
  9092.  
  9093.       {
  9094.  
  9095.         counter (25)=92;
  9096.  
  9097.         counter (20)=table (random (5)) {164, 169, 170, 189, 
  9098.  
  9099.             184};
  9100.  
  9101.         share (1)=-1;
  9102.  
  9103.       }
  9104.  
  9105.       FREE=0;
  9106.  
  9107.     }
  9108.  
  9109.     if (share (1)>9 && share (1)<13 && FREE)
  9110.  
  9111.     {
  9112.  
  9113.       counter (25)=192;
  9114.  
  9115.       statsObj (share (1));
  9116.  
  9117.       useObj (share (1));
  9118.  
  9119.       FREE=0;
  9120.  
  9121.     }
  9122.  
  9123.     if (share (1)==22)
  9124.  
  9125.     {
  9126.  
  9127.       if (regGetN ("dog", &TEMP))
  9128.  
  9129.         TEMP=0;
  9130.  
  9131.       if (TEMP!=0)
  9132.  
  9133.       {
  9134.  
  9135.         counter (20)=134;
  9136.  
  9137.         counter (25)=171;
  9138.  
  9139.         regPutN ("dog", 5);
  9140.  
  9141.         statsObj (share (1));
  9142.  
  9143.         useObj (share (1));
  9144.  
  9145.       }
  9146.  
  9147.       else
  9148.  
  9149.         counter (25)=-1;
  9150.  
  9151.       FREE=0;
  9152.  
  9153.     }
  9154.  
  9155.     if (share (1)>39 && share (1)<43 && FREE)
  9156.  
  9157.     {
  9158.  
  9159.       counter (20)=-1;
  9160.  
  9161.       counter (25)=-1;
  9162.  
  9163.       FREE=0;
  9164.  
  9165.     }
  9166.  
  9167.     if (share (1)>64 && share (1)<67 && FREE)
  9168.  
  9169.     {
  9170.  
  9171.       counter (20)=-1;
  9172.  
  9173.       counter (25)=-1;
  9174.  
  9175.       FREE=0;
  9176.  
  9177.     }
  9178.  
  9179.     if (share (1)==4 && FREE)
  9180.  
  9181.     {
  9182.  
  9183.       counter (20)=136;
  9184.  
  9185.       counter (25)=table (random (2)) {80, 76};
  9186.  
  9187.       statsObj (share (1));
  9188.  
  9189.       useObj (share (1));
  9190.  
  9191.       FREE=0;
  9192.  
  9193.     }
  9194.  
  9195.     if (share (1)==7 && FREE)
  9196.  
  9197.     {
  9198.  
  9199.       counter (25)=20;
  9200.  
  9201.       statsObj (share (1));
  9202.  
  9203.       useObj (share (1));
  9204.  
  9205.       counter (21)=1;
  9206.  
  9207.       #13.Go=0;
  9208.  
  9209.       repeat (6)
  9210.  
  9211.       {
  9212.  
  9213.         counter (20)=table (inloop-1) {283, 285, 287, 286, 288, 
  9214.  
  9215.             289};
  9216.  
  9217.         waitfs (5);
  9218.  
  9219.       }
  9220.  
  9221.       waitfs (5);
  9222.  
  9223.       counter (21)=0;
  9224.  
  9225.       #13.Go=1;
  9226.  
  9227.       FREE=0;
  9228.  
  9229.     }
  9230.  
  9231.     if (share (1)>4 && share (1)<7 && FREE)
  9232.  
  9233.     {
  9234.  
  9235.       counter (20)=table (random (3)) {170, 137, 300};
  9236.  
  9237.       statsObj (share (1));
  9238.  
  9239.       useObj (share (1));
  9240.  
  9241.       FREE=0;
  9242.  
  9243.     }
  9244.  
  9245.     if (share (1)==80 && FREE)
  9246.  
  9247.     {
  9248.  
  9249.       counter (20)=table (random (5)) {309, 310, 311, 312, 313};
  9250.  
  9251.       statsObj (share (1));
  9252.  
  9253.       useObj (share (1));
  9254.  
  9255.       FREE=0;
  9256.  
  9257.     }
  9258.  
  9259.     if (share (1)==29 && FREE)
  9260.  
  9261.     {
  9262.  
  9263.       counter (20)=table (random (2)) {105, 138};
  9264.  
  9265.       counter (25)=88;
  9266.  
  9267.       regPutN ("ill", 1);
  9268.  
  9269.       statsObj (share (1));
  9270.  
  9271.       useObj (share (1));
  9272.  
  9273.       FREE=0;
  9274.  
  9275.     }
  9276.  
  9277.     if (share (1)==27 && FREE)
  9278.  
  9279.     {
  9280.  
  9281.       counter (20)=table (random (2)) {105, 138};
  9282.  
  9283.       counter (25)=88;
  9284.  
  9285.       regPutN ("ill", 1);
  9286.  
  9287.       statsObj (share (1));
  9288.  
  9289.       useObj (share (1));
  9290.  
  9291.       FREE=0;
  9292.  
  9293.     }
  9294.  
  9295.   }
  9296.  
  9297. }
  9298. end
  9299. End_Chunk
  9300. Chunk: Colours
  9301.  Number: 6
  9302.  0xC5 0x10 0xC5 0xC5 0xC5 0xC5
  9303. End_Chunk
  9304. ;
  9305. ;-------Object  121-------------------------------------------------------
  9306. Chunk: Standard
  9307.  Name:     "puke"
  9308.  Number:   121
  9309.  Size:     3000 3000 3000
  9310.  Position: 2150551 3000 1958973
  9311.  Type:     33
  9312.  Layer:    0
  9313. End_Chunk
  9314. Chunk: SCL
  9315. short  RND, SAY=1, COOKED;
  9316.  
  9317. long   COOKING, TEMP, STATS[8];
  9318.  
  9319. char   NAME[256], SHARE[10];
  9320.  
  9321.  
  9322.  
  9323. resume (1, 2);
  9324.  
  9325. if (vis? (#120))
  9326.  
  9327. {
  9328.  
  9329.   if (activate (#120, 0))
  9330.  
  9331.   {
  9332.  
  9333.     SAY=1;
  9334.  
  9335.     if (share (1)>=0)
  9336.  
  9337.     {
  9338.  
  9339.       if (objAttrP (share (1), "C"))
  9340.  
  9341.       {
  9342.  
  9343.         COOKED=share (5);
  9344.  
  9345.         if (COOKED>0)
  9346.  
  9347.         {
  9348.  
  9349.           if (share (1)==22 || share (1)==23)
  9350.  
  9351.  
  9352.  
  9353.             /* YOU COOKED THE FISH OR THE DOG*/
  9354.  
  9355.  
  9356.  
  9357.             SAY=1;
  9358.  
  9359.           if (share (1)>13 && share (1)<21)
  9360.  
  9361.           {
  9362.  
  9363.             regGetN ("CookedValue", &COOKING);
  9364.  
  9365.             share (5)=0;
  9366.  
  9367.             switch (COOKING);
  9368.  
  9369.             case 1: 
  9370.  
  9371.             {
  9372.  
  9373.  
  9374.  
  9375.             /*UNDER COOKED*/
  9376.  
  9377.  
  9378.  
  9379.               counter (25)=44;
  9380.  
  9381.               share (1)=-1;
  9382.  
  9383.             }
  9384.  
  9385.             case 2: 
  9386.  
  9387.             {
  9388.  
  9389.  
  9390.  
  9391.             /*PERFECT*/
  9392.  
  9393.  
  9394.  
  9395.               counter (25)=table (random (3)) {16, 52, 53};
  9396.  
  9397.               counter (20)=259;
  9398.  
  9399.               statsObj (share (1));
  9400.  
  9401.               SAY=0;
  9402.  
  9403.               regPutN ("ill", 0);
  9404.  
  9405.               counter (51)=10;
  9406.  
  9407.               share (1)=-1;
  9408.  
  9409.             }
  9410.  
  9411.             case 3: 
  9412.  
  9413.             {
  9414.  
  9415.             /*BURNT*/
  9416.  
  9417.  
  9418.  
  9419.               SAY=1;
  9420.  
  9421.               share (1)=-1;
  9422.  
  9423.             }
  9424.  
  9425.             case 4: 
  9426.  
  9427.             {
  9428.  
  9429.               SAY=1;
  9430.  
  9431.               share (1)=-1;
  9432.  
  9433.             }
  9434.  
  9435.             case 5: 
  9436.  
  9437.             {
  9438.  
  9439.               SAY=1;
  9440.  
  9441.               share (1)=-1;
  9442.  
  9443.  
  9444.  
  9445.  
  9446.  
  9447.  
  9448.  
  9449.             /* ADD SOME DISHES*/
  9450.  
  9451.  
  9452.  
  9453.  
  9454.  
  9455.  
  9456.  
  9457.             }
  9458.  
  9459.             repeat (10)
  9460.  
  9461.             {
  9462.  
  9463.               strcpy (&NAME, "Dishes");
  9464.  
  9465.               ltoa (&SHARE, inloop);
  9466.  
  9467.               strcat (&NAME, &SHARE);
  9468.  
  9469.               if (regGetN (&NAME, &TEMP))
  9470.  
  9471.               {
  9472.  
  9473.                 regPutN (&NAME, 1);
  9474.  
  9475.                 break;
  9476.  
  9477.               }
  9478.  
  9479.               else
  9480.  
  9481.               {
  9482.  
  9483.                 if (TEMP==0)
  9484.  
  9485.                 {
  9486.  
  9487.                   regPutN (&NAME, 1);
  9488.  
  9489.                   break;
  9490.  
  9491.                 }
  9492.  
  9493.               }
  9494.  
  9495.             }
  9496.  
  9497.           }
  9498.  
  9499.         }
  9500.  
  9501.         else
  9502.  
  9503.         {
  9504.  
  9505.           if (share (1)!=22 && share (1)!=23)
  9506.  
  9507.             counter (25)=table (random (2)) {24, 101};
  9508.  
  9509.         }
  9510.  
  9511.       }
  9512.  
  9513.       else
  9514.  
  9515.         SAY=1;
  9516.  
  9517.     }
  9518.  
  9519.     if (SAY)
  9520.  
  9521.     {
  9522.  
  9523.       RND=random (2);
  9524.  
  9525.       if (RND==0)
  9526.  
  9527.       {
  9528.  
  9529.         counter (26)=88;
  9530.  
  9531.         repeat (7)
  9532.  
  9533.         {
  9534.  
  9535.           counter (20)=table (inloop-1) {260, 257, 261, 255, 
  9536.  
  9537.               256, 251, 258};
  9538.  
  9539.           if (counter (20)==261)
  9540.  
  9541.             counter (25)=118;
  9542.  
  9543.           waitfs (5);
  9544.  
  9545.         }
  9546.  
  9547.         xpos (#120)=ixpos (#120);
  9548.  
  9549.         ypos (#120)=iypos (#120);
  9550.  
  9551.         zpos (#120)=izpos (#120);
  9552.  
  9553.       }
  9554.  
  9555.       if (RND==1)
  9556.  
  9557.       {
  9558.  
  9559.         counter (26)=88;
  9560.  
  9561.         waitfs (10);
  9562.  
  9563.         repeat (4)
  9564.  
  9565.         {
  9566.  
  9567.           counter (20)=table (inloop-1) {252, 253, 254, 252};
  9568.  
  9569.           if (counter (20)==253)
  9570.  
  9571.             counter (25)=118;
  9572.  
  9573.           waitfs (5);
  9574.  
  9575.         }
  9576.  
  9577.         xpos (#120)=ixpos (#120);
  9578.  
  9579.         ypos (#120)=iypos (#120);
  9580.  
  9581.         zpos (#120)=izpos (#120);
  9582.  
  9583.       }
  9584.  
  9585.     }
  9586.  
  9587.     statsGet (&STATS);
  9588.  
  9589.     if (regGetN ("ill", &TEMP))
  9590.  
  9591.       TEMP=0;
  9592.  
  9593.     if (STATS[0]>=50 && !TEMP)
  9594.  
  9595.     {
  9596.  
  9597.       waitfs (20);
  9598.  
  9599.       invis (#120);
  9600.  
  9601.       #15.MOODS=1;
  9602.  
  9603.       waitfs (20);
  9604.  
  9605.       vis (#11);
  9606.  
  9607.       unkill (#11);
  9608.  
  9609.     }
  9610.  
  9611.     while (mouseb)
  9612.  
  9613.       waitf;
  9614.  
  9615.     clrtrig (#120, 0);
  9616.  
  9617.   }
  9618.  
  9619. }
  9620. end
  9621. End_Chunk
  9622. Chunk: Text
  9623.   "long   TEMP, PARAM[4], COOKING, CURRENT;\r"
  9624.   "char   SHARE[5], PATH[1024], DIR[1024], NAME[32];\r"
  9625.   "short  SOUND, COOKED, TEMP2, RANDOM;\r\r"
  9626.   "/*\r"
  9627.   "HERE IF YOU CLICK ON JO, IT WILL CHECK IF THE ITEM IS GIVABLE\r"
  9628.   "OR BOPABLE AND REACT ACCORDINGLY\r"
  9629.   "*/\r"
  9630.   "resume (0, 2);\r"
  9631.   "if (first)\r"
  9632.   "  strcpy (&DIR, \"c:\\\\pet\\\\sounds\\\\\");\r"
  9633.   "if (activate ('woman', 0) && share (1)>=0)\r"
  9634.   "{\r"
  9635.   "    /*\r"
  9636.   "    GET SOUND FILE FROM DATABASE\r"
  9637.   "    */\r"
  9638.   "  paramGet (share (1), &PARAM);\r"
  9639.   "  if (PARAM[1]>0)\r"
  9640.   "  {\r"
  9641.   "    SOUND=1;\r"
  9642.   "    ltoa (&SHARE, PARAM[1]);\r"
  9643.   "    strcpy (&PATH, &DIR);\r"
  9644.   "    strcat (&PATH, &SHARE);\r"
  9645.   "    strcat (&PATH, \".WAV\");\r"
  9646.   "  }\r"
  9647.   "  if (objAttrP (share (1), \"B\") && share (1)>=0)\r"
  9648.   "  {\r"
  9649.   "    if (SOUND==1)\r"
  9650.   "      playWAV (&PATH);\r"
  9651.   "    statsObj (share (1));\r\r\r"
  9652.   "/*\r"
  9653.   "IF THE OBJEST IS WASHABLE\r"
  9654.   "*/\r"
  9655.   "  }\r"
  9656.   "  if (objAttrP (share (1), \"W\") && share (1)>=0)\r"
  9657.   "  {\r"
  9658.   "    TEMP='WASHER:DOOR'.WASH;\r"
  9659.   "    if (TEMP)\r"
  9660.   "    /* CLOTHES ARE FROM FLOOR */\r"
  9661.   "      alert (\"I can't wear that, you need to wash it first\", 0);\r"
  9662.   "    else\r"
  9663.   "    {\r"
  9664.   "      TEMP2='WASHER:DOOR'.WASHED;\r"
  9665.   "      if (TEMP2)\r"
  9666.   "      {\r"
  9667.   "        repeat (2)\r"
  9668.   "        {\r"
  9669.   "          TEMP='WASHER:DOOR'.CI[inloop];\r"
  9670.   "          if (share (1)==TEMP)\r"
  9671.   "          {\r"
  9672.   "            TEMP2=inloop;\r"
  9673.   "            break;\r"
  9674.   "          }\r"
  9675.   "        }\r"
  9676.   "        ltoa (&SHARE, TEMP2);\r"
  9677.   "        strcpy (&NAME, \"ClothesItemStatus\");\r"
  9678.   "        strcat (&NAME, &SHARE);\r"
  9679.   "        RANDOM=random (3);\r"
  9680.   "        if (RANDOM>0)\r"
  9681.   "        {\r"
  9682.   "          alert (\"Thanks, its perfectly clean, I'll put it back i\"\r"
  9683.   "              \"n my wardrobe.\", 0);\r"
  9684.   "          regPutN (&NAME, 1);\r"
  9685.   "        }\r"
  9686.   "        else\r"
  9687.   "        {\r"
  9688.   "          alert (\"Oh no it has shrunk!! I can't wear that any mor\"\r"
  9689.   "              \"e!\", 0);\r"
  9690.   "          regPutN (&NAME, 0);\r"
  9691.   "        }\r"
  9692.   "        regGetN (\"AmbientCurrent\", &CURRENT);\r"
  9693.   "        regPutN (\"AmbientCurrent\", CURRENT-1);\r"
  9694.   "        settrig (0, 'updateAmbient');\r"
  9695.   "        share (1)=-1;\r"
  9696.   "      }\r"
  9697.   "    }\r\r"
  9698.   "/*\r\r"
  9699.   "IF THE OBJECT IS GIVABLE\r"
  9700.   "*/\r\r"
  9701.   "  }\r"
  9702.   "  if (objAttrP (share (1), \"G\") && share (1)>=0)\r"
  9703.   "  {\r"
  9704.   "    if (SOUND==1)\r"
  9705.   "      playWAV (&PATH);\r"
  9706.   "    statsObj (share (1));\r"
  9707.   "    useObj (share (1));\r\r"
  9708.   "/*\r"
  9709.   "IF THE OBJECT IS Cookable\r"
  9710.   "*/\r\r"
  9711.   "  }\r"
  9712.   "  if (objAttrP (share (1), \"C\") && share (1)>=0)\r"
  9713.   "  {\r"
  9714.   "    COOKED='cookerLogic'.COOKED;\r"
  9715.   "    if (COOKED>0)\r"
  9716.   "    {\r"
  9717.   "      regGetN (\"CookedValue\", &COOKING);\r"
  9718.   "      switch (COOKING);\r"
  9719.   "      case 1: \r"
  9720.   "      {\r"
  9721.   "        alert (\"Yuck! I'm not eating that, it's under cooked!\", \r"
  9722.   "            0);\r"
  9723.   "        settrig (0, 'Items');\r"
  9724.   "      }\r"
  9725.   "      case 2: \r"
  9726.   "      {\r"
  9727.   "        if (SOUND==1)\r"
  9728.   "          playWAV (&PATH);\r"
  9729.   "        statsObj (share (1));\r"
  9730.   "        settrig (0, 'Items');\r"
  9731.   "      }\r"
  9732.   "      case 3: \r"
  9733.   "      {\r"
  9734.   "        alert (\"Yuck!! How can i eat that, it's burnt!!\", 0);\r"
  9735.   "        settrig (0, 'Items');\r\r"
  9736.   "      /*\r"
  9737.   "      ADD SOME DISHES\r"
  9738.   "      */\r\r"
  9739.   "      }\r"
  9740.   "      gvar (2, 'itemsControl')=1;\r"
  9741.   "      settrig (0, 'itemsControl');\r"
  9742.   "    }\r"
  9743.   "    else\r"
  9744.   "      alert (\"You need to cook the food first!!\", 0);\r"
  9745.   "  }\r"
  9746.   "  if (SOUND==1)\r"
  9747.   "    strcpy (&PATH, &DIR);\r"
  9748.   "  SOUND=0;\r"
  9749.   "  while (mouseb)\r"
  9750.   "    waitf;\r"
  9751.   "  clrtrig ('woman', 0);\r"
  9752.   "}\r"
  9753. End_Chunk
  9754. Chunk: Colours
  9755.  Number: 6
  9756.  0xC5 0x15 0xC5 0xC5 0xC5 0xC5
  9757. End_Chunk
  9758.  
  9759. End_Children
  9760. ;
  9761. ;-------Object    8-------------------------------------------------------
  9762. Chunk: Standard
  9763.  Name:     "HUMANVP: HOLD "
  9764.  Number:   8
  9765.  Size:     4000 4000 4000
  9766.  Position: 2114725 17430 1989126
  9767.  Type:     65535
  9768.  Layer:    0
  9769.  DFlags:   M
  9770. End_Chunk
  9771. Chunk: Colours
  9772.  Number: 18
  9773.  0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E
  9774.  0x0E 0x0E
  9775. End_Chunk
  9776. Chunk: InitPos
  9777.  Position: 2114725 17430 1989126
  9778. End_Chunk
  9779. Chunk: Dynamics
  9780.  MovType:     0x800004A1
  9781.  Fuel:        0
  9782.  Climb:       0
  9783.  Gravity:     0
  9784.  Coupled:     9
  9785.  Drive:       0 0 0
  9786.  External:    0 0 0
  9787.  MaxForce:    0 0 0
  9788.  GroundFric:  8192 0 8192
  9789.  Restitution: 0 0 0
  9790.  Velocity:    0 0 0
  9791.  MaxVel:      0 0 0
  9792. End_Chunk
  9793.  
  9794. Children:
  9795. ;
  9796. ;-------Object    9-------------------------------------------------------
  9797. Chunk: Standard
  9798.  Name:     "HUMANVP:View point "
  9799.  Number:   9
  9800.  Size:     1000 1000 1000
  9801.  Position: 1500 1500 1500
  9802.  Type:     65535
  9803.  Layer:    0
  9804.  DFlags:   r
  9805. End_Chunk
  9806. Chunk: Rotations
  9807.  Initial: 0x0000 0xFFFFBF5F 0x0000
  9808.  Centre:  500 500 500
  9809. End_Chunk
  9810. Chunk: Colours
  9811.  Number: 18
  9812.  0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B
  9813.  0x0B 0x0B
  9814. End_Chunk
  9815. ;
  9816. ;-------Object   31-------------------------------------------------------
  9817. Chunk: Standard
  9818.  Name:     "movelogic"
  9819.  Number:   31
  9820.  Size:     1000 1000 1000
  9821.  Position: 0 0 0
  9822.  Type:     65535
  9823.  Layer:    0
  9824.  DFlags:   r
  9825. End_Chunk
  9826. Chunk: SCL
  9827. short  X, Y;
  9828.  
  9829.  
  9830.  
  9831. resume (1, 2);
  9832.  
  9833. if (mouseb>1)
  9834.  
  9835. {
  9836.  
  9837.   if (!first)
  9838.  
  9839.     X=mousex;
  9840.  
  9841.   Y=mousey;
  9842.  
  9843.   while (mouseb>1)
  9844.  
  9845.   {
  9846.  
  9847.     if (mouseb==3)
  9848.  
  9849.     {
  9850.  
  9851.       Y=mousey;
  9852.  
  9853.       while (mouseb==3)
  9854.  
  9855.       {
  9856.  
  9857.         ydrive (#8)= (mousey-Y)*-10;
  9858.  
  9859.         yrot (#9)+=deg ( (mousex-X)*4);
  9860.  
  9861.         waitf;
  9862.  
  9863.       }
  9864.  
  9865.       Y=mousey;
  9866.  
  9867.     }
  9868.  
  9869.     zdrive (#8)= (mousey-Y)*-20;
  9870.  
  9871.     yrot (#9)+=deg ( (mousex-X)*4);
  9872.  
  9873.     waitf;
  9874.  
  9875.   }
  9876.  
  9877. }
  9878. end
  9879. End_Chunk
  9880.  
  9881. End_Children
  9882. End_File