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

  1. ;
  2. ; Script conversion of file OFFICE.WLD
  3. ;
  4. Type: WRLD
  5. Title: "\n\n\r"
  6.        "World file OFFICE.WLD revision 97\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:    19
  33.   View:    3
  34.   Control: 2
  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: 0x248F
  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: 2049962 18488 1946671
  46.   Rotation:  0 Frame:   0 Type: Relative Offset: 690 5188 0 Zoom: 0x1FFC
  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: 2010528 62854 2009981
  54.   Rotation:  0 Frame:   0 Type: Relative Offset: 16386 32773 0 Zoom: 0x29CB
  55.  Subchunk
  56.   Number:  4
  57.   Type:    8
  58.   View:    0
  59.   Point:   0
  60.   Frames:  1
  61.   Position:  0 Frame:   0  Type: StraightMove Pos: 2009081 20288 1999065
  62.   Rotation:  0 Frame:   0 Type: Relative Offset: 7846 19196 0 Zoom: 0x29CB
  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   16-------------------------------------------------------
  82. Chunk: Standard
  83.  Name:     "office hold"
  84.  Number:   16
  85.  Size:     62000 33000 62000
  86.  Position: 1980000 0 1980000
  87.  Type:     65535
  88.  Layer:    0
  89.  DFlags:   E
  90. End_Chunk
  91.  
  92. Children:
  93. ;
  94. ;-------Object   62-------------------------------------------------------
  95. Chunk: Standard
  96.  Name:     "CEILING-REP"
  97.  Number:   62
  98.  Size:     60000 0 60000
  99.  Position: 1000 33000 950
  100.  Type:     0
  101.  Layer:    0
  102.  DFlags:   R
  103.  OFlags:   Ii
  104. End_Chunk
  105. Chunk: Colours
  106.  Number: 6
  107.  0x00 0x00 0x00 0x00 0x00 0x16
  108. End_Chunk
  109. ;
  110. ;-------Object   52-------------------------------------------------------
  111. Chunk: Standard
  112.  Name:     "Anchor[52]"
  113.  Number:   52
  114.  Size:     60000 32900 1000
  115.  Position: 1000 0 61000
  116.  Type:     1
  117.  Layer:    0
  118. End_Chunk
  119. Chunk: TexCoords
  120.  Number: 1
  121.  Mode:   0
  122.  SubChunk
  123.   Facet:     2
  124.   ImageRef:  1
  125.   PixScale:  0
  126.   NumCoords: 4
  127.     0.00000 0.00000
  128.     0.00000 1.00000
  129.     1.00000 1.00000
  130.     1.00000 0.00000
  131. End_Chunk
  132.  
  133. Chunk: ImageRef
  134.  Number: 1
  135.  Index: 1 Image: 7
  136. End_Chunk
  137. Chunk: Colours
  138.  Number: 2
  139.  0x77 0x20
  140. End_Chunk
  141. ;
  142. ;-------Object   17-------------------------------------------------------
  143. Chunk: Standard
  144.  Name:     "desk[17]"
  145.  Number:   17
  146.  Size:     11000 19000 10000
  147.  Position: 49000 300 50950
  148.  Type:     7
  149.  Layer:    0
  150. End_Chunk
  151. Chunk: TexCoords
  152.  Number: 3
  153.  Mode:   0
  154.  SubChunk
  155.   Facet:     1
  156.   ImageRef:  1
  157.   PixScale:  0
  158.   NumCoords: 4
  159.     0.00000 0.00000
  160.     0.00000 1.00000
  161.     1.00000 1.00000
  162.     1.00000 0.00000
  163.  SubChunk
  164.   Facet:     5
  165.   ImageRef:  1
  166.   PixScale:  0
  167.   NumCoords: 4
  168.     0.00000 0.00000
  169.     0.00000 1.00000
  170.     0.79688 1.00000
  171.     0.79688 0.00000
  172.  SubChunk
  173.   Facet:     2
  174.   ImageRef:  2
  175.   PixScale:  0
  176.   NumCoords: 4
  177.     0.00000 0.00000
  178.     0.00000 1.00000
  179.     1.00000 1.00000
  180.     1.00000 0.00000
  181. End_Chunk
  182.  
  183. Chunk: ImageRef
  184.  Number: 2
  185.  Index: 1 Image: 11
  186.  Index: 2 Image: 34
  187. End_Chunk
  188. Chunk: Colours
  189.  Number: 6
  190.  0x20 0x15 0x1E 0x1E 0x17 0x20
  191. End_Chunk
  192. ;
  193. ;-------Object  172-------------------------------------------------------
  194. Chunk: Standard
  195.  Name:     "Chairbasehold[172]"
  196.  Number:   172
  197.  Size:     7000 13708 7000
  198.  Position: 17000 300 45950
  199.  Type:     65535
  200.  Layer:    0
  201. End_Chunk
  202.  
  203. Children:
  204. ;
  205. ;-------Object   20-------------------------------------------------------
  206. Chunk: Standard
  207.  Name:     "chair seat"
  208.  Number:   20
  209.  Size:     7000 8000 7000
  210.  Position: 0 5708 0
  211.  Type:     65535
  212.  Layer:    0
  213. End_Chunk
  214.  
  215. Children:
  216. ;
  217. ;-------Object  182-------------------------------------------------------
  218. Chunk: Standard
  219.  Name:     "Seatbase[182]"
  220.  Number:   182
  221.  Size:     7000 1000 7000
  222.  Position: 0 0 0
  223.  Type:     10
  224.  Layer:    0
  225. End_Chunk
  226. Chunk: TexCoords
  227.  Number: 1
  228.  Mode:   0
  229.  SubChunk
  230.   Facet:     5
  231.   ImageRef:  1
  232.   PixScale:  0
  233.   NumCoords: 4
  234.     0.00000 0.00000
  235.     0.00000 1.00000
  236.     1.00000 1.00000
  237.     1.00000 0.00000
  238. End_Chunk
  239. Chunk: Colours
  240.  Number: 6
  241.  0x3F 0x01 0x3F 0x3F 0x16 0x3F
  242. End_Chunk
  243.  
  244. Chunk: ImageRef
  245.  Number: 1
  246.  Index: 1 Image: 21
  247. End_Chunk
  248. ;
  249. ;-------Object  184-------------------------------------------------------
  250. Chunk: Standard
  251.  Name:     "Seatback[184]"
  252.  Number:   184
  253.  Size:     7000 3999 1000
  254.  Position: 0 4000 5999
  255.  Type:     0
  256.  Layer:    0
  257. End_Chunk
  258. Chunk: TexCoords
  259.  Number: 4
  260.  Mode:   0
  261.  SubChunk
  262.   Facet:     3
  263.   ImageRef:  1
  264.   PixScale:  0
  265.   NumCoords: 4
  266.     0.00000 0.00000
  267.     0.00000 1.00000
  268.     1.00000 1.00000
  269.     1.00000 0.00000
  270.  SubChunk
  271.   Facet:     2
  272.   ImageRef:  2
  273.   PixScale:  0
  274.   NumCoords: 4
  275.     0.00000 0.00000
  276.     0.00000 1.00000
  277.     1.00000 1.00000
  278.     1.00000 0.00000
  279.  SubChunk
  280.   Facet:     5
  281.   ImageRef:  1
  282.   PixScale:  0
  283.   NumCoords: 4
  284.     0.00000 0.00000
  285.     0.00000 1.00000
  286.     1.00000 1.00000
  287.     1.00000 0.00000
  288.  SubChunk
  289.   Facet:     1
  290.   ImageRef:  1
  291.   PixScale:  0
  292.   NumCoords: 4
  293.     0.00000 0.00000
  294.     0.00000 1.00000
  295.     1.00000 1.00000
  296.     1.00000 0.00000
  297. End_Chunk
  298. Chunk: Colours
  299.  Number: 6
  300.  0x77 0x76 0x77 0x01 0x75 0x01
  301. End_Chunk
  302.  
  303. Chunk: ImageRef
  304.  Number: 2
  305.  Index: 1 Image: 37
  306.  Index: 2 Image: 21
  307. End_Chunk
  308. ;
  309. ;-------Object    7-------------------------------------------------------
  310. Chunk: Standard
  311.  Name:     "Seatback[7]"
  312.  Number:   7
  313.  Size:     1000 3000 1000
  314.  Position: 3000 1000 5999
  315.  Type:     0
  316.  Layer:    0
  317. End_Chunk
  318. Chunk: TexCoords
  319.  Number: 4
  320.  Mode:   0
  321.  SubChunk
  322.   Facet:     2
  323.   ImageRef:  1
  324.   PixScale:  0
  325.   NumCoords: 4
  326.     0.00000 0.00000
  327.     0.00000 1.00000
  328.     1.00000 1.00000
  329.     1.00000 0.00000
  330.  SubChunk
  331.   Facet:     1
  332.   ImageRef:  1
  333.   PixScale:  0
  334.   NumCoords: 4
  335.     0.00000 0.00000
  336.     0.00000 1.00000
  337.     1.00000 1.00000
  338.     1.00000 0.00000
  339.  SubChunk
  340.   Facet:     4
  341.   ImageRef:  1
  342.   PixScale:  0
  343.   NumCoords: 4
  344.     0.00000 0.00000
  345.     0.00000 1.00000
  346.     1.00000 1.00000
  347.     1.00000 0.00000
  348.  SubChunk
  349.   Facet:     3
  350.   ImageRef:  1
  351.   PixScale:  0
  352.   NumCoords: 4
  353.     0.00000 0.00000
  354.     0.00000 1.00000
  355.     1.00000 1.00000
  356.     1.00000 0.00000
  357. End_Chunk
  358. Chunk: Colours
  359.  Number: 6
  360.  0x77 0x76 0x77 0x76 0x01 0x75
  361. End_Chunk
  362.  
  363. Chunk: ImageRef
  364.  Number: 3
  365.  Index: 1 Image: 38
  366.  Index: 2 Image: 65535
  367.  Index: 3 Image: 65535
  368. End_Chunk
  369.  
  370. End_Children
  371. ;
  372. ;-------Object  178-------------------------------------------------------
  373. Chunk: Standard
  374.  Name:     "caster1[178]"
  375.  Number:   178
  376.  Size:     545 1079 353
  377.  Position: 3287 0 294
  378.  Type:     9
  379.  Layer:    0
  380. End_Chunk
  381. Chunk: Distancing
  382.  Visible:   44527
  383.  Invisible: 55659
  384.  Replace:   0
  385. End_Chunk
  386. Chunk: Rotations
  387.  Initial: 0x0000 0x31C7 0x0000
  388.  Centre:  138 376 177
  389. End_Chunk
  390. ;
  391. ;-------Object  175-------------------------------------------------------
  392. Chunk: Standard
  393.  Name:     "caster4[175]"
  394.  Number:   175
  395.  Size:     545 1079 353
  396.  Position: 3374 0 6562
  397.  Type:     9
  398.  Layer:    0
  399.  DFlags:   r
  400. End_Chunk
  401. Chunk: Distancing
  402.  Visible:   44527
  403.  Invisible: 55659
  404.  Replace:   0
  405. End_Chunk
  406. Chunk: Rotations
  407.  Initial: 0x0000 0x0000 0x0000
  408.  Centre:  138 376 177
  409. End_Chunk
  410. ;
  411. ;-------Object  173-------------------------------------------------------
  412. Chunk: Standard
  413.  Name:     "Wheelbase[173]"
  414.  Number:   173
  415.  Size:     900 900 7000
  416.  Position: 3000 1079 0
  417.  Type:     10
  418.  Layer:    0
  419. End_Chunk
  420. Chunk: TexCoords
  421.  Number: 3
  422.  Mode:   0
  423.  SubChunk
  424.   Facet:     1
  425.   ImageRef:  1
  426.   PixScale:  0
  427.   NumCoords: 4
  428.     0.00000 0.00000
  429.     0.00000 1.00000
  430.     1.00000 1.00000
  431.     1.00000 0.00000
  432.  SubChunk
  433.   Facet:     3
  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:     5
  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: Colours
  452.  Number: 6
  453.  0x15 0x01 0x19 0x3F 0x16 0x1B
  454. End_Chunk
  455.  
  456. Chunk: ImageRef
  457.  Number: 1
  458.  Index: 1 Image: 38
  459. End_Chunk
  460. ;
  461. ;-------Object  180-------------------------------------------------------
  462. Chunk: Standard
  463.  Name:     "Seatstem[180]"
  464.  Number:   180
  465.  Size:     900 3800 900
  466.  Position: 3071 1908 3127
  467.  Type:     0
  468.  Layer:    0
  469. End_Chunk
  470. Chunk: TexCoords
  471.  Number: 4
  472.  Mode:   0
  473.  SubChunk
  474.   Facet:     1
  475.   ImageRef:  1
  476.   PixScale:  0
  477.   NumCoords: 4
  478.     0.00000 0.00000
  479.     0.00000 1.00000
  480.     1.00000 1.00000
  481.     1.00000 0.00000
  482.  SubChunk
  483.   Facet:     3
  484.   ImageRef:  1
  485.   PixScale:  0
  486.   NumCoords: 4
  487.     0.00000 0.00000
  488.     0.00000 1.00000
  489.     1.00000 1.00000
  490.     1.00000 0.00000
  491.  SubChunk
  492.   Facet:     4
  493.   ImageRef:  1
  494.   PixScale:  0
  495.   NumCoords: 4
  496.     0.00000 0.00000
  497.     0.00000 1.00000
  498.     1.00000 1.00000
  499.     1.00000 0.00000
  500.  SubChunk
  501.   Facet:     2
  502.   ImageRef:  1
  503.   PixScale:  0
  504.   NumCoords: 4
  505.     0.00000 0.00000
  506.     0.00000 1.00000
  507.     1.00000 1.00000
  508.     1.00000 0.00000
  509. End_Chunk
  510.  
  511. Chunk: ImageRef
  512.  Number: 1
  513.  Index: 1 Image: 38
  514. End_Chunk
  515. ;
  516. ;-------Object   19-------------------------------------------------------
  517. Chunk: Standard
  518.  Name:     "Wheelbase[19]"
  519.  Number:   19
  520.  Size:     3000 900 900
  521.  Position: 0 1079 3127
  522.  Type:     10
  523.  Layer:    0
  524. End_Chunk
  525. Chunk: TexCoords
  526.  Number: 3
  527.  Mode:   0
  528.  SubChunk
  529.   Facet:     2
  530.   ImageRef:  1
  531.   PixScale:  0
  532.   NumCoords: 4
  533.     0.00000 0.00000
  534.     0.00000 1.00000
  535.     1.00000 1.00000
  536.     1.00000 0.00000
  537.  SubChunk
  538.   Facet:     4
  539.   ImageRef:  1
  540.   PixScale:  0
  541.   NumCoords: 4
  542.     0.00000 0.00000
  543.     0.00000 1.00000
  544.     1.00000 1.00000
  545.     1.00000 0.00000
  546.  SubChunk
  547.   Facet:     5
  548.   ImageRef:  1
  549.   PixScale:  0
  550.   NumCoords: 4
  551.     0.00000 0.00000
  552.     0.00000 1.00000
  553.     1.00000 1.00000
  554.     1.00000 0.00000
  555. End_Chunk
  556. Chunk: Colours
  557.  Number: 6
  558.  0x3F 0x14 0x19 0x1A 0x16 0x1B
  559. End_Chunk
  560.  
  561. Chunk: ImageRef
  562.  Number: 1
  563.  Index: 1 Image: 38
  564. End_Chunk
  565. ;
  566. ;-------Object   18-------------------------------------------------------
  567. Chunk: Standard
  568.  Name:     "Wheelbase[18]"
  569.  Number:   18
  570.  Size:     3000 900 900
  571.  Position: 3900 1079 3127
  572.  Type:     10
  573.  Layer:    0
  574. End_Chunk
  575. Chunk: TexCoords
  576.  Number: 3
  577.  Mode:   0
  578.  SubChunk
  579.   Facet:     2
  580.   ImageRef:  1
  581.   PixScale:  0
  582.   NumCoords: 4
  583.     0.00000 0.00000
  584.     0.00000 1.00000
  585.     1.00000 1.00000
  586.     1.00000 0.00000
  587.  SubChunk
  588.   Facet:     4
  589.   ImageRef:  1
  590.   PixScale:  0
  591.   NumCoords: 4
  592.     0.00000 0.00000
  593.     0.00000 1.00000
  594.     1.00000 1.00000
  595.     1.00000 0.00000
  596.  SubChunk
  597.   Facet:     5
  598.   ImageRef:  1
  599.   PixScale:  0
  600.   NumCoords: 4
  601.     0.00000 0.00000
  602.     0.00000 1.00000
  603.     1.00000 1.00000
  604.     1.00000 0.00000
  605. End_Chunk
  606. Chunk: Colours
  607.  Number: 6
  608.  0x15 0x14 0x3F 0x1A 0x16 0x1B
  609. End_Chunk
  610.  
  611. Chunk: ImageRef
  612.  Number: 1
  613.  Index: 1 Image: 38
  614. End_Chunk
  615. ;
  616. ;-------Object  176-------------------------------------------------------
  617. Chunk: Standard
  618.  Name:     "caster2[176]"
  619.  Number:   176
  620.  Size:     545 1079 353
  621.  Position: 400 0 3447
  622.  Type:     9
  623.  Layer:    0
  624. End_Chunk
  625. Chunk: Distancing
  626.  Visible:   44527
  627.  Invisible: 55659
  628.  Replace:   0
  629. End_Chunk
  630. Chunk: Rotations
  631.  Initial: 0x0000 0x0000 0x0000
  632.  Centre:  138 376 177
  633. End_Chunk
  634. ;
  635. ;-------Object  179-------------------------------------------------------
  636. Chunk: Standard
  637.  Name:     "caster5[179]"
  638.  Number:   179
  639.  Size:     545 1079 353
  640.  Position: 6355 0 3400
  641.  Type:     9
  642.  Layer:    0
  643.  DFlags:   r
  644. End_Chunk
  645. Chunk: Distancing
  646.  Visible:   44527
  647.  Invisible: 55659
  648.  Replace:   0
  649. End_Chunk
  650. Chunk: Rotations
  651.  Initial: 0x0000 0x0000 0x0000
  652.  Centre:  138 376 177
  653. End_Chunk
  654.  
  655. End_Children
  656. ;
  657. ;-------Object   61-------------------------------------------------------
  658. Chunk: Standard
  659.  Name:     "Ceiling"
  660.  Number:   61
  661.  Size:     62000 0 62000
  662.  Position: 0 33000 0
  663.  Type:     4
  664.  Layer:    0
  665. End_Chunk
  666. Chunk: Colours
  667.  Number: 15
  668.  0x11 0x3F 0x3F 0x3F 0x3F 0x3F 0x3F 0x1A 0x3F 0x3F 0x3F 0x3F 0x3F 0x3F 0x3F
  669. End_Chunk
  670. ;
  671. ;-------Object    1-------------------------------------------------------
  672. Chunk: Standard
  673.  Name:     "tvcontrol"
  674.  Number:   1
  675.  Size:     60000 300 60000
  676.  Position: 1000 0 1000
  677.  Type:     0
  678.  Layer:    0
  679. End_Chunk
  680. Chunk: TexCoords
  681.  Number: 1
  682.  Mode:   0
  683.  SubChunk
  684.   Facet:     5
  685.   ImageRef:  1
  686.   PixScale:  0
  687.   NumCoords: 4
  688.     0.00000 0.00000
  689.     0.00000 1.00000
  690.     1.00000 1.00000
  691.     1.00000 0.00000
  692. End_Chunk
  693. Chunk: SCL
  694. short  A;
  695.  
  696.  
  697.  
  698. resume (1, 2);
  699.  
  700. if (first)
  701.  
  702.   A=1;
  703.  
  704. if (A==1)
  705.  
  706.   timgref (#71, 1)=timgref (#71, 1)%6+1;
  707.  
  708. if (activate (#306, 0))
  709.  
  710. {
  711.  
  712.   invis (#306);
  713.  
  714.   vis (#308);
  715.  
  716.   setvp (4);
  717.  
  718. }
  719.  
  720. clrtrig (#306, 0);
  721.  
  722. if (activate (#316, 0))
  723.  
  724.   A=2;
  725.  
  726. clrtrig (#316, 0);
  727.  
  728. if (activate (#317, 0))
  729.  
  730.   A=1;
  731.  
  732. clrtrig (#317, 0);
  733. end
  734. End_Chunk
  735.  
  736. Chunk: ImageRef
  737.  Number: 2
  738.  Index: 1 Image: 2
  739.  Index: 2 Image: 65535
  740. End_Chunk
  741. Chunk: Colours
  742.  Number: 6
  743.  0x77 0x76 0x77 0x76 0xAB 0x75
  744. End_Chunk
  745. ;
  746. ;-------Object   59-------------------------------------------------------
  747. Chunk: Standard
  748.  Name:     "wall[59]"
  749.  Number:   59
  750.  Size:     1000 32900 60000
  751.  Position: 0 0 1000
  752.  Type:     3
  753.  Layer:    0
  754. End_Chunk
  755. Chunk: TexCoords
  756.  Number: 1
  757.  Mode:   0
  758.  SubChunk
  759.   Facet:     2
  760.   ImageRef:  1
  761.   PixScale:  0
  762.   NumCoords: 4
  763.     0.00000 0.00000
  764.     0.00000 1.00000
  765.     1.00000 1.00000
  766.     1.00000 0.00000
  767. End_Chunk
  768.  
  769. Chunk: ImageRef
  770.  Number: 1
  771.  Index: 1 Image: 9
  772. End_Chunk
  773. Chunk: Colours
  774.  Number: 2
  775.  0x77 0x21
  776. End_Chunk
  777. ;
  778. ;-------Object    5-------------------------------------------------------
  779. Chunk: Standard
  780.  Name:     "wall[5]"
  781.  Number:   5
  782.  Size:     1000 32900 60000
  783.  Position: 61000 0 1000
  784.  Type:     2
  785.  Layer:    0
  786. End_Chunk
  787. Chunk: TexCoords
  788.  Number: 1
  789.  Mode:   0
  790.  SubChunk
  791.   Facet:     1
  792.   ImageRef:  2
  793.   PixScale:  0
  794.   NumCoords: 4
  795.     0.00000 0.00000
  796.     0.00000 1.00000
  797.     1.00000 1.00000
  798.     1.00000 0.00000
  799. End_Chunk
  800.  
  801. Chunk: ImageRef
  802.  Number: 2
  803.  Index: 1 Image: 5
  804.  Index: 2 Image: 3
  805. End_Chunk
  806. Chunk: Colours
  807.  Number: 2
  808.  0x19 0x1A
  809. End_Chunk
  810. ;
  811. ;-------Object   76-------------------------------------------------------
  812. Chunk: Standard
  813.  Name:     "wall[76]"
  814.  Number:   76
  815.  Size:     60000 32900 1000
  816.  Position: 1000 0 0
  817.  Type:     6
  818.  Layer:    0
  819. End_Chunk
  820. Chunk: TexCoords
  821.  Number: 1
  822.  Mode:   0
  823.  SubChunk
  824.   Facet:     1
  825.   ImageRef:  1
  826.   PixScale:  0
  827.   NumCoords: 4
  828.     0.00000 0.00000
  829.     0.00000 1.00000
  830.     1.00000 1.00000
  831.     1.00000 0.00000
  832. End_Chunk
  833.  
  834. Chunk: ImageRef
  835.  Number: 1
  836.  Index: 1 Image: 5
  837. End_Chunk
  838. Chunk: Colours
  839.  Number: 2
  840.  0x18 0x19
  841. End_Chunk
  842. ;
  843. ;-------Object   13-------------------------------------------------------
  844. Chunk: Standard
  845.  Name:     "desk[13]"
  846.  Number:   13
  847.  Size:     25000 17000 8000
  848.  Position: 1000 300 1000
  849.  Type:     0
  850.  Layer:    0
  851. End_Chunk
  852. Chunk: TexCoords
  853.  Number: 3
  854.  Mode:   0
  855.  SubChunk
  856.   Facet:     3
  857.   ImageRef:  1
  858.   PixScale:  0
  859.   NumCoords: 4
  860.     0.00000 0.00000
  861.     0.00000 1.00000
  862.     1.00000 1.00000
  863.     1.00000 0.00000
  864.  SubChunk
  865.   Facet:     5
  866.   ImageRef:  1
  867.   PixScale:  0
  868.   NumCoords: 4
  869.     0.00000 0.39844
  870.     0.00000 0.99609
  871.     0.79688 0.99609
  872.     0.79688 0.39844
  873.  SubChunk
  874.   Facet:     4
  875.   ImageRef:  2
  876.   PixScale:  0
  877.   NumCoords: 4
  878.     0.00000 0.00000
  879.     0.00000 1.00000
  880.     3.00000 1.00000
  881.     3.00000 0.00000
  882. End_Chunk
  883.  
  884. Chunk: ImageRef
  885.  Number: 2
  886.  Index: 1 Image: 35
  887.  Index: 2 Image: 34
  888. End_Chunk
  889. Chunk: Colours
  890.  Number: 6
  891.  0x20 0x15 0x1E 0x1E 0x17 0x20
  892. End_Chunk
  893. ;
  894. ;-------Object  100-------------------------------------------------------
  895. Chunk: Standard
  896.  Name:     "deskhold"
  897.  Number:   100
  898.  Size:     25000 11000 11000
  899.  Position: 7500 300 33000
  900.  Type:     65535
  901.  Layer:    0
  902. End_Chunk
  903. Chunk: Distancing
  904.  Visible:   168750
  905.  Invisible: 210937
  906.  Replace:   119
  907. End_Chunk
  908.  
  909. Children:
  910. ;
  911. ;-------Object    9-------------------------------------------------------
  912. Chunk: Standard
  913.  Name:     "desk[9]"
  914.  Number:   9
  915.  Size:     7000 9000 10000
  916.  Position: 500 1000 500
  917.  Type:     7
  918.  Layer:    0
  919. End_Chunk
  920. Chunk: TexCoords
  921.  Number: 3
  922.  Mode:   0
  923.  SubChunk
  924.   Facet:     4
  925.   ImageRef:  1
  926.   PixScale:  0
  927.   NumCoords: 4
  928.     0.00000 0.00000
  929.     0.00000 1.00000
  930.     1.00000 1.00000
  931.     1.00000 0.00000
  932.  SubChunk
  933.   Facet:     1
  934.   ImageRef:  2
  935.   PixScale:  0
  936.   NumCoords: 4
  937.     0.00000 0.00000
  938.     0.00000 1.00000
  939.     1.00000 1.00000
  940.     1.00000 0.00000
  941.  SubChunk
  942.   Facet:     3
  943.   ImageRef:  2
  944.   PixScale:  0
  945.   NumCoords: 4
  946.     0.00000 0.00000
  947.     0.00000 1.00000
  948.     1.00000 1.00000
  949.     1.00000 0.00000
  950. End_Chunk
  951.  
  952. Chunk: ImageRef
  953.  Number: 2
  954.  Index: 1 Image: 17
  955.  Index: 2 Image: 20
  956. End_Chunk
  957. ;
  958. ;-------Object   10-------------------------------------------------------
  959. Chunk: Standard
  960.  Name:     "desk[10]"
  961.  Number:   10
  962.  Size:     7000 9000 10000
  963.  Position: 17500 1000 500
  964.  Type:     7
  965.  Layer:    0
  966. End_Chunk
  967. Chunk: TexCoords
  968.  Number: 3
  969.  Mode:   0
  970.  SubChunk
  971.   Facet:     4
  972.   ImageRef:  1
  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:     3
  990.   ImageRef:  2
  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. End_Chunk
  998.  
  999. Chunk: ImageRef
  1000.  Number: 2
  1001.  Index: 1 Image: 16
  1002.  Index: 2 Image: 20
  1003. End_Chunk
  1004. ;
  1005. ;-------Object  118-------------------------------------------------------
  1006. Chunk: Standard
  1007.  Name:     "desk[118]"
  1008.  Number:   118
  1009.  Size:     1270 1000 1289
  1010.  Position: 800 0 800
  1011.  Type:     0
  1012.  Layer:    0
  1013. End_Chunk
  1014. Chunk: TexCoords
  1015.  Number: 4
  1016.  Mode:   0
  1017.  SubChunk
  1018.   Facet:     2
  1019.   ImageRef:  1
  1020.   PixScale:  0
  1021.   NumCoords: 4
  1022.     0.00000 0.00000
  1023.     0.00000 1.00000
  1024.     1.00000 1.00000
  1025.     1.00000 0.00000
  1026.  SubChunk
  1027.   Facet:     4
  1028.   ImageRef:  1
  1029.   PixScale:  0
  1030.   NumCoords: 4
  1031.     0.00000 0.00000
  1032.     0.00000 1.00000
  1033.     1.00000 1.00000
  1034.     1.00000 0.00000
  1035.  SubChunk
  1036.   Facet:     3
  1037.   ImageRef:  1
  1038.   PixScale:  0
  1039.   NumCoords: 4
  1040.     0.00000 0.00000
  1041.     0.00000 1.00000
  1042.     1.00000 1.00000
  1043.     1.00000 0.00000
  1044.  SubChunk
  1045.   Facet:     1
  1046.   ImageRef:  1
  1047.   PixScale:  0
  1048.   NumCoords: 4
  1049.     0.00000 0.00000
  1050.     0.00000 1.00000
  1051.     1.00000 1.00000
  1052.     1.00000 0.00000
  1053. End_Chunk
  1054.  
  1055. Chunk: ImageRef
  1056.  Number: 1
  1057.  Index: 1 Image: 18
  1058. End_Chunk
  1059. Chunk: Colours
  1060.  Number: 6
  1061.  0x28 0x22 0x24 0x2D 0x59 0x00
  1062. End_Chunk
  1063. ;
  1064. ;-------Object  103-------------------------------------------------------
  1065. Chunk: Standard
  1066.  Name:     "desk[103]"
  1067.  Number:   103
  1068.  Size:     1270 1000 1289
  1069.  Position: 800 0 8911
  1070.  Type:     0
  1071.  Layer:    0
  1072. End_Chunk
  1073. Chunk: TexCoords
  1074.  Number: 4
  1075.  Mode:   0
  1076.  SubChunk
  1077.   Facet:     1
  1078.   ImageRef:  1
  1079.   PixScale:  0
  1080.   NumCoords: 4
  1081.     0.00000 0.00000
  1082.     0.00000 1.00000
  1083.     1.00000 1.00000
  1084.     1.00000 0.00000
  1085.  SubChunk
  1086.   Facet:     3
  1087.   ImageRef:  1
  1088.   PixScale:  0
  1089.   NumCoords: 4
  1090.     0.00000 0.00000
  1091.     0.00000 1.00000
  1092.     1.00000 1.00000
  1093.     1.00000 0.00000
  1094.  SubChunk
  1095.   Facet:     4
  1096.   ImageRef:  1
  1097.   PixScale:  0
  1098.   NumCoords: 4
  1099.     0.00000 0.00000
  1100.     0.00000 1.00000
  1101.     1.00000 1.00000
  1102.     1.00000 0.00000
  1103.  SubChunk
  1104.   Facet:     2
  1105.   ImageRef:  1
  1106.   PixScale:  0
  1107.   NumCoords: 4
  1108.     0.00000 0.00000
  1109.     0.00000 1.00000
  1110.     1.00000 1.00000
  1111.     1.00000 0.00000
  1112. End_Chunk
  1113.  
  1114. Chunk: ImageRef
  1115.  Number: 1
  1116.  Index: 1 Image: 18
  1117. End_Chunk
  1118. Chunk: Colours
  1119.  Number: 6
  1120.  0x28 0x2A 0x2E 0x2C 0x59 0x00
  1121. End_Chunk
  1122. ;
  1123. ;-------Object  117-------------------------------------------------------
  1124. Chunk: Standard
  1125.  Name:     "desk[117]"
  1126.  Number:   117
  1127.  Size:     1270 1000 1289
  1128.  Position: 22930 0 8911
  1129.  Type:     0
  1130.  Layer:    0
  1131. End_Chunk
  1132. Chunk: TexCoords
  1133.  Number: 4
  1134.  Mode:   0
  1135.  SubChunk
  1136.   Facet:     4
  1137.   ImageRef:  1
  1138.   PixScale:  0
  1139.   NumCoords: 4
  1140.     0.00000 0.00000
  1141.     0.00000 1.00000
  1142.     1.00000 1.00000
  1143.     1.00000 0.00000
  1144.  SubChunk
  1145.   Facet:     1
  1146.   ImageRef:  1
  1147.   PixScale:  0
  1148.   NumCoords: 4
  1149.     0.00000 0.00000
  1150.     0.00000 1.00000
  1151.     1.00000 1.00000
  1152.     1.00000 0.00000
  1153.  SubChunk
  1154.   Facet:     2
  1155.   ImageRef:  1
  1156.   PixScale:  0
  1157.   NumCoords: 4
  1158.     0.00000 0.00000
  1159.     0.00000 1.00000
  1160.     1.00000 1.00000
  1161.     1.00000 0.00000
  1162.  SubChunk
  1163.   Facet:     3
  1164.   ImageRef:  1
  1165.   PixScale:  0
  1166.   NumCoords: 4
  1167.     0.00000 0.00000
  1168.     0.00000 1.00000
  1169.     1.00000 1.00000
  1170.     1.00000 0.00000
  1171. End_Chunk
  1172.  
  1173. Chunk: ImageRef
  1174.  Number: 1
  1175.  Index: 1 Image: 18
  1176. End_Chunk
  1177. Chunk: Colours
  1178.  Number: 6
  1179.  0x2E 0x2A 0x2D 0x2D 0x59 0x00
  1180. End_Chunk
  1181. ;
  1182. ;-------Object  104-------------------------------------------------------
  1183. Chunk: Standard
  1184.  Name:     "desk[104]"
  1185.  Number:   104
  1186.  Size:     1270 1000 1289
  1187.  Position: 22930 0 800
  1188.  Type:     0
  1189.  Layer:    0
  1190. End_Chunk
  1191. Chunk: TexCoords
  1192.  Number: 4
  1193.  Mode:   0
  1194.  SubChunk
  1195.   Facet:     3
  1196.   ImageRef:  1
  1197.   PixScale:  0
  1198.   NumCoords: 4
  1199.     0.00000 0.00000
  1200.     0.00000 1.00000
  1201.     1.00000 1.00000
  1202.     1.00000 0.00000
  1203.  SubChunk
  1204.   Facet:     1
  1205.   ImageRef:  1
  1206.   PixScale:  0
  1207.   NumCoords: 4
  1208.     0.00000 0.00000
  1209.     0.00000 1.00000
  1210.     1.00000 1.00000
  1211.     1.00000 0.00000
  1212.  SubChunk
  1213.   Facet:     4
  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:     2
  1223.   ImageRef:  1
  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.  
  1232. Chunk: ImageRef
  1233.  Number: 1
  1234.  Index: 1 Image: 18
  1235. End_Chunk
  1236. Chunk: Colours
  1237.  Number: 6
  1238.  0x2E 0x2A 0x2C 0x2D 0x59 0x00
  1239. End_Chunk
  1240. ;
  1241. ;-------Object  101-------------------------------------------------------
  1242. Chunk: Standard
  1243.  Name:     "desk[101]"
  1244.  Number:   101
  1245.  Size:     25000 1000 11000
  1246.  Position: 0 10000 0
  1247.  Type:     7
  1248.  Layer:    0
  1249. End_Chunk
  1250. Chunk: TexCoords
  1251.  Number: 5
  1252.  Mode:   0
  1253.  SubChunk
  1254.   Facet:     4
  1255.   ImageRef:  1
  1256.   PixScale:  0
  1257.   NumCoords: 4
  1258.     0.00000 0.00000
  1259.     0.00000 1.00000
  1260.     1.00000 1.00000
  1261.     1.00000 0.00000
  1262.  SubChunk
  1263.   Facet:     5
  1264.   ImageRef:  2
  1265.   PixScale:  0
  1266.   NumCoords: 4
  1267.     0.00000 0.00000
  1268.     0.00000 1.00000
  1269.     1.00000 1.00000
  1270.     1.00000 0.00000
  1271.  SubChunk
  1272.   Facet:     2
  1273.   ImageRef:  3
  1274.   PixScale:  0
  1275.   NumCoords: 4
  1276.     0.00000 0.00000
  1277.     0.00000 1.00000
  1278.     1.00000 1.00000
  1279.     1.00000 0.00000
  1280.  SubChunk
  1281.   Facet:     3
  1282.   ImageRef:  4
  1283.   PixScale:  0
  1284.   NumCoords: 4
  1285.     0.00000 0.00000
  1286.     0.00000 1.00000
  1287.     1.00000 1.00000
  1288.     1.00000 0.00000
  1289.  SubChunk
  1290.   Facet:     1
  1291.   ImageRef:  4
  1292.   PixScale:  0
  1293.   NumCoords: 4
  1294.     0.00000 0.00000
  1295.     0.00000 1.00000
  1296.     1.00000 1.00000
  1297.     1.00000 0.00000
  1298. End_Chunk
  1299.  
  1300. Chunk: ImageRef
  1301.  Number: 4
  1302.  Index: 1 Image: 15
  1303.  Index: 2 Image: 29
  1304.  Index: 3 Image: 27
  1305.  Index: 4 Image: 19
  1306. End_Chunk
  1307. ;
  1308. ;-------Object   11-------------------------------------------------------
  1309. Chunk: Standard
  1310.  Name:     "desk[11]"
  1311.  Number:   11
  1312.  Size:     24000 9000 0
  1313.  Position: 500 1000 500
  1314.  Type:     0
  1315.  Layer:    0
  1316. End_Chunk
  1317. Chunk: TexCoords
  1318.  Number: 2
  1319.  Mode:   0
  1320.  SubChunk
  1321.   Facet:     2
  1322.   ImageRef:  1
  1323.   PixScale:  0
  1324.   NumCoords: 4
  1325.     0.00000 0.00000
  1326.     0.00000 1.00000
  1327.     1.00000 1.00000
  1328.     1.00000 0.00000
  1329.  SubChunk
  1330.   Facet:     4
  1331.   ImageRef:  1
  1332.   PixScale:  0
  1333.   NumCoords: 4
  1334.     0.00000 0.00000
  1335.     0.00000 1.00000
  1336.     1.00000 1.00000
  1337.     1.00000 0.00000
  1338. End_Chunk
  1339.  
  1340. Chunk: ImageRef
  1341.  Number: 1
  1342.  Index: 1 Image: 26
  1343. End_Chunk
  1344.  
  1345. End_Children
  1346. ;
  1347. ;-------Object  169-------------------------------------------------------
  1348. Chunk: Standard
  1349.  Name:     "Keyboard"
  1350.  Number:   169
  1351.  Size:     8012 457 2602
  1352.  Position: 11700 11300 40850
  1353.  Type:     8
  1354.  Layer:    0
  1355. End_Chunk
  1356. Chunk: TexCoords
  1357.  Number: 1
  1358.  Mode:   0
  1359.  SubChunk
  1360.   Facet:     1
  1361.   ImageRef:  1
  1362.   PixScale:  0
  1363.   NumCoords: 4
  1364.     0.00000 0.00000
  1365.     0.00000 1.00000
  1366.     1.00000 1.00000
  1367.     1.00000 0.00000
  1368. End_Chunk
  1369. Chunk: Colours
  1370.  Number: 4
  1371.  0x3F 0x3F 0x3F 0x3F
  1372. End_Chunk
  1373.  
  1374. Chunk: ImageRef
  1375.  Number: 1
  1376.  Index: 1 Image: 12
  1377. End_Chunk
  1378. ;
  1379. ;-------Object  130-------------------------------------------------------
  1380. Chunk: Standard
  1381.  Name:     "pcunit"
  1382.  Number:   130
  1383.  Size:     7600 2000 6900
  1384.  Position: 11900 11300 33550
  1385.  Type:     10
  1386.  Layer:    0
  1387. End_Chunk
  1388. Chunk: TexCoords
  1389.  Number: 5
  1390.  Mode:   0
  1391.  SubChunk
  1392.   Facet:     4
  1393.   ImageRef:  1
  1394.   PixScale:  0
  1395.   NumCoords: 4
  1396.     0.00000 0.00000
  1397.     0.00000 1.00000
  1398.     1.00000 1.00000
  1399.     1.00000 0.00000
  1400.  SubChunk
  1401.   Facet:     5
  1402.   ImageRef:  2
  1403.   PixScale:  0
  1404.   NumCoords: 4
  1405.     0.00000 0.00000
  1406.     0.00000 1.00000
  1407.     1.00000 1.00000
  1408.     1.00000 0.00000
  1409.  SubChunk
  1410.   Facet:     2
  1411.   ImageRef:  3
  1412.   PixScale:  0
  1413.   NumCoords: 4
  1414.     0.00000 0.00000
  1415.     0.00000 1.00000
  1416.     1.00000 1.00000
  1417.     1.00000 0.00000
  1418.  SubChunk
  1419.   Facet:     3
  1420.   ImageRef:  4
  1421.   PixScale:  0
  1422.   NumCoords: 4
  1423.     0.00000 0.00000
  1424.     0.00000 1.00000
  1425.     1.00000 1.00000
  1426.     1.00000 0.00000
  1427.  SubChunk
  1428.   Facet:     1
  1429.   ImageRef:  4
  1430.   PixScale:  0
  1431.   NumCoords: 4
  1432.     0.00000 0.00000
  1433.     0.00000 1.00000
  1434.     1.00000 1.00000
  1435.     1.00000 0.00000
  1436. End_Chunk
  1437.  
  1438. Chunk: ImageRef
  1439.  Number: 4
  1440.  Index: 1 Image: 14
  1441.  Index: 2 Image: 32
  1442.  Index: 3 Image: 25
  1443.  Index: 4 Image: 23
  1444. End_Chunk
  1445. ;
  1446. ;-------Object   12-------------------------------------------------------
  1447. Chunk: Standard
  1448.  Name:     "pcunit[12]"
  1449.  Number:   12
  1450.  Size:     6100 5300 5900
  1451.  Position: 12600 13300 34150
  1452.  Type:     25
  1453.  Layer:    0
  1454. End_Chunk
  1455. Chunk: TexCoords
  1456.  Number: 6
  1457.  Mode:   0
  1458.  SubChunk
  1459.   Facet:     7
  1460.   ImageRef:  1
  1461.   PixScale:  0
  1462.   NumCoords: 4
  1463.     0.00000 0.00000
  1464.     0.00000 1.00000
  1465.     1.00000 1.00000
  1466.     1.00000 0.00000
  1467.  SubChunk
  1468.   Facet:     4
  1469.   ImageRef:  2
  1470.   PixScale:  0
  1471.   NumCoords: 4
  1472.     0.00000 0.00000
  1473.     0.00000 1.00000
  1474.     1.00000 1.00000
  1475.     1.00000 0.00000
  1476.  SubChunk
  1477.   Facet:     1
  1478.   ImageRef:  3
  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.  SubChunk
  1486.   Facet:     5
  1487.   ImageRef:  4
  1488.   PixScale:  0
  1489.   NumCoords: 4
  1490.     0.00000 0.00000
  1491.     0.00000 1.00000
  1492.     1.00000 1.00000
  1493.     1.00000 0.00000
  1494.  SubChunk
  1495.   Facet:     3
  1496.   ImageRef:  5
  1497.   PixScale:  0
  1498.   NumCoords: 4
  1499.     0.00000 0.00000
  1500.     0.00000 1.00000
  1501.     1.00000 1.00000
  1502.     1.00000 0.00000
  1503.  SubChunk
  1504.   Facet:     2
  1505.   ImageRef:  6
  1506.   PixScale:  0
  1507.   NumCoords: 4
  1508.     0.00000 0.00000
  1509.     0.00000 1.00000
  1510.     1.00000 1.00000
  1511.     1.00000 0.00000
  1512. End_Chunk
  1513. Chunk: SCL
  1514. tyoff (me, 1)+=4;
  1515.  
  1516. txoff (me, 1)+=4;
  1517.  
  1518. if (txoff (me, 1)>256)
  1519.  
  1520. {
  1521.  
  1522.   txoff (me, 1)=0;
  1523.  
  1524.   tyoff (me, 1)=0;
  1525.  
  1526. }
  1527. end
  1528. End_Chunk
  1529.  
  1530. Chunk: ImageRef
  1531.  Number: 6
  1532.  Index: 1 Image: 40
  1533.  Index: 2 Image: 13
  1534.  Index: 3 Image: 31
  1535.  Index: 4 Image: 30
  1536.  Index: 5 Image: 22
  1537.  Index: 6 Image: 24
  1538. End_Chunk
  1539. ;
  1540. ;-------Object  291-------------------------------------------------------
  1541. Chunk: Standard
  1542.  Name:     "Mouse&MatHold"
  1543.  Number:   291
  1544.  Size:     2850 284 2900
  1545.  Position: 8200 11300 39550
  1546.  Type:     65535
  1547.  Layer:    0
  1548. End_Chunk
  1549. Chunk: Colours
  1550.  Number: 18
  1551.  0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C
  1552.  0x0C 0x0C
  1553. End_Chunk
  1554.  
  1555. Children:
  1556. ;
  1557. ;-------Object  292-------------------------------------------------------
  1558. Chunk: Standard
  1559.  Name:     "Mousemat"
  1560.  Number:   292
  1561.  Size:     2850 30 2900
  1562.  Position: 0 0 0
  1563.  Type:     11
  1564.  Layer:    0
  1565. End_Chunk
  1566. ;
  1567. ;-------Object  293-------------------------------------------------------
  1568. Chunk: Standard
  1569.  Name:     "Mousemat-rep2"
  1570.  Number:   293
  1571.  Size:     2850 30 2900
  1572.  Position: 0 0 0
  1573.  Type:     0
  1574.  Layer:    0
  1575.  DFlags:   R
  1576.  OFlags:   Ii
  1577. End_Chunk
  1578. Chunk: Colours
  1579.  Number: 6
  1580.  0x00 0x00 0x00 0x00 0x2F 0x00
  1581. End_Chunk
  1582. ;
  1583. ;-------Object  294-------------------------------------------------------
  1584. Chunk: Standard
  1585.  Name:     "Mousemat-rep1"
  1586.  Number:   294
  1587.  Size:     2850 30 2900
  1588.  Position: 0 0 0
  1589.  Type:     11
  1590.  Layer:    0
  1591.  DFlags:   R
  1592.  OFlags:   Ii
  1593. End_Chunk
  1594. Chunk: Distancing
  1595.  Visible:   30000
  1596.  Invisible: 37500
  1597.  Replace:   293
  1598. End_Chunk
  1599. ;
  1600. ;-------Object  295-------------------------------------------------------
  1601. Chunk: Standard
  1602.  Name:     "mouse"
  1603.  Number:   295
  1604.  Size:     760 254 1284
  1605.  Position: 365 30 1418
  1606.  Type:     12
  1607.  Layer:    0
  1608. End_Chunk
  1609. Chunk: SCL
  1610. float  f, h;
  1611.  
  1612.  
  1613.  
  1614. resume (1, 2);
  1615.  
  1616. f=screenw;
  1617.  
  1618. h=screenh;
  1619.  
  1620. xpos (me)= (mousex+1)* (xsize (#292)-xsize (#295))/f;
  1621.  
  1622. zpos (me)= (h- (mousey+1))* (zsize (#292)-zsize (#295))/h;
  1623.  
  1624. if (mouseb!=0)
  1625.  
  1626. {
  1627.  
  1628.   if (mouseb==1)
  1629.  
  1630.   {
  1631.  
  1632.     ccel (me, 1)=2;
  1633.  
  1634.     while (mouseb)
  1635.  
  1636.       waitf;
  1637.  
  1638.   }
  1639.  
  1640.   else
  1641.  
  1642.   {
  1643.  
  1644.     ccel (me, 1)=3;
  1645.  
  1646.     waitfs (2);
  1647.  
  1648.     while (mouseb)
  1649.  
  1650.       waitf;
  1651.  
  1652.   }
  1653.  
  1654.   ccel (me, 1)=1;
  1655.  
  1656.  
  1657.  
  1658.  
  1659.  
  1660.  
  1661.  
  1662.  
  1663.  
  1664.  
  1665.  
  1666.  
  1667.  
  1668.  
  1669.  
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682. /*
  1683.  
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690. This object simply moves dependent on the current position of the mouse */
  1691.  
  1692.  
  1693.  
  1694. }
  1695. end
  1696. End_Chunk
  1697. Chunk: InitPos
  1698.  Position: 365 30 1418
  1699. End_Chunk
  1700. ;
  1701. ;-------Object  296-------------------------------------------------------
  1702. Chunk: Standard
  1703.  Name:     "mouse-rep1"
  1704.  Number:   296
  1705.  Size:     760 250 1610
  1706.  Position: 0 30 0
  1707.  Type:     13
  1708.  Layer:    0
  1709.  DFlags:   R
  1710.  OFlags:   Ii
  1711. End_Chunk
  1712. Chunk: Colours
  1713.  Number: 6
  1714.  0xB6 0x12 0x16 0x19 0x17 0x16
  1715. End_Chunk
  1716. Chunk: SCL
  1717. float  f, h;
  1718.  
  1719.  
  1720.  
  1721. f=screenw;
  1722.  
  1723. h=screenh;
  1724.  
  1725. xpos (me)= (mousex+1)* (xsize (#292)-xsize (#296))/f;
  1726.  
  1727. zpos (me)= (h- (mousey+1))* (zsize (#292)-zsize (#296))/h;
  1728.  
  1729. ccel (me, 1)= (mouseb & 1)+1;
  1730.  
  1731.  
  1732.  
  1733.  
  1734.  
  1735.  
  1736.  
  1737. /*
  1738.  
  1739.  
  1740.  
  1741.  
  1742.  
  1743.  
  1744.  
  1745. This object simply moves dependent on the current position of the mouse */
  1746. end
  1747. End_Chunk
  1748. Chunk: InitPos
  1749.  Position: 0 30 0
  1750. End_Chunk
  1751.  
  1752. End_Children
  1753. ;
  1754. ;-------Object   65-------------------------------------------------------
  1755. Chunk: Standard
  1756.  Name:     "Light[65]"
  1757.  Number:   65
  1758.  Size:     4000 2000 2000
  1759.  Position: -950 20300 38620
  1760.  Type:     5
  1761.  Layer:    0
  1762.  DFlags:   r
  1763. End_Chunk
  1764. Chunk: Colours
  1765.  Number: 2
  1766.  0x3A 0x37
  1767. End_Chunk
  1768. Chunk: Rotations
  1769.  Initial: 0x0000 0xFFFFC000 0x0000
  1770.  Centre:  1500 1500 2450
  1771. End_Chunk
  1772. ;
  1773. ;-------Object  297-------------------------------------------------------
  1774. Chunk: Standard
  1775.  Name:     "Light[297]"
  1776.  Number:   297
  1777.  Size:     4000 2000 2000
  1778.  Position: -950 20300 13620
  1779.  Type:     5
  1780.  Layer:    0
  1781.  DFlags:   r
  1782. End_Chunk
  1783. Chunk: Colours
  1784.  Number: 2
  1785.  0x3A 0x37
  1786. End_Chunk
  1787. Chunk: Rotations
  1788.  Initial: 0x0000 0xFFFFC000 0x0000
  1789.  Centre:  1500 1500 2450
  1790. End_Chunk
  1791. ;
  1792. ;-------Object    6-------------------------------------------------------
  1793. Chunk: Standard
  1794.  Name:     "Seatback[6]"
  1795.  Number:   6
  1796.  Size:     2010 14199 19700
  1797.  Position: 58990 13808 7549
  1798.  Type:     0
  1799.  Layer:    0
  1800. End_Chunk
  1801. Chunk: TexCoords
  1802.  Number: 1
  1803.  Mode:   0
  1804.  SubChunk
  1805.   Facet:     1
  1806.   ImageRef:  1
  1807.   PixScale:  0
  1808.   NumCoords: 4
  1809.     0.00000 0.00000
  1810.     0.00000 1.00000
  1811.     1.00000 1.00000
  1812.     1.00000 0.00000
  1813. End_Chunk
  1814. Chunk: Colours
  1815.  Number: 6
  1816.  0x77 0x3F 0x77 0x3F 0x3F 0x3F
  1817. End_Chunk
  1818.  
  1819. Chunk: ImageRef
  1820.  Number: 1
  1821.  Index: 1 Image: 36
  1822. End_Chunk
  1823. ;
  1824. ;-------Object   32-------------------------------------------------------
  1825. Chunk: Standard
  1826.  Name:     "picture"
  1827.  Number:   32
  1828.  Size:     2999 3300 2499
  1829.  Position: 26500 11300 37000
  1830.  Type:     65535
  1831.  Layer:    0
  1832. End_Chunk
  1833.  
  1834. Children:
  1835. ;
  1836. ;-------Object   31-------------------------------------------------------
  1837. Chunk: Standard
  1838.  Name:     "desk[31]"
  1839.  Number:   31
  1840.  Size:     2999 4000 2499
  1841.  Position: 0 -700 0
  1842.  Type:     15
  1843.  Layer:    0
  1844. End_Chunk
  1845.  
  1846. Chunk: ImageRef
  1847.  Number: 1
  1848.  Index: 1 Image: 1
  1849. End_Chunk
  1850. Chunk: TexCoords
  1851.  Number: 1
  1852.  Mode:   0
  1853.  SubChunk
  1854.   Facet:     7
  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.     0.99973 0.00058
  1862. End_Chunk
  1863. Chunk: SCL
  1864. if (activate (me, 0))
  1865.  
  1866. {
  1867.  
  1868.   dlgInfo;
  1869.  
  1870.   clrtrig (me, 0);
  1871.  
  1872. }
  1873. end
  1874. End_Chunk
  1875. Chunk: Colours
  1876.  Number: 10
  1877.  0x3F 0xFA 0x3F 0x3F 0x3F 0x3F 0x26 0xFA 0x3F 0x3F
  1878. End_Chunk
  1879. Chunk: Rotations
  1880.  Initial: 0x1553 0xFFFFE000 0x0000
  1881.  Centre:  1499 2000 1249
  1882. End_Chunk
  1883.  
  1884. End_Children
  1885. ;
  1886. ;-------Object   33-------------------------------------------------------
  1887. Chunk: Standard
  1888.  Name:     "picture[33]"
  1889.  Number:   33
  1890.  Size:     2999 3300 2499
  1891.  Position: 19000 17300 5000
  1892.  Type:     65535
  1893.  Layer:    0
  1894. End_Chunk
  1895.  
  1896. Children:
  1897. ;
  1898. ;-------Object   34-------------------------------------------------------
  1899. Chunk: Standard
  1900.  Name:     "desk[34]"
  1901.  Number:   34
  1902.  Size:     3999 4000 2499
  1903.  Position: -500 -700 0
  1904.  Type:     15
  1905.  Layer:    0
  1906. End_Chunk
  1907. Chunk: TexCoords
  1908.  Number: 1
  1909.  Mode:   0
  1910.  SubChunk
  1911.   Facet:     7
  1912.   ImageRef:  1
  1913.   PixScale:  0
  1914.   NumCoords: 4
  1915.     0.00000 0.00000
  1916.     0.00000 1.00000
  1917.     1.00000 1.00000
  1918.     1.00000 0.00000
  1919. End_Chunk
  1920. Chunk: SCL
  1921. if (activate (me, 0))
  1922.  
  1923. {
  1924.  
  1925.   dlgPhoto;
  1926.  
  1927.   clrtrig (me, 0);
  1928.  
  1929. }
  1930. end
  1931. End_Chunk
  1932.  
  1933. Chunk: ImageRef
  1934.  Number: 1
  1935.  Index: 1 Image: 33
  1936. End_Chunk
  1937. Chunk: Colours
  1938.  Number: 10
  1939.  0x3F 0xFA 0x3F 0x3F 0x3F 0x3F 0x26 0xFA 0x3F 0x3F
  1940. End_Chunk
  1941. Chunk: Rotations
  1942.  Initial: 0x1553 0x1FFE 0x0000
  1943.  Centre:  1499 2000 1249
  1944. End_Chunk
  1945.  
  1946. End_Children
  1947. ;
  1948. ;-------Object   35-------------------------------------------------------
  1949. Chunk: Standard
  1950.  Name:     "wall[35]"
  1951.  Number:   35
  1952.  Size:     2000 2000 0
  1953.  Position: 44600 10700 2000
  1954.  Type:     1
  1955.  Layer:    0
  1956. End_Chunk
  1957. Chunk: TexCoords
  1958.  Number: 1
  1959.  Mode:   0
  1960.  SubChunk
  1961.   Facet:     2
  1962.   ImageRef:  1
  1963.   PixScale:  0
  1964.   NumCoords: 4
  1965.     0.00000 0.00000
  1966.     0.00000 1.00000
  1967.     1.00000 1.00000
  1968.     1.00000 0.00000
  1969. End_Chunk
  1970. Chunk: Rotations
  1971.  Initial: 0x0000 0x0000 0x0000
  1972.  Centre:  1000 1000 0
  1973. End_Chunk
  1974. Chunk: SCL
  1975. yrot (me)=359-yvroff+yrot (object (vattach));
  1976.  
  1977. xrot (me)=359-xvroff;
  1978.  
  1979. if (activate (me, 0))
  1980.  
  1981. {
  1982.  
  1983.  
  1984.  
  1985. /* Menulock stuff*/
  1986.  
  1987.  
  1988.  
  1989.   share (99)=3;
  1990.  
  1991.   loadvrt ("garden.vrt");
  1992.  
  1993.   clrtrig (me, 0);
  1994.  
  1995. }
  1996. end
  1997. End_Chunk
  1998.  
  1999. Chunk: ImageRef
  2000.  Number: 1
  2001.  Index: 1 Image: 4
  2002. End_Chunk
  2003. Chunk: Colours
  2004.  Number: 2
  2005.  0x77 0x76
  2006. End_Chunk
  2007. ;
  2008. ;-------Object    4-------------------------------------------------------
  2009. Chunk: Standard
  2010.  Name:     "desk[4]"
  2011.  Number:   4
  2012.  Size:     0 21000 10000
  2013.  Position: 4200 300 19400
  2014.  Type:     14
  2015.  Layer:    0
  2016. End_Chunk
  2017. Chunk: TexCoords
  2018.  Number: 1
  2019.  Mode:   0
  2020.  SubChunk
  2021.   Facet:     1
  2022.   ImageRef:  1
  2023.   PixScale:  0
  2024.   NumCoords: 4
  2025.     0.00000 0.00000
  2026.     0.00000 1.00000
  2027.     1.00000 1.00000
  2028.     1.00000 0.00000
  2029. End_Chunk
  2030.  
  2031. Chunk: ImageRef
  2032.  Number: 1
  2033.  Index: 1 Image: 10
  2034. End_Chunk
  2035. Chunk: Colours
  2036.  Number: 1
  2037.  0x20
  2038. End_Chunk
  2039. ;
  2040. ;-------Object   36-------------------------------------------------------
  2041. Chunk: Standard
  2042.  Name:     "CLOCKA: HOLD "
  2043.  Number:   36
  2044.  Size:     965 5629 5629
  2045.  Position: 25576 22000 -1332
  2046.  Type:     65535
  2047.  Layer:    0
  2048.  DFlags:   r
  2049. End_Chunk
  2050. Chunk: Rotations
  2051.  Initial: 0x0000 0xFFFFC000 0x0000
  2052.  Centre:  481 2813 2813
  2053. End_Chunk
  2054. Chunk: Colours
  2055.  Number: 18
  2056.  0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C 0x0C
  2057.  0x0C 0x0C
  2058. End_Chunk
  2059.  
  2060. Children:
  2061. ;
  2062. ;-------Object   37-------------------------------------------------------
  2063. Chunk: Standard
  2064.  Name:     "CLOCKA:Rim "
  2065.  Number:   37
  2066.  Size:     965 5629 5629
  2067.  Position: 0 0 0
  2068.  Type:     16
  2069.  Layer:    0
  2070. End_Chunk
  2071. Chunk: Distancing
  2072.  Visible:   21711
  2073.  Invisible: 23067
  2074.  Replace:   45
  2075. End_Chunk
  2076.  
  2077. Children:
  2078. ;
  2079. ;-------Object   38-------------------------------------------------------
  2080. Chunk: Standard
  2081.  Name:     "CLOCKA:Face hold "
  2082.  Number:   38
  2083.  Size:     331 3869 3869
  2084.  Position: 0 876 876
  2085.  Type:     65535
  2086.  Layer:    0
  2087. End_Chunk
  2088.  
  2089. Children:
  2090. ;
  2091. ;-------Object   39-------------------------------------------------------
  2092. Chunk: Standard
  2093.  Name:     "CLOCKA:Hour hand "
  2094.  Number:   39
  2095.  Size:     0 1449 384
  2096.  Position: 324 1844 1739
  2097.  Type:     17
  2098.  Layer:    0
  2099. End_Chunk
  2100. Chunk: Colours
  2101.  Number: 3
  2102.  0x30 0x01 0x37
  2103. End_Chunk
  2104. Chunk: Rotations
  2105.  Initial: 0x0000 0x0000 0x0000
  2106.  Centre:  0 87 191
  2107. End_Chunk
  2108. ;
  2109. ;-------Object   40-------------------------------------------------------
  2110. Chunk: Standard
  2111.  Name:     "CLOCKA:Minute hand "
  2112.  Number:   40
  2113.  Size:     0 1933 481
  2114.  Position: 326 1812 1691
  2115.  Type:     18
  2116.  Layer:    0
  2117. End_Chunk
  2118. Chunk: Colours
  2119.  Number: 6
  2120.  0x9E 0x01 0x01 0xA7 0x05 0x01
  2121. End_Chunk
  2122. Chunk: Rotations
  2123.  Initial: 0x0000 0x0000 0x0000
  2124.  Centre:  0 118 239
  2125. End_Chunk
  2126. ;
  2127. ;-------Object   41-------------------------------------------------------
  2128. Chunk: Standard
  2129.  Name:     "CLOCKA:Second hand "
  2130.  Number:   41
  2131.  Size:     0 1933 17
  2132.  Position: 328 1812 1923
  2133.  Type:     19
  2134.  Layer:    0
  2135. End_Chunk
  2136. Chunk: Colours
  2137.  Number: 2
  2138.  0x01 0x00
  2139. End_Chunk
  2140. Chunk: Rotations
  2141.  Initial: 0x0000 0x0000 0x0000
  2142.  Centre:  0 118 7
  2143. End_Chunk
  2144. ;
  2145. ;-------Object   42-------------------------------------------------------
  2146. Chunk: Standard
  2147.  Name:     "CLOCKA:Face hold (0,1) "
  2148.  Number:   42
  2149.  Size:     0 3869 3869
  2150.  Position: 322 0 0
  2151.  Type:     65535
  2152.  Layer:    0
  2153. End_Chunk
  2154. Chunk: SCL
  2155. short  h, m, s, s2=0;
  2156.  
  2157.  
  2158.  
  2159.  /* stores the hours,minutes and second values of the system clock */
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167. time (&h, &m, &s); 
  2168.  
  2169.  
  2170.  
  2171.     /* rotates the hands of the clock relative to the time */
  2172.  
  2173.  
  2174.  
  2175. if (s2!=s)
  2176.  
  2177.   s2=s;
  2178.  
  2179. xrot (#41)=360-s*6.0000;
  2180.  
  2181. xrot (#40)=360-m*6.0000-s/10.0000;
  2182.  
  2183. xrot (#39)=360-h*30.0000-m/2.0000;
  2184.  
  2185.  
  2186.  
  2187.  
  2188.  
  2189.  
  2190.  
  2191.     /*                */
  2192. end
  2193. End_Chunk
  2194.  
  2195. Children:
  2196. ;
  2197. ;-------Object   43-------------------------------------------------------
  2198. Chunk: Standard
  2199.  Name:     "CLOCKA:Face "
  2200.  Number:   43
  2201.  Size:     0 3869 3869
  2202.  Position: 0 0 0
  2203.  Type:     20
  2204.  Layer:    0
  2205. End_Chunk
  2206. Chunk: Colours
  2207.  Number: 35
  2208.  0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01
  2209.  0x01 0x01 0x01 0x01 0x01 0x32 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x00 0x01
  2210.  0x01 0x01 0x01
  2211. End_Chunk
  2212. Chunk: Distancing
  2213.  Visible:   6029
  2214.  Invisible: 6406
  2215.  Replace:   44
  2216. End_Chunk
  2217. ;
  2218. ;-------Object   44-------------------------------------------------------
  2219. Chunk: Standard
  2220.  Name:     "CLOCKA:Face Rep1 "
  2221.  Number:   44
  2222.  Size:     0 3869 3869
  2223.  Position: 0 0 0
  2224.  Type:     21
  2225.  Layer:    0
  2226.  DFlags:   R
  2227.  OFlags:   Ii
  2228. End_Chunk
  2229. Chunk: Colours
  2230.  Number: 30
  2231.  0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x32 0x01 0x01 0x01 0x01 0x01 0x01 0x01
  2232.  0x01 0x01 0x01 0x01 0x01 0xC7 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01
  2233. End_Chunk
  2234.  
  2235. End_Children
  2236.  
  2237. End_Children
  2238.  
  2239. End_Children
  2240. ;
  2241. ;-------Object   45-------------------------------------------------------
  2242. Chunk: Standard
  2243.  Name:     "CLOCKA:Rim Rep1 "
  2244.  Number:   45
  2245.  Size:     965 5629 5629
  2246.  Position: 0 0 0
  2247.  Type:     22
  2248.  Layer:    0
  2249.  DFlags:   R
  2250.  OFlags:   Ii
  2251. End_Chunk
  2252.  
  2253. Children:
  2254. ;
  2255. ;-------Object   46-------------------------------------------------------
  2256. Chunk: Standard
  2257.  Name:     "CLOCKA:Face hold Rep1 "
  2258.  Number:   46
  2259.  Size:     331 3869 3869
  2260.  Position: 0 876 876
  2261.  Type:     65535
  2262.  Layer:    0
  2263. End_Chunk
  2264.  
  2265. Children:
  2266. ;
  2267. ;-------Object   47-------------------------------------------------------
  2268. Chunk: Standard
  2269.  Name:     "CLOCKA:Hour hand Rep1 "
  2270.  Number:   47
  2271.  Size:     0 1449 384
  2272.  Position: 324 1844 1739
  2273.  Type:     17
  2274.  Layer:    0
  2275. End_Chunk
  2276. Chunk: Colours
  2277.  Number: 4
  2278.  0x30 0x01 0x37 0x30
  2279. End_Chunk
  2280. Chunk: Rotations
  2281.  Initial: 0x0000 0x0000 0x0000
  2282.  Centre:  0 87 191
  2283. End_Chunk
  2284. ;
  2285. ;-------Object   48-------------------------------------------------------
  2286. Chunk: Standard
  2287.  Name:     "CLOCKA:Minute hand Rep1 "
  2288.  Number:   48
  2289.  Size:     0 1933 481
  2290.  Position: 326 1812 1691
  2291.  Type:     18
  2292.  Layer:    0
  2293. End_Chunk
  2294. Chunk: Colours
  2295.  Number: 6
  2296.  0x9E 0x08 0x01 0xA7 0x05 0x01
  2297. End_Chunk
  2298. Chunk: Colours
  2299.  Number: 6
  2300.  0x9E 0x08 0x01 0xA7 0x05 0x01
  2301. End_Chunk
  2302. Chunk: Colours
  2303.  Number: 4
  2304.  0x30 0x01 0x01 0x30
  2305. End_Chunk
  2306. Chunk: Rotations
  2307.  Initial: 0x0000 0x0000 0x0000
  2308.  Centre:  0 118 239
  2309. End_Chunk
  2310. ;
  2311. ;-------Object   49-------------------------------------------------------
  2312. Chunk: Standard
  2313.  Name:     "CLOCKA:Second hand Rep1 "
  2314.  Number:   49
  2315.  Size:     0 1933 17
  2316.  Position: 328 1812 1923
  2317.  Type:     19
  2318.  Layer:    0
  2319. End_Chunk
  2320. Chunk: Colours
  2321.  Number: 2
  2322.  0x01 0x00
  2323. End_Chunk
  2324. Chunk: Rotations
  2325.  Initial: 0x0000 0x0000 0x0000
  2326.  Centre:  0 118 7
  2327. End_Chunk
  2328. ;
  2329. ;-------Object   50-------------------------------------------------------
  2330. Chunk: Standard
  2331.  Name:     "CLOCKA:Face hold (2,3) "
  2332.  Number:   50
  2333.  Size:     0 3869 3869
  2334.  Position: 322 0 0
  2335.  Type:     65535
  2336.  Layer:    0
  2337. End_Chunk
  2338. Chunk: SCL
  2339. short  h, m, s;
  2340.  
  2341.  
  2342.  
  2343. time (&h, &m, &s);
  2344.  
  2345. xrot (#49)=360-s*6.0000;
  2346.  
  2347. xrot (#48)=360- (m*6.0000+s/10.0000);
  2348.  
  2349. xrot (#47)=360- (h*30.0000+m/2.0000);
  2350.  
  2351.  
  2352.  
  2353.  
  2354.  
  2355.  
  2356.  
  2357.     /*                */
  2358.  
  2359.  
  2360.  
  2361.  
  2362. end
  2363. End_Chunk
  2364.  
  2365. Children:
  2366. ;
  2367. ;-------Object   51-------------------------------------------------------
  2368. Chunk: Standard
  2369.  Name:     "CLOCKA:Face Rep2 "
  2370.  Number:   51
  2371.  Size:     0 3869 3869
  2372.  Position: 0 0 0
  2373.  Type:     23
  2374.  Layer:    0
  2375. End_Chunk
  2376. Chunk: Colours
  2377.  Number: 35
  2378.  0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x32 0x01 0x01 0x01 0x01 0x01 0x01
  2379.  0x01 0x01 0x01 0x01 0x01 0xC7 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x00 0x01
  2380.  0x01 0x01 0x01
  2381. End_Chunk
  2382. Chunk: Distancing
  2383.  Visible:   33775
  2384.  Invisible: 35884
  2385.  Replace:   53
  2386. End_Chunk
  2387. ;
  2388. ;-------Object   53-------------------------------------------------------
  2389. Chunk: Standard
  2390.  Name:     "CLOCKA:Face Rep3 "
  2391.  Number:   53
  2392.  Size:     0 3869 3869
  2393.  Position: 0 0 0
  2394.  Type:     24
  2395.  Layer:    0
  2396.  DFlags:   R
  2397.  OFlags:   Ii
  2398. End_Chunk
  2399. Chunk: Colours
  2400.  Number: 35
  2401.  0x01 0x01 0x32 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01
  2402.  0x01 0x01 0x01 0x01 0x01 0xC7 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x00 0x01
  2403.  0x01 0x01 0x01
  2404. End_Chunk
  2405.  
  2406. End_Children
  2407.  
  2408. End_Children
  2409.  
  2410. End_Children
  2411.  
  2412. End_Children
  2413. ;
  2414. ;-------Object    8-------------------------------------------------------
  2415. Chunk: Standard
  2416.  Name:     "Chairbasehold[8]"
  2417.  Number:   8
  2418.  Size:     12000 19708 6995
  2419.  Position: 11522 300 14070
  2420.  Type:     65535
  2421.  Layer:    0
  2422.  DFlags:   r
  2423. End_Chunk
  2424. Chunk: SCL
  2425. yrot (me)=359-yvroff+yrot (object (vattach));
  2426.  
  2427.  
  2428. end
  2429. End_Chunk
  2430. Chunk: Rotations
  2431.  Initial: 0x0000 0xFFFFB2D4 0x0000
  2432.  Centre:  6000 6854 3500
  2433. End_Chunk
  2434.  
  2435. Children:
  2436. ;
  2437. ;-------Object   54-------------------------------------------------------
  2438. Chunk: Standard
  2439.  Name:     "chair_smut"
  2440.  Number:   54
  2441.  Size:     15000 19000 0
  2442.  Position: -1000 0 0
  2443.  Type:     1
  2444.  Layer:    0
  2445.  DFlags:   r
  2446.  OFlags:   Ii
  2447. End_Chunk
  2448. Chunk: TexCoords
  2449.  Number: 1
  2450.  Mode:   0
  2451.  SubChunk
  2452.   Facet:     2
  2453.   ImageRef:  1
  2454.   PixScale:  0
  2455.   NumCoords: 4
  2456.     0.00000 0.00000
  2457.     0.00000 1.00000
  2458.     1.00000 1.00000
  2459.     1.00000 0.00000
  2460. End_Chunk
  2461. Chunk: Rotations
  2462.  Initial: 0x0000 0x0000 0x0000
  2463.  Centre:  7200 9500 2520
  2464. End_Chunk
  2465. Chunk: InitPos
  2466.  Position: -1000 0 0
  2467. End_Chunk
  2468. Chunk: InitSize
  2469.  Size: 15000 19000 0
  2470. End_Chunk
  2471.  
  2472. Chunk: ImageRef
  2473.  Number: 1
  2474.  Index: 1 Image: 49
  2475. End_Chunk
  2476. Chunk: Colours
  2477.  Number: 2
  2478.  0x77 0x76
  2479. End_Chunk
  2480. ;
  2481. ;-------Object   14-------------------------------------------------------
  2482. Chunk: Standard
  2483.  Name:     "chair seat[14]"
  2484.  Number:   14
  2485.  Size:     7000 8000 7000
  2486.  Position: 2000 5708 0
  2487.  Type:     65535
  2488.  Layer:    0
  2489.  DFlags:   r
  2490. End_Chunk
  2491. Chunk: Rotations
  2492.  Initial: 0x0000 0x0000 0x0000
  2493.  Centre:  3500 4000 3500
  2494. End_Chunk
  2495.  
  2496. Children:
  2497. ;
  2498. ;-------Object   15-------------------------------------------------------
  2499. Chunk: Standard
  2500.  Name:     "Seatbase[15]"
  2501.  Number:   15
  2502.  Size:     7000 1000 7000
  2503.  Position: 0 0 0
  2504.  Type:     10
  2505.  Layer:    0
  2506. End_Chunk
  2507. Chunk: TexCoords
  2508.  Number: 1
  2509.  Mode:   0
  2510.  SubChunk
  2511.   Facet:     5
  2512.   ImageRef:  1
  2513.   PixScale:  0
  2514.   NumCoords: 4
  2515.     0.00000 0.00000
  2516.     0.00000 1.00000
  2517.     1.00000 1.00000
  2518.     1.00000 0.00000
  2519. End_Chunk
  2520. Chunk: SCL
  2521. long   STATS[8];
  2522.  
  2523. short  I, TEMP, LOWEST, MOOD;
  2524.  
  2525.  
  2526.  
  2527. resume (1, 2);
  2528.  
  2529. if (activate (me, 0) && vis? (#71))
  2530.  
  2531. {
  2532.  
  2533.   statsGet (&STATS);
  2534.  
  2535.   repeat (5)
  2536.  
  2537.   {
  2538.  
  2539.     TEMP=5+-inloop;
  2540.  
  2541.     repeat (5)
  2542.  
  2543.     {
  2544.  
  2545.       if (STATS[TEMP]<STATS[inloop-1] && 
  2546.  
  2547.           STATS[TEMP]<STATS[LOWEST])
  2548.  
  2549.         LOWEST=TEMP;
  2550.  
  2551.     }
  2552.  
  2553.   }
  2554.  
  2555.   MOOD=STATS[LOWEST]/100;
  2556.  
  2557.   MOOD=table (MOOD) {0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4};
  2558.  
  2559.   if (MOOD>2)
  2560.  
  2561.   {
  2562.  
  2563.     #73.Follow=#91;
  2564.  
  2565.     #73.Go=1;
  2566.  
  2567.     while (#73.Go==1)
  2568.  
  2569.       waitf;
  2570.  
  2571.     kill (#71);
  2572.  
  2573.     invis (#71);
  2574.  
  2575.     vis (#54);
  2576.  
  2577.     repeat (15)
  2578.  
  2579.     {
  2580.  
  2581.       xpos (#54)=ixpos (#54);
  2582.  
  2583.       counter (21)=table (inloop-1) {224, 229, 228, 227, 226, 
  2584.  
  2585.           235, 238, 237, 236, 225, 234, 233, 232, 231, 223};
  2586.  
  2587.       if (random (4)==1)
  2588.  
  2589.         counter (26)=table (random (5)) {50, 51, 125, 134, 154};
  2590.  
  2591.       waitfs (30);
  2592.  
  2593.     }
  2594.  
  2595.     repeat (15)
  2596.  
  2597.     {
  2598.  
  2599.       xpos (#54)=ixpos (#54);
  2600.  
  2601.       counter (21)=table (15-inloop) {224, 229, 228, 227, 226, 
  2602.  
  2603.           235, 238, 237, 236, 225, 234, 233, 232, 231, 223};
  2604.  
  2605.       if (random (4)==1)
  2606.  
  2607.         counter (26)=table (random (5)) {50, 51, 125, 134, 154};
  2608.  
  2609.       waitfs (30);
  2610.  
  2611.     }
  2612.  
  2613.     unkill (#71);
  2614.  
  2615.     vis (#71);
  2616.  
  2617.     invis (#54);
  2618.  
  2619.     #73.Follow=#86;
  2620.  
  2621.     #73.Go=1;
  2622.  
  2623.     #74.MOODS=1;
  2624.  
  2625.   }
  2626.  
  2627.   else
  2628.  
  2629.     counter (25)=table (random (2)) {26, 92};
  2630.  
  2631.   clrtrig (me, 0);
  2632.  
  2633. }
  2634. end
  2635. End_Chunk
  2636. Chunk: Colours
  2637.  Number: 6
  2638.  0x3F 0x01 0x3F 0x3F 0x16 0x3F
  2639. End_Chunk
  2640.  
  2641. Chunk: ImageRef
  2642.  Number: 1
  2643.  Index: 1 Image: 21
  2644. End_Chunk
  2645. ;
  2646. ;-------Object   21-------------------------------------------------------
  2647. Chunk: Standard
  2648.  Name:     "Seatback[21]"
  2649.  Number:   21
  2650.  Size:     7000 3999 1000
  2651.  Position: 0 4000 5999
  2652.  Type:     0
  2653.  Layer:    0
  2654. End_Chunk
  2655. Chunk: TexCoords
  2656.  Number: 5
  2657.  Mode:   0
  2658.  SubChunk
  2659.   Facet:     3
  2660.   ImageRef:  1
  2661.   PixScale:  0
  2662.   NumCoords: 4
  2663.     0.00000 0.00000
  2664.     0.00000 1.00000
  2665.     1.00000 1.00000
  2666.     1.00000 0.00000
  2667.  SubChunk
  2668.   Facet:     4
  2669.   ImageRef:  1
  2670.   PixScale:  0
  2671.   NumCoords: 4
  2672.     0.00000 0.00000
  2673.     0.00000 1.00000
  2674.     1.00000 1.00000
  2675.     1.00000 0.00000
  2676.  SubChunk
  2677.   Facet:     2
  2678.   ImageRef:  2
  2679.   PixScale:  0
  2680.   NumCoords: 4
  2681.     0.00000 0.00000
  2682.     0.00000 1.00000
  2683.     1.00000 1.00000
  2684.     1.00000 0.00000
  2685.  SubChunk
  2686.   Facet:     5
  2687.   ImageRef:  1
  2688.   PixScale:  0
  2689.   NumCoords: 4
  2690.     0.00000 0.00000
  2691.     0.00000 1.00000
  2692.     1.00000 1.00000
  2693.     0.99999 0.00020
  2694.  SubChunk
  2695.   Facet:     1
  2696.   ImageRef:  1
  2697.   PixScale:  0
  2698.   NumCoords: 4
  2699.     0.00000 0.00000
  2700.     0.00000 1.00000
  2701.     1.00000 1.00000
  2702.     1.00000 0.00000
  2703. End_Chunk
  2704. Chunk: Colours
  2705.  Number: 6
  2706.  0x77 0x76 0x77 0x01 0x75 0x01
  2707. End_Chunk
  2708.  
  2709. Chunk: ImageRef
  2710.  Number: 2
  2711.  Index: 1 Image: 37
  2712.  Index: 2 Image: 21
  2713. End_Chunk
  2714. ;
  2715. ;-------Object   22-------------------------------------------------------
  2716. Chunk: Standard
  2717.  Name:     "Seatback[22]"
  2718.  Number:   22
  2719.  Size:     1000 3000 1000
  2720.  Position: 3000 1000 5999
  2721.  Type:     0
  2722.  Layer:    0
  2723. End_Chunk
  2724. Chunk: TexCoords
  2725.  Number: 4
  2726.  Mode:   0
  2727.  SubChunk
  2728.   Facet:     2
  2729.   ImageRef:  1
  2730.   PixScale:  0
  2731.   NumCoords: 4
  2732.     0.00000 0.00000
  2733.     0.00000 1.00000
  2734.     1.00000 1.00000
  2735.     1.00000 0.00000
  2736.  SubChunk
  2737.   Facet:     1
  2738.   ImageRef:  1
  2739.   PixScale:  0
  2740.   NumCoords: 4
  2741.     0.00000 0.00000
  2742.     0.00000 1.00000
  2743.     1.00000 1.00000
  2744.     1.00000 0.00000
  2745.  SubChunk
  2746.   Facet:     4
  2747.   ImageRef:  1
  2748.   PixScale:  0
  2749.   NumCoords: 4
  2750.     0.00000 0.00000
  2751.     0.00000 1.00000
  2752.     1.00000 1.00000
  2753.     1.00000 0.00000
  2754.  SubChunk
  2755.   Facet:     3
  2756.   ImageRef:  1
  2757.   PixScale:  0
  2758.   NumCoords: 4
  2759.     0.00000 0.00000
  2760.     0.00000 1.00000
  2761.     1.00000 1.00000
  2762.     1.00000 0.00000
  2763. End_Chunk
  2764. Chunk: Colours
  2765.  Number: 6
  2766.  0x77 0x76 0x77 0x76 0x01 0x75
  2767. End_Chunk
  2768.  
  2769. Chunk: ImageRef
  2770.  Number: 3
  2771.  Index: 1 Image: 38
  2772.  Index: 2 Image: 65535
  2773.  Index: 3 Image: 65535
  2774. End_Chunk
  2775.  
  2776. End_Children
  2777. ;
  2778. ;-------Object   23-------------------------------------------------------
  2779. Chunk: Standard
  2780.  Name:     "caster1[23]"
  2781.  Number:   23
  2782.  Size:     545 1079 353
  2783.  Position: 5287 0 294
  2784.  Type:     9
  2785.  Layer:    0
  2786. End_Chunk
  2787. Chunk: Distancing
  2788.  Visible:   44527
  2789.  Invisible: 55659
  2790.  Replace:   0
  2791. End_Chunk
  2792. Chunk: Rotations
  2793.  Initial: 0x0000 0x31C7 0x0000
  2794.  Centre:  138 376 177
  2795. End_Chunk
  2796. ;
  2797. ;-------Object   24-------------------------------------------------------
  2798. Chunk: Standard
  2799.  Name:     "caster4[24]"
  2800.  Number:   24
  2801.  Size:     545 1079 353
  2802.  Position: 5374 0 6562
  2803.  Type:     9
  2804.  Layer:    0
  2805.  DFlags:   r
  2806. End_Chunk
  2807. Chunk: Distancing
  2808.  Visible:   44527
  2809.  Invisible: 55659
  2810.  Replace:   0
  2811. End_Chunk
  2812. Chunk: Rotations
  2813.  Initial: 0x0000 0x0000 0x0000
  2814.  Centre:  138 376 177
  2815. End_Chunk
  2816. ;
  2817. ;-------Object   25-------------------------------------------------------
  2818. Chunk: Standard
  2819.  Name:     "Wheelbase[25]"
  2820.  Number:   25
  2821.  Size:     900 900 7000
  2822.  Position: 5000 1079 0
  2823.  Type:     10
  2824.  Layer:    0
  2825. End_Chunk
  2826. Chunk: TexCoords
  2827.  Number: 3
  2828.  Mode:   0
  2829.  SubChunk
  2830.   Facet:     1
  2831.   ImageRef:  1
  2832.   PixScale:  0
  2833.   NumCoords: 4
  2834.     0.00000 0.00000
  2835.     0.00000 1.00000
  2836.     1.00000 1.00000
  2837.     1.00000 0.00000
  2838.  SubChunk
  2839.   Facet:     3
  2840.   ImageRef:  1
  2841.   PixScale:  0
  2842.   NumCoords: 4
  2843.     0.00000 0.00000
  2844.     0.00000 1.00000
  2845.     1.00000 1.00000
  2846.     1.00000 0.00000
  2847.  SubChunk
  2848.   Facet:     5
  2849.   ImageRef:  1
  2850.   PixScale:  0
  2851.   NumCoords: 4
  2852.     0.00000 0.00000
  2853.     0.00000 1.00000
  2854.     1.00000 1.00000
  2855.     1.00000 0.00000
  2856. End_Chunk
  2857. Chunk: Colours
  2858.  Number: 6
  2859.  0x15 0x01 0x19 0x3F 0x16 0x1B
  2860. End_Chunk
  2861.  
  2862. Chunk: ImageRef
  2863.  Number: 1
  2864.  Index: 1 Image: 38
  2865. End_Chunk
  2866. ;
  2867. ;-------Object   26-------------------------------------------------------
  2868. Chunk: Standard
  2869.  Name:     "Seatstem[26]"
  2870.  Number:   26
  2871.  Size:     900 3800 900
  2872.  Position: 5071 1908 3127
  2873.  Type:     0
  2874.  Layer:    0
  2875. End_Chunk
  2876. Chunk: TexCoords
  2877.  Number: 4
  2878.  Mode:   0
  2879.  SubChunk
  2880.   Facet:     1
  2881.   ImageRef:  1
  2882.   PixScale:  0
  2883.   NumCoords: 4
  2884.     0.00000 0.00000
  2885.     0.00000 1.00000
  2886.     1.00000 1.00000
  2887.     1.00000 0.00000
  2888.  SubChunk
  2889.   Facet:     3
  2890.   ImageRef:  1
  2891.   PixScale:  0
  2892.   NumCoords: 4
  2893.     0.00000 0.00000
  2894.     0.00000 1.00000
  2895.     1.00000 1.00000
  2896.     1.00000 0.00000
  2897.  SubChunk
  2898.   Facet:     4
  2899.   ImageRef:  1
  2900.   PixScale:  0
  2901.   NumCoords: 4
  2902.     0.00000 0.00000
  2903.     0.00000 1.00000
  2904.     1.00000 1.00000
  2905.     1.00000 0.00000
  2906.  SubChunk
  2907.   Facet:     2
  2908.   ImageRef:  1
  2909.   PixScale:  0
  2910.   NumCoords: 4
  2911.     0.00000 0.00000
  2912.     0.00000 1.00000
  2913.     1.00000 1.00000
  2914.     1.00000 0.00000
  2915. End_Chunk
  2916.  
  2917. Chunk: ImageRef
  2918.  Number: 1
  2919.  Index: 1 Image: 38
  2920. End_Chunk
  2921. ;
  2922. ;-------Object   27-------------------------------------------------------
  2923. Chunk: Standard
  2924.  Name:     "Wheelbase[27]"
  2925.  Number:   27
  2926.  Size:     3000 900 900
  2927.  Position: 2000 1079 3127
  2928.  Type:     10
  2929.  Layer:    0
  2930. End_Chunk
  2931. Chunk: TexCoords
  2932.  Number: 3
  2933.  Mode:   0
  2934.  SubChunk
  2935.   Facet:     2
  2936.   ImageRef:  1
  2937.   PixScale:  0
  2938.   NumCoords: 4
  2939.     0.00000 0.00000
  2940.     0.00000 1.00000
  2941.     1.00000 1.00000
  2942.     1.00000 0.00000
  2943.  SubChunk
  2944.   Facet:     4
  2945.   ImageRef:  1
  2946.   PixScale:  0
  2947.   NumCoords: 4
  2948.     0.00000 0.00000
  2949.     0.00000 1.00000
  2950.     1.00000 1.00000
  2951.     1.00000 0.00000
  2952.  SubChunk
  2953.   Facet:     5
  2954.   ImageRef:  1
  2955.   PixScale:  0
  2956.   NumCoords: 4
  2957.     0.00000 0.00000
  2958.     0.00000 1.00000
  2959.     1.00000 1.00000
  2960.     0.99973 0.00000
  2961. End_Chunk
  2962. Chunk: Colours
  2963.  Number: 6
  2964.  0x3F 0x14 0x19 0x1A 0x16 0x1B
  2965. End_Chunk
  2966.  
  2967. Chunk: ImageRef
  2968.  Number: 1
  2969.  Index: 1 Image: 38
  2970. End_Chunk
  2971. ;
  2972. ;-------Object   28-------------------------------------------------------
  2973. Chunk: Standard
  2974.  Name:     "Wheelbase[28]"
  2975.  Number:   28
  2976.  Size:     3000 900 900
  2977.  Position: 5900 1079 3127
  2978.  Type:     10
  2979.  Layer:    0
  2980. End_Chunk
  2981. Chunk: TexCoords
  2982.  Number: 3
  2983.  Mode:   0
  2984.  SubChunk
  2985.   Facet:     2
  2986.   ImageRef:  1
  2987.   PixScale:  0
  2988.   NumCoords: 4
  2989.     0.00000 0.00000
  2990.     0.00000 1.00000
  2991.     1.00000 1.00000
  2992.     1.00000 0.00000
  2993.  SubChunk
  2994.   Facet:     4
  2995.   ImageRef:  1
  2996.   PixScale:  0
  2997.   NumCoords: 4
  2998.     0.00000 0.00000
  2999.     0.00000 1.00000
  3000.     1.00000 1.00000
  3001.     1.00000 0.00000
  3002.  SubChunk
  3003.   Facet:     5
  3004.   ImageRef:  1
  3005.   PixScale:  0
  3006.   NumCoords: 4
  3007.     0.00000 0.00000
  3008.     0.00000 1.00000
  3009.     1.00000 1.00000
  3010.     0.99995 0.00000
  3011. End_Chunk
  3012. Chunk: Colours
  3013.  Number: 6
  3014.  0x15 0x14 0x3F 0x1A 0x16 0x1B
  3015. End_Chunk
  3016.  
  3017. Chunk: ImageRef
  3018.  Number: 1
  3019.  Index: 1 Image: 38
  3020. End_Chunk
  3021. ;
  3022. ;-------Object   29-------------------------------------------------------
  3023. Chunk: Standard
  3024.  Name:     "caster2[29]"
  3025.  Number:   29
  3026.  Size:     545 1079 353
  3027.  Position: 2400 0 3447
  3028.  Type:     9
  3029.  Layer:    0
  3030. End_Chunk
  3031. Chunk: Distancing
  3032.  Visible:   44527
  3033.  Invisible: 55659
  3034.  Replace:   0
  3035. End_Chunk
  3036. Chunk: Rotations
  3037.  Initial: 0x0000 0x0000 0x0000
  3038.  Centre:  138 376 177
  3039. End_Chunk
  3040. ;
  3041. ;-------Object   30-------------------------------------------------------
  3042. Chunk: Standard
  3043.  Name:     "caster5[30]"
  3044.  Number:   30
  3045.  Size:     545 1079 353
  3046.  Position: 8355 0 3400
  3047.  Type:     9
  3048.  Layer:    0
  3049.  DFlags:   r
  3050. End_Chunk
  3051. Chunk: Distancing
  3052.  Visible:   44527
  3053.  Invisible: 55659
  3054.  Replace:   0
  3055. End_Chunk
  3056. Chunk: Rotations
  3057.  Initial: 0x0000 0x0000 0x0000
  3058.  Centre:  138 376 177
  3059. End_Chunk
  3060.  
  3061. End_Children
  3062. ;
  3063. ;-------Object   56-------------------------------------------------------
  3064. Chunk: Standard
  3065.  Name:     "Seatback[56]"
  3066.  Number:   56
  3067.  Size:     7010 2199 13700
  3068.  Position: 53990 300 25249
  3069.  Type:     0
  3070.  Layer:    0
  3071. End_Chunk
  3072. Chunk: TexCoords
  3073.  Number: 3
  3074.  Mode:   0
  3075.  SubChunk
  3076.   Facet:     1
  3077.   ImageRef:  1
  3078.   PixScale:  0
  3079.   NumCoords: 4
  3080.     0.00000 0.00000
  3081.     0.00000 1.00000
  3082.     1.00000 1.00000
  3083.     1.00000 0.00000
  3084.  SubChunk
  3085.   Facet:     2
  3086.   ImageRef:  1
  3087.   PixScale:  0
  3088.   NumCoords: 4
  3089.     0.00000 0.00000
  3090.     0.00000 1.00000
  3091.     1.00000 1.00000
  3092.     1.00000 0.00000
  3093.  SubChunk
  3094.   Facet:     4
  3095.   ImageRef:  1
  3096.   PixScale:  0
  3097.   NumCoords: 4
  3098.     0.00000 0.00000
  3099.     0.00000 1.00000
  3100.     1.00000 1.00000
  3101.     1.00000 0.00000
  3102. End_Chunk
  3103. Chunk: Colours
  3104.  Number: 6
  3105.  0x77 0x3F 0x77 0x3F 0x3F 0x3F
  3106. End_Chunk
  3107.  
  3108. Chunk: ImageRef
  3109.  Number: 1
  3110.  Index: 1 Image: 43
  3111. End_Chunk
  3112. ;
  3113. ;-------Object   57-------------------------------------------------------
  3114. Chunk: Standard
  3115.  Name:     "Seatback[57]"
  3116.  Number:   57
  3117.  Size:     8010 9309 15700
  3118.  Position: 52990 2499 24249
  3119.  Type:     0
  3120.  Layer:    0
  3121. End_Chunk
  3122. Chunk: TexCoords
  3123.  Number: 4
  3124.  Mode:   0
  3125.  SubChunk
  3126.   Facet:     5
  3127.   ImageRef:  1
  3128.   PixScale:  0
  3129.   NumCoords: 4
  3130.     0.00000 0.00000
  3131.     0.00000 1.00000
  3132.     1.00000 1.00000
  3133.     1.00000 0.00000
  3134.  SubChunk
  3135.   Facet:     1
  3136.   ImageRef:  2
  3137.   PixScale:  0
  3138.   NumCoords: 4
  3139.     0.00000 0.00000
  3140.     0.00000 1.00000
  3141.     1.00000 1.00000
  3142.     1.00000 0.00000
  3143.  SubChunk
  3144.   Facet:     2
  3145.   ImageRef:  3
  3146.   PixScale:  0
  3147.   NumCoords: 4
  3148.     0.00000 0.00000
  3149.     0.00000 1.00000
  3150.     1.00000 1.00000
  3151.     1.00000 0.00000
  3152.  SubChunk
  3153.   Facet:     4
  3154.   ImageRef:  4
  3155.   PixScale:  0
  3156.   NumCoords: 4
  3157.     0.00000 0.00000
  3158.     0.00000 1.00000
  3159.     1.00000 1.00000
  3160.     1.00000 0.00000
  3161. End_Chunk
  3162. Chunk: Colours
  3163.  Number: 6
  3164.  0x77 0x3F 0x77 0x3F 0x3F 0x3F
  3165. End_Chunk
  3166.  
  3167. Chunk: ImageRef
  3168.  Number: 4
  3169.  Index: 1 Image: 48
  3170.  Index: 2 Image: 44
  3171.  Index: 3 Image: 47
  3172.  Index: 4 Image: 41
  3173. End_Chunk
  3174. ;
  3175. ;-------Object   66-------------------------------------------------------
  3176. Chunk: Standard
  3177.  Name:     " photo-scan"
  3178.  Number:   66
  3179.  Size:     5010 0 900
  3180.  Position: 53990 11808 36549
  3181.  Type:     26
  3182.  Layer:    0
  3183. End_Chunk
  3184. Chunk: InitPos
  3185.  Position: 53990 11808 36549
  3186. End_Chunk
  3187. ;
  3188. ;-------Object   60-------------------------------------------------------
  3189. Chunk: Standard
  3190.  Name:     "Seatback[60]"
  3191.  Number:   60
  3192.  Size:     2010 1009 15700
  3193.  Position: 58990 11808 24249
  3194.  Type:     0
  3195.  Layer:    0
  3196. End_Chunk
  3197. Chunk: TexCoords
  3198.  Number: 1
  3199.  Mode:   0
  3200.  SubChunk
  3201.   Facet:     5
  3202.   ImageRef:  1
  3203.   PixScale:  0
  3204.   NumCoords: 4
  3205.     0.00000 0.00000
  3206.     0.00000 1.00000
  3207.     1.00000 1.00000
  3208.     1.00000 0.00000
  3209. End_Chunk
  3210. Chunk: Colours
  3211.  Number: 6
  3212.  0x3F 0x3F 0x77 0x3F 0x3F 0x3F
  3213. End_Chunk
  3214.  
  3215. Chunk: ImageRef
  3216.  Number: 1
  3217.  Index: 1 Image: 41
  3218. End_Chunk
  3219. ;
  3220. ;-------Object   63-------------------------------------------------------
  3221. Chunk: Standard
  3222.  Name:     "Seatback[63]"
  3223.  Number:   63
  3224.  Size:     6000 1009 15700
  3225.  Position: 52990 11808 24249
  3226.  Type:     0
  3227.  Layer:    0
  3228.  DFlags:   r
  3229. End_Chunk
  3230. Chunk: TexCoords
  3231.  Number: 5
  3232.  Mode:   0
  3233.  SubChunk
  3234.   Facet:     1
  3235.   ImageRef:  1
  3236.   PixScale:  0
  3237.   NumCoords: 4
  3238.     0.00000 0.00000
  3239.     0.00000 1.00000
  3240.     1.00000 1.00000
  3241.     1.00000 0.00000
  3242.  SubChunk
  3243.   Facet:     4
  3244.   ImageRef:  1
  3245.   PixScale:  0
  3246.   NumCoords: 4
  3247.     0.00000 0.00000
  3248.     0.00000 1.00000
  3249.     1.00000 1.00000
  3250.     1.00000 0.00000
  3251.  SubChunk
  3252.   Facet:     2
  3253.   ImageRef:  1
  3254.   PixScale:  0
  3255.   NumCoords: 4
  3256.     0.00000 0.00000
  3257.     0.00000 1.00000
  3258.     1.00000 1.00000
  3259.     1.00000 0.00000
  3260.  SubChunk
  3261.   Facet:     5
  3262.   ImageRef:  2
  3263.   PixScale:  0
  3264.   NumCoords: 4
  3265.     0.00000 0.00000
  3266.     0.00000 1.00000
  3267.     1.00000 1.00000
  3268.     1.00000 0.00000
  3269.  SubChunk
  3270.   Facet:     6
  3271.   ImageRef:  2
  3272.   PixScale:  0
  3273.   NumCoords: 4
  3274.     0.00000 0.00000
  3275.     0.00000 1.00000
  3276.     1.00000 1.00000
  3277.     1.00000 0.00000
  3278. End_Chunk
  3279.  
  3280. Chunk: SoundRef
  3281.  Number: 2
  3282.  Index: 1 Sound: 3
  3283.  Index: 2 Sound: 4
  3284. End_Chunk
  3285. Chunk: Rotations
  3286.  Initial: 0x0000 0x0000 0x0000
  3287.  Centre:  6000 1009 7850
  3288. End_Chunk
  3289. Chunk: SCL
  3290. short  Good=1, MOOD, TEMP, LOWEST;
  3291.  
  3292. long   STATS[8];
  3293.  
  3294.  
  3295.  
  3296. resume (1, 2);
  3297.  
  3298. if (activate (me, 0))
  3299.  
  3300. {
  3301.  
  3302.   statsGet (&STATS);
  3303.  
  3304.   repeat (5)
  3305.  
  3306.   {
  3307.  
  3308.     TEMP=5+-inloop;
  3309.  
  3310.     repeat (5)
  3311.  
  3312.     {
  3313.  
  3314.       if (STATS[TEMP]<STATS[inloop-1] && 
  3315.  
  3316.           STATS[TEMP]<STATS[LOWEST])
  3317.  
  3318.         LOWEST=TEMP;
  3319.  
  3320.     }
  3321.  
  3322.   }
  3323.  
  3324.   MOOD=STATS[LOWEST]/100;
  3325.  
  3326.   MOOD=table (MOOD) {0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4};
  3327.  
  3328.   if (MOOD>2)
  3329.  
  3330.   {
  3331.  
  3332.     Good=1;
  3333.  
  3334.     counter (26)=157;
  3335.  
  3336.     waitfs (3);
  3337.  
  3338.     if (zrot (me)==0)
  3339.  
  3340.     {
  3341.  
  3342. /*
  3343.  
  3344.       sound (2, 64, 127, 0);
  3345.  
  3346.       sound (2, 64, 127, 0);
  3347.  
  3348.       sound (2, 64, 127, 0);
  3349.  
  3350. */
  3351.  
  3352.       repeat (9)
  3353.  
  3354.       {
  3355.  
  3356.         zrot (me)+=10;
  3357.  
  3358.         waitf;
  3359.  
  3360.       }
  3361.  
  3362.     /*  sound (2, 64, 127, 0);*/
  3363.  
  3364.       zrot (me)=90;
  3365.  
  3366.       #73.Follow=#88;
  3367.  
  3368.       #73.Go=1;
  3369.  
  3370.       while (#73.Go==1)
  3371.  
  3372.         waitf;
  3373.  
  3374.       kill (#71);
  3375.  
  3376.       invis (#71);
  3377.  
  3378.     }
  3379.  
  3380.     else
  3381.  
  3382.     {
  3383.  
  3384.       invis (#55);
  3385.  
  3386.       Good=0;
  3387.  
  3388.     /*  sound (2, 64, 127, 0);*//* george put your walking person back*/
  3389.  
  3390.       #73.Follow=#85;
  3391.  
  3392.       #73.Go=1;
  3393.  
  3394.       unkill (#71);
  3395.  
  3396.       vis (#71);
  3397.  
  3398.       repeat (9)
  3399.  
  3400.       {
  3401.  
  3402.         zrot (me)-=10;
  3403.  
  3404.         waitf;
  3405.  
  3406.       }
  3407.  
  3408. /*
  3409.  
  3410.       sound (1, 64, 127, 0);
  3411.  
  3412.       sound (1, 64, 127, 0);
  3413.  
  3414.       sound (1, 64, 127, 0);
  3415.  
  3416. */
  3417.  
  3418.       zrot (me)=0;
  3419.  
  3420.     }
  3421.  
  3422.     if (Good)
  3423.  
  3424.     {
  3425.  
  3426. /* george movewalking person to copyier then invis*/
  3427.  
  3428.       #73.Follow=#88;
  3429.  
  3430.       #73.Go=1;
  3431.  
  3432.       while (#73.Go==1)
  3433.  
  3434.         waitf;
  3435.  
  3436.       kill (#71);
  3437.  
  3438.       invis (#71);
  3439.  
  3440.       vis (#55);
  3441.  
  3442.       marker (25)=999;
  3443.  
  3444.     }
  3445.  
  3446.   }
  3447.  
  3448.   else
  3449.  
  3450.     counter (25)=table (random (2)) {26, 92};
  3451.  
  3452.   clrtrig (me, 0);
  3453.  
  3454. }
  3455. end
  3456. End_Chunk
  3457. Chunk: Colours
  3458.  Number: 6
  3459.  0x77 0x3F 0x77 0x3F 0x3F 0x3F
  3460. End_Chunk
  3461.  
  3462. Chunk: ImageRef
  3463.  Number: 2
  3464.  Index: 1 Image: 43
  3465.  Index: 2 Image: 41
  3466. End_Chunk
  3467. ;
  3468. ;-------Object   58-------------------------------------------------------
  3469. Chunk: Standard
  3470.  Name:     "Seatback[58]"
  3471.  Number:   58
  3472.  Size:     5010 1199 6700
  3473.  Position: 54490 7300 17549
  3474.  Type:     0
  3475.  Layer:    0
  3476. End_Chunk
  3477. Chunk: TexCoords
  3478.  Number: 3
  3479.  Mode:   0
  3480.  SubChunk
  3481.   Facet:     5
  3482.   ImageRef:  1
  3483.   PixScale:  0
  3484.   NumCoords: 4
  3485.     0.00000 0.00000
  3486.     0.00000 1.00000
  3487.     1.00000 1.00000
  3488.     1.00000 0.00000
  3489.  SubChunk
  3490.   Facet:     1
  3491.   ImageRef:  2
  3492.   PixScale:  0
  3493.   NumCoords: 4
  3494.     0.00000 0.00000
  3495.     0.00000 1.00000
  3496.     1.00000 1.00000
  3497.     1.00000 0.00000
  3498.  SubChunk
  3499.   Facet:     2
  3500.   ImageRef:  2
  3501.   PixScale:  0
  3502.   NumCoords: 4
  3503.     0.00000 0.00000
  3504.     0.00000 1.00000
  3505.     1.00000 1.00000
  3506.     1.00000 0.00000
  3507. End_Chunk
  3508. Chunk: Colours
  3509.  Number: 6
  3510.  0x77 0x3F 0x77 0x3F 0x3F 0x3F
  3511. End_Chunk
  3512.  
  3513. Chunk: ImageRef
  3514.  Number: 2
  3515.  Index: 1 Image: 41
  3516.  Index: 2 Image: 45
  3517. End_Chunk
  3518. ;
  3519. ;-------Object   55-------------------------------------------------------
  3520. Chunk: Standard
  3521.  Name:     " photo-bint"
  3522.  Number:   55
  3523.  Size:     15000 19000 0
  3524.  Position: 45490 4300 34011
  3525.  Type:     1
  3526.  Layer:    0
  3527.  DFlags:   r
  3528.  OFlags:   Ii
  3529. End_Chunk
  3530. Chunk: TexCoords
  3531.  Number: 1
  3532.  Mode:   0
  3533.  SubChunk
  3534.   Facet:     2
  3535.   ImageRef:  1
  3536.   PixScale:  0
  3537.   NumCoords: 4
  3538.     0.00000 0.00000
  3539.     0.00000 1.00000
  3540.     1.00000 1.00000
  3541.     0.00000 0.00000
  3542. End_Chunk
  3543. Chunk: Rotations
  3544.  Initial: 0x0000 0x4000 0x0000
  3545.  Centre:  7500 9500 0
  3546. End_Chunk
  3547.  
  3548. Chunk: ImageRef
  3549.  Number: 1
  3550.  Index: 1 Image: 6
  3551. End_Chunk
  3552. Chunk: Colours
  3553.  Number: 2
  3554.  0x77 0x00
  3555. End_Chunk
  3556. ;
  3557. ;-------Object   64-------------------------------------------------------
  3558. Chunk: Standard
  3559.  Name:     "Seatback[64]"
  3560.  Number:   64
  3561.  Size:     400 1909 2600
  3562.  Position: 52590 8899 25649
  3563.  Type:     0
  3564.  Layer:    0
  3565. End_Chunk
  3566. Chunk: TexCoords
  3567.  Number: 1
  3568.  Mode:   0
  3569.  SubChunk
  3570.   Facet:     1
  3571.   ImageRef:  1
  3572.   PixScale:  0
  3573.   NumCoords: 4
  3574.     0.00000 0.00000
  3575.     0.00000 1.00000
  3576.     1.00000 1.00000
  3577.     1.00000 0.00000
  3578. End_Chunk
  3579.  
  3580. Chunk: SoundRef
  3581.  Number: 1
  3582.  Index: 1 Sound: 2
  3583. End_Chunk
  3584. Chunk: SCL
  3585. resume (1, 2);
  3586.  
  3587. if (activate (me, 0) && vis? (#55))
  3588.  
  3589. {
  3590.  
  3591.   sound (1, 64, 127, 0);
  3592.  
  3593.   sound (1, 64, 127, 0);
  3594.  
  3595.   sound (1, 64, 127, 0);
  3596.  
  3597.   zpos (#66)=izpos (#66);
  3598.  
  3599.   vis (#66);
  3600.  
  3601.   repeat (10)
  3602.  
  3603.   {
  3604.  
  3605.     zpos (#66)-=1000;
  3606.  
  3607.     waitf;
  3608.  
  3609.   }
  3610.  
  3611.   invis (#66);
  3612.  
  3613.   animode (#67, 1)=5;
  3614.  
  3615.   waitf;
  3616.  
  3617.   vis (#67);
  3618.  
  3619.   waitfs (9);
  3620.  
  3621.   invis (#67);
  3622.  
  3623.   vis (#68);
  3624.  
  3625.   clrtrig (me, 0);
  3626.  
  3627. }
  3628. end
  3629. End_Chunk
  3630. Chunk: Colours
  3631.  Number: 6
  3632.  0x77 0x3F 0x77 0x3F 0x3F 0x3F
  3633. End_Chunk
  3634.  
  3635. Chunk: ImageRef
  3636.  Number: 3
  3637.  Index: 1 Image: 42
  3638.  Index: 2 Image: 65535
  3639.  Index: 3 Image: 65535
  3640. End_Chunk
  3641. ;
  3642. ;-------Object   67-------------------------------------------------------
  3643. Chunk: Standard
  3644.  Name:     "paper"
  3645.  Number:   67
  3646.  Size:     4010 0 6000
  3647.  Position: 54990 8599 18249
  3648.  Type:     27
  3649.  Layer:    0
  3650.  OFlags:   Aa
  3651. End_Chunk
  3652. Chunk: TexCoords
  3653.  Number: 1
  3654.  Mode:   0
  3655.  SubChunk
  3656.   Facet:     1
  3657.   ImageRef:  2
  3658.   PixScale:  0
  3659.   NumCoords: 4
  3660.     0.00000 0.00000
  3661.     0.00000 1.00000
  3662.     1.00000 1.00000
  3663.     1.00000 0.00000
  3664. End_Chunk
  3665. Chunk: SCL
  3666. txscale (me, 1)=cframe (me, 1)/10;
  3667.  
  3668. txoff (me, 1)=256-cframe (me, 1)/10;
  3669.  
  3670.  
  3671. end
  3672. End_Chunk
  3673. Chunk: Animations
  3674.  Number: 1
  3675.  Subchunk
  3676.   First:    1
  3677.   Last:     10
  3678.   Phase:    0x0100
  3679.   Velocity: 0x0100
  3680.   Mode:     0
  3681. End_Chunk
  3682. Chunk: Colours
  3683.  Number: 1
  3684.  0x20
  3685. End_Chunk
  3686.  
  3687. Chunk: ImageRef
  3688.  Number: 2
  3689.  Index: 1 Image: 45
  3690.  Index: 2 Image: 8
  3691. End_Chunk
  3692. ;
  3693. ;-------Object   68-------------------------------------------------------
  3694. Chunk: Standard
  3695.  Name:     " hiddenpaper[68]"
  3696.  Number:   68
  3697.  Size:     4010 0 6000
  3698.  Position: 54990 8499 18249
  3699.  Type:     27
  3700.  Layer:    0
  3701.  OFlags:   AaIi
  3702. End_Chunk
  3703. Chunk: TexCoords
  3704.  Number: 1
  3705.  Mode:   0
  3706.  SubChunk
  3707.   Facet:     1
  3708.   ImageRef:  2
  3709.   PixScale:  0
  3710.   NumCoords: 4
  3711.     0.00000 0.00000
  3712.     0.00000 1.00000
  3713.     1.00000 1.00000
  3714.     1.00000 0.00000
  3715. End_Chunk
  3716. Chunk: Animations
  3717.  Number: 1
  3718.  Subchunk
  3719.   First:    1
  3720.   Last:     10
  3721.   Phase:    0x0A00
  3722.   Velocity: 0x0100
  3723.   Mode:     0
  3724. End_Chunk
  3725. Chunk: Colours
  3726.  Number: 1
  3727.  0x20
  3728. End_Chunk
  3729.  
  3730. Chunk: ImageRef
  3731.  Number: 2
  3732.  Index: 1 Image: 45
  3733.  Index: 2 Image: 8
  3734. End_Chunk
  3735. ;
  3736. ;-------Object   71-------------------------------------------------------
  3737. Chunk: Standard
  3738.  Name:     "WOMAN_HOLD"
  3739.  Number:   71
  3740.  Size:     5470 26000 5640
  3741.  Position: 39076 300 49215
  3742.  Type:     65535
  3743.  Layer:    0
  3744.  OFlags:   Ii
  3745. End_Chunk
  3746. Chunk: InitPos
  3747.  Position: 39076 300 49215
  3748. End_Chunk
  3749. Chunk: Dynamics
  3750.  MovType:     0x80000081
  3751.  Fuel:        0
  3752.  Climb:       5000
  3753.  Gravity:     120
  3754.  Coupled:     73
  3755.  Drive:       0 0 0
  3756.  External:    0 0 0
  3757.  MaxForce:    0 0 0
  3758.  GroundFric:  0 0 0
  3759.  Restitution: 0 0 0
  3760.  Velocity:    0 0 0
  3761.  MaxVel:      0 0 0
  3762. End_Chunk
  3763.  
  3764. Children:
  3765. ;
  3766. ;-------Object   72-------------------------------------------------------
  3767. Chunk: Standard
  3768.  Name:     "woman"
  3769.  Number:   72
  3770.  Size:     0 23900 9600
  3771.  Position: 2621 0 -519
  3772.  Type:     28
  3773.  Layer:    0
  3774.  DFlags:   E
  3775. End_Chunk
  3776. Chunk: TexCoords
  3777.  Number: 1
  3778.  Mode:   0
  3779.  SubChunk
  3780.   Facet:     2
  3781.   ImageRef:  1
  3782.   PixScale:  0
  3783.   NumCoords: 4
  3784.     0.00000 0.00000
  3785.     0.00000 1.00000
  3786.     1.00000 1.00000
  3787.     1.00000 0.00000
  3788. End_Chunk
  3789.  
  3790. Chunk: ImageRef
  3791.  Number: 1
  3792.  Index: 1 Image: 49
  3793. End_Chunk
  3794. Chunk: InitPos
  3795.  Position: 2621 0 -519
  3796. End_Chunk
  3797. Chunk: InitSize
  3798.  Size: 0 23900 9600
  3799. End_Chunk
  3800. Chunk: Rotations
  3801.  Initial: 0x0000 0x0000 0x0000
  3802.  Centre:  0 9405 0
  3803. End_Chunk
  3804. Chunk: SCL
  3805. yrot (me)=89-yvroff+yrot (object (vattach));
  3806.  
  3807.  
  3808. end
  3809. End_Chunk
  3810. ;
  3811. ;-------Object   73-------------------------------------------------------
  3812. Chunk: Standard
  3813.  Name:     "direction"
  3814.  Number:   73
  3815.  Size:     2000 2181 2000
  3816.  Position: 1850 13309 1954
  3817.  Type:     65535
  3818.  Layer:    0
  3819.  DFlags:   rE
  3820. End_Chunk
  3821. Chunk: SCL
  3822. objnum Follow;
  3823.  
  3824. short  Speed=800, Delay=100, Go=1;
  3825.  
  3826. fixed  x, y;
  3827.  
  3828.  
  3829.  
  3830. if (first)
  3831.  
  3832.   Follow=#83;
  3833.  
  3834. y=angle3d (Follow, me, &y);
  3835.  
  3836. yrot (me)=y;
  3837.  
  3838. if (Go==1)
  3839.  
  3840.   zdrive (parent (me))=Speed;
  3841.  
  3842. else
  3843.  
  3844.   zdrive (parent (me))=0;
  3845.  
  3846.  
  3847. end
  3848. End_Chunk
  3849. Chunk: Rotations
  3850.  Initial: 0x0000 0x0000 0x0000
  3851.  Centre:  1000 1090 1000
  3852. End_Chunk
  3853.  
  3854. End_Children
  3855. ;
  3856. ;-------Object   87-------------------------------------------------------
  3857. Chunk: Standard
  3858.  Name:     "3"
  3859.  Number:   87
  3860.  Size:     1000 1000 1000
  3861.  Position: 49000 300 6511
  3862.  Type:     65535
  3863.  Layer:    0
  3864.  DFlags:   E
  3865. End_Chunk
  3866. Chunk: SCL
  3867. long   nearMe;
  3868.  
  3869. objnum Choose;
  3870.  
  3871. short  theObj;
  3872.  
  3873.  
  3874.  
  3875. resume (2, 0);
  3876.  
  3877. if (#73.Follow==me)
  3878.  
  3879. {
  3880.  
  3881.   nearMe=mdist (me, #71);
  3882.  
  3883.   if (nearMe<14000)
  3884.  
  3885.   {
  3886.  
  3887.     #73.Go=0;
  3888.  
  3889.     waitfs (#73.Delay);
  3890.  
  3891.     theObj=table (random (2)) {#86, #83};
  3892.  
  3893.     Choose=object (theObj);
  3894.  
  3895.     if (#73.Follow==me)
  3896.  
  3897.       #73.Follow=Choose;
  3898.  
  3899.     #73.Go=1;
  3900.  
  3901.   }
  3902.  
  3903. }
  3904. end
  3905. End_Chunk
  3906. ;
  3907. ;-------Object   85-------------------------------------------------------
  3908. Chunk: Standard
  3909.  Name:     "2"
  3910.  Number:   85
  3911.  Size:     1000 1000 1000
  3912.  Position: 36000 0 28511
  3913.  Type:     65535
  3914.  Layer:    0
  3915.  DFlags:   E
  3916. End_Chunk
  3917. Chunk: SCL
  3918. long   nearMe;
  3919.  
  3920. objnum Choose;
  3921.  
  3922. short  theObj;
  3923.  
  3924.  
  3925.  
  3926. resume (2, 0);
  3927.  
  3928. if (#73.Follow==me)
  3929.  
  3930. {
  3931.  
  3932.   nearMe=mdist (me, #71);
  3933.  
  3934.   if (nearMe<16000)
  3935.  
  3936.   {
  3937.  
  3938.     #73.Go=0;
  3939.  
  3940.     waitfs (#73.Delay);
  3941.  
  3942.     theObj=table (random (2)) {#87, #86};
  3943.  
  3944.     Choose=object (theObj);
  3945.  
  3946.     if (#73.Follow==me)
  3947.  
  3948.       #73.Follow=Choose;
  3949.  
  3950.     #73.Go=1;
  3951.  
  3952.   }
  3953.  
  3954. }
  3955. end
  3956. End_Chunk
  3957. ;
  3958. ;-------Object   88-------------------------------------------------------
  3959. Chunk: Standard
  3960.  Name:     "pc"
  3961.  Number:   88
  3962.  Size:     1000 1000 1000
  3963.  Position: 49000 0 32511
  3964.  Type:     65535
  3965.  Layer:    0
  3966.  DFlags:   E
  3967. End_Chunk
  3968. Chunk: SCL
  3969. long   nearMe;
  3970.  
  3971. objnum Choose;
  3972.  
  3973. short  theObj;
  3974.  
  3975.  
  3976.  
  3977. resume (2, 0);
  3978.  
  3979. if (#73.Follow==me)
  3980.  
  3981. {
  3982.  
  3983.   nearMe=mdist (me, #71);
  3984.  
  3985.   if (nearMe<14000)
  3986.  
  3987.     #73.Go=0;
  3988.  
  3989. }
  3990. end
  3991. End_Chunk
  3992. ;
  3993. ;-------Object   86-------------------------------------------------------
  3994. Chunk: Standard
  3995.  Name:     "4"
  3996.  Number:   86
  3997.  Size:     1000 1000 1000
  3998.  Position: 6000 0 28511
  3999.  Type:     65535
  4000.  Layer:    0
  4001.  DFlags:   E
  4002. End_Chunk
  4003. Chunk: SCL
  4004. long   nearMe;
  4005.  
  4006. objnum Choose;
  4007.  
  4008. short  theObj;
  4009.  
  4010.  
  4011.  
  4012. resume (2, 0);
  4013.  
  4014. if (#73.Follow==me)
  4015.  
  4016. {
  4017.  
  4018.   nearMe=mdist (me, #71);
  4019.  
  4020.   if (nearMe<14000)
  4021.  
  4022.   {
  4023.  
  4024.     #73.Go=0;
  4025.  
  4026.     waitfs (#73.Delay);
  4027.  
  4028.     theObj=table (random (2)) {#85, #87};
  4029.  
  4030.     Choose=object (theObj);
  4031.  
  4032.     if (#73.Follow==me)
  4033.  
  4034.       #73.Follow=Choose;
  4035.  
  4036.     #73.Go=1;
  4037.  
  4038.   }
  4039.  
  4040. }
  4041. end
  4042. End_Chunk
  4043. ;
  4044. ;-------Object   90-------------------------------------------------------
  4045. Chunk: Standard
  4046.  Name:     "cash"
  4047.  Number:   90
  4048.  Size:     4000 0 2000
  4049.  Position: 23500 11300 34000
  4050.  Type:     0
  4051.  Layer:    0
  4052.  OFlags:   Ii
  4053. End_Chunk
  4054. Chunk: TexCoords
  4055.  Number: 1
  4056.  Mode:   0
  4057.  SubChunk
  4058.   Facet:     5
  4059.   ImageRef:  1
  4060.   PixScale:  0
  4061.   NumCoords: 4
  4062.     0.00000 0.00000
  4063.     0.00000 1.00000
  4064.     1.00000 1.00000
  4065.     1.00000 0.00000
  4066. End_Chunk
  4067. Chunk: SCL
  4068. if (activate (me, 0))
  4069.  
  4070. {
  4071.  
  4072.   invis (me);
  4073.  
  4074.   addMoney (60);
  4075.  
  4076.   clrtrig (me, 0);
  4077.  
  4078. }
  4079. end
  4080. End_Chunk
  4081.  
  4082. Chunk: ImageRef
  4083.  Number: 1
  4084.  Index: 1 Image: 58
  4085. End_Chunk
  4086. ;
  4087. ;-------Object   91-------------------------------------------------------
  4088. Chunk: Standard
  4089.  Name:     "pc[91]"
  4090.  Number:   91
  4091.  Size:     1000 1000 1000
  4092.  Position: 24710 0 23252
  4093.  Type:     65535
  4094.  Layer:    0
  4095.  DFlags:   E
  4096. End_Chunk
  4097. Chunk: SCL
  4098. long   nearMe;
  4099.  
  4100. objnum Choose;
  4101.  
  4102. short  theObj;
  4103.  
  4104.  
  4105.  
  4106. resume (2, 0);
  4107.  
  4108. if (#73.Follow==me)
  4109.  
  4110. {
  4111.  
  4112.   nearMe=mdist (me, #71);
  4113.  
  4114.   if (nearMe<14000)
  4115.  
  4116.     #73.Go=0;
  4117.  
  4118. }
  4119. end
  4120. End_Chunk
  4121. ;
  4122. ;-------Object   83-------------------------------------------------------
  4123. Chunk: Standard
  4124.  Name:     "1"
  4125.  Number:   83
  4126.  Size:     1000 1000 1000
  4127.  Position: 43000 300 44511
  4128.  Type:     65535
  4129.  Layer:    0
  4130.  DFlags:   E
  4131. End_Chunk
  4132. Chunk: SCL
  4133. long   nearMe;
  4134.  
  4135. objnum Choose;
  4136.  
  4137. short  theObj;
  4138.  
  4139.  
  4140.  
  4141. resume (2, 0);
  4142.  
  4143. if (#73.Follow==me)
  4144.  
  4145. {
  4146.  
  4147.   nearMe=mdist (me, #71);
  4148.  
  4149.   if (nearMe<14000)
  4150.  
  4151.   {
  4152.  
  4153.     #73.Go=0;
  4154.  
  4155.     waitfs (#73.Delay);
  4156.  
  4157.     theObj=85;
  4158.  
  4159.     Choose=object (theObj);
  4160.  
  4161.     if (#73.Follow==me)
  4162.  
  4163.       #73.Follow=Choose;
  4164.  
  4165.     #73.Go=1;
  4166.  
  4167.   }
  4168.  
  4169. }
  4170. end
  4171. End_Chunk
  4172.  
  4173. End_Children
  4174. ;
  4175. ;-------Object   70-------------------------------------------------------
  4176. Chunk: Standard
  4177.  Name:     "Menus"
  4178.  Number:   70
  4179.  Size:     10000 10000 10000
  4180.  Position: 2070764 0 1973439
  4181.  Type:     65535
  4182.  Layer:    0
  4183. End_Chunk
  4184. Chunk: SCL
  4185. if (first)
  4186.  
  4187. {
  4188.  
  4189.   menuNew (me);
  4190.  
  4191.   menuLock (0);
  4192.  
  4193. }
  4194. end
  4195. End_Chunk
  4196. Chunk: Text
  4197.   "item \"E&xit\" scl exitVis; sclend\r"
  4198.   "item \"A&bout\" scl Credits; sclend"
  4199. End_Chunk
  4200. ;
  4201. ;-------Object   74-------------------------------------------------------
  4202. Chunk: Standard
  4203.  Name:     "loadImage"
  4204.  Number:   74
  4205.  Size:     2000 2000 2000
  4206.  Position: 2018915 0 1975891
  4207.  Type:     65535
  4208.  Layer:    0
  4209. End_Chunk
  4210. Chunk: SCL
  4211. char   NAME[10], PATH[256], DIR[256], DRIVE[3];
  4212.  
  4213. long   WIDTH, HEIGHT, newPOS, oldWIDTH, STATS[8];
  4214.  
  4215. short  Scale=20, imgNum=49, LOWEST, MOODS=1, TEMP;
  4216.  
  4217.  
  4218.  
  4219. resume (2, 2);
  4220.  
  4221. if (first)
  4222.  
  4223. {
  4224.  
  4225.   cdDrive (&DRIVE);
  4226.  
  4227.   strcpy (&DIR, &DRIVE);
  4228.  
  4229.   strcat (&DIR, "\\LoveBytes\\");
  4230.  
  4231.   counter (20)=-1;
  4232.  
  4233.   counter (25)=-1;
  4234.  
  4235.   counter (21)=-1;
  4236.  
  4237. }
  4238.  
  4239. if (vis? (#71) || vis? (#54) || first)
  4240.  
  4241. {
  4242.  
  4243.   if (counter (20)>-1)
  4244.  
  4245.   {
  4246.  
  4247.     strcpy (&PATH, &DIR);
  4248.  
  4249.     strcat (&PATH, "images\\");
  4250.  
  4251.     ltoa (&NAME, counter (20));
  4252.  
  4253.     strcat (&PATH, &NAME);
  4254.  
  4255.     strcat (&PATH, ".gif");
  4256.  
  4257.     imageLd (&PATH, imgNum, 1, &WIDTH, &HEIGHT);
  4258.  
  4259.     newPOS=zpos (#72);
  4260.  
  4261.     oldWIDTH=zsize (#72)/2;
  4262.  
  4263.     zsize (#72)=WIDTH*Scale;
  4264.  
  4265.     ysize (#72)=HEIGHT*Scale;
  4266.  
  4267.     write (&zcent (#72))=zsize (#72)/2;
  4268.  
  4269.     newPOS=newPOS+oldWIDTH-WIDTH*Scale/2;
  4270.  
  4271.     zpos (#72)=newPOS;
  4272.  
  4273.     counter (20)=-1;
  4274.  
  4275.     MOODS=1;
  4276.  
  4277.   }
  4278.  
  4279.   if (counter (21)>-1)
  4280.  
  4281.   {
  4282.  
  4283.     strcpy (&PATH, &DIR);
  4284.  
  4285.     strcat (&PATH, "images\\");
  4286.  
  4287.     ltoa (&NAME, counter (21));
  4288.  
  4289.     strcat (&PATH, &NAME);
  4290.  
  4291.     strcat (&PATH, ".gif");
  4292.  
  4293.     imageLd (&PATH, imgNum, 1, &WIDTH, &HEIGHT);
  4294.  
  4295.     newPOS=xpos (#54);
  4296.  
  4297.     oldWIDTH=xsize (#54)/2;
  4298.  
  4299.     xsize (#54)=WIDTH*40;
  4300.  
  4301.     ysize (#54)=HEIGHT*40;
  4302.  
  4303.     write (&xcent (#54))=xsize (#54)/2;
  4304.  
  4305.     newPOS=newPOS+oldWIDTH-WIDTH*40/2;
  4306.  
  4307.     xpos (#54)=newPOS;
  4308.  
  4309.     counter (21)=-1;
  4310.  
  4311.   }
  4312.  
  4313.   if (counter (25)>-1)
  4314.  
  4315.   {
  4316.  
  4317.     strcpy (&PATH, &DIR);
  4318.  
  4319.     strcat (&PATH, "sounds\\");
  4320.  
  4321.     ltoa (&NAME, counter (25));
  4322.  
  4323.     strcat (&PATH, &NAME);
  4324.  
  4325.     strcat (&PATH, ".wav");
  4326.  
  4327.     playWAV (&PATH);
  4328.  
  4329.     counter (25)=-1;
  4330.  
  4331.   }
  4332.  
  4333.   if (counter (26)>-1)
  4334.  
  4335.   {
  4336.  
  4337.     strcpy (&PATH, &DIR);
  4338.  
  4339.     strcat (&PATH, "sounds\\");
  4340.  
  4341.     ltoa (&NAME, counter (26));
  4342.  
  4343.     strcat (&PATH, &NAME);
  4344.  
  4345.     strcat (&PATH, ".wav");
  4346.  
  4347.     while (sndState)
  4348.  
  4349.       waitf;
  4350.  
  4351.     playWAV (&PATH);
  4352.  
  4353.     counter (26)=-1;
  4354.  
  4355.   }
  4356.  
  4357.   if (MOODS || first)
  4358.  
  4359.   {
  4360.  
  4361.     statsGet (&STATS);
  4362.  
  4363.     repeat (5)
  4364.  
  4365.     {
  4366.  
  4367.       TEMP=5+-inloop;
  4368.  
  4369.       repeat (5)
  4370.  
  4371.       {
  4372.  
  4373.         if (STATS[TEMP]<STATS[inloop-1] && 
  4374.  
  4375.             STATS[TEMP]<STATS[LOWEST])
  4376.  
  4377.           LOWEST=TEMP;
  4378.  
  4379.       }
  4380.  
  4381.     }
  4382.  
  4383.     if (STATS[LOWEST]<111)
  4384.  
  4385.       counter (20)=180;
  4386.  
  4387.     if (STATS[LOWEST]>=111 && STATS[LOWEST]<222)
  4388.  
  4389.       counter (20)=171;
  4390.  
  4391.     if (STATS[LOWEST]>=222 && STATS[LOWEST]<333)
  4392.  
  4393.       counter (20)=179;
  4394.  
  4395.     if (STATS[LOWEST]>=333 && STATS[LOWEST]<444)
  4396.  
  4397.       counter (20)=176;
  4398.  
  4399.     if (STATS[LOWEST]>=444 && STATS[LOWEST]<555)
  4400.  
  4401.       counter (20)=175;
  4402.  
  4403.     if (STATS[LOWEST]>=555 && STATS[LOWEST]<666)
  4404.  
  4405.       counter (20)=172;
  4406.  
  4407.     if (STATS[LOWEST]>=666 && STATS[LOWEST]<777)
  4408.  
  4409.       counter (20)=173;
  4410.  
  4411.     if (STATS[LOWEST]>=777 && STATS[LOWEST]<888)
  4412.  
  4413.       counter (20)=178;
  4414.  
  4415.     if (STATS[LOWEST]>=888)
  4416.  
  4417.       counter (20)=230;
  4418.  
  4419.     strcpy (&PATH, &DIR);
  4420.  
  4421.     strcat (&PATH, "images\\");
  4422.  
  4423.     ltoa (&NAME, counter (20));
  4424.  
  4425.     strcat (&PATH, &NAME);
  4426.  
  4427.     strcat (&PATH, ".gif");
  4428.  
  4429.     imageLd (&PATH, imgNum, 1, &WIDTH, &HEIGHT);
  4430.  
  4431.     newPOS=zpos (#72);
  4432.  
  4433.     oldWIDTH=zsize (#72)/2;
  4434.  
  4435.     zsize (#72)=WIDTH*Scale;
  4436.  
  4437.     ysize (#72)=HEIGHT*Scale;
  4438.  
  4439.     write (&zcent (#72))=zsize (#72)/2;
  4440.  
  4441.     newPOS=newPOS+oldWIDTH-WIDTH*Scale/2;
  4442.  
  4443.     zpos (#72)=newPOS;
  4444.  
  4445.     counter (20)=-1;
  4446.  
  4447.     MOODS=0;
  4448.  
  4449.   }
  4450.  
  4451. }
  4452. end
  4453. End_Chunk
  4454. ;
  4455. ;-------Object   75-------------------------------------------------------
  4456. Chunk: Standard
  4457.  Name:     "icons"
  4458.  Number:   75
  4459.  Size:     2000 2000 2000
  4460.  Position: 2020915 0 1975891
  4461.  Type:     65535
  4462.  Layer:    0
  4463. End_Chunk
  4464. Chunk: SCL
  4465. short  SELECTED=56;
  4466.  
  4467.  
  4468.  
  4469. instr (1)=50;
  4470.  
  4471. instr (2)=52;
  4472.  
  4473. instr (3)=54;
  4474.  
  4475. instr (4)=SELECTED;
  4476.  
  4477. switch (marker (2));
  4478.  
  4479. case 1: 
  4480.  
  4481.   instr (1)=51;
  4482.  
  4483. case 2: 
  4484.  
  4485.   instr (2)=53;
  4486.  
  4487. case 3: 
  4488.  
  4489.   instr (3)=55;
  4490.  
  4491. switch (marker (1));
  4492.  
  4493. case 1: 
  4494.  
  4495.   dlgStats;
  4496.  
  4497. case 2: 
  4498.  
  4499.   dlgShop;
  4500.  
  4501. case 3: 
  4502.  
  4503.   dlgUse;
  4504.  
  4505. marker (1)=0;
  4506.  
  4507. marker (2)=0;
  4508.  
  4509. repeat (4)
  4510.  
  4511.   update (inloop);
  4512.  
  4513.  
  4514. end
  4515. End_Chunk
  4516. ;
  4517. ;-------Object   77-------------------------------------------------------
  4518. Chunk: Standard
  4519.  Name:     "remarks"
  4520.  Number:   77
  4521.  Size:     2000 2000 2000
  4522.  Position: 2022915 0 1975891
  4523.  Type:     65535
  4524.  Layer:    0
  4525. End_Chunk
  4526. Chunk: SCL
  4527. long   STATS[8];
  4528.  
  4529. short  MOOD, RANDOM, TEMP, LOWEST, EXISTS, VALUE;
  4530.  
  4531. long   CHOUR, CMINS, ILL, GO;
  4532.  
  4533.  
  4534.  
  4535. resume (0, 2);
  4536.  
  4537. /*CODE FOR AMBIENT REMARKS*/
  4538.  
  4539. if (first)
  4540.  
  4541. {
  4542.  
  4543.   timeCurr (&CHOUR, &CMINS);
  4544.  
  4545.   if (CHOUR<12)
  4546.  
  4547.     counter (26)=151;
  4548.  
  4549.   ranseed (vrtime);
  4550.  
  4551.   if (regGetN ("jogo", &GO))
  4552.  
  4553.     GO=0;
  4554.  
  4555.   if (regGetN ("ill", &ILL))
  4556.  
  4557.     ILL=0;
  4558.  
  4559.   if (!ILL && GO)
  4560.  
  4561.     vis (#71);
  4562.  
  4563. }
  4564.  
  4565. resume (0, 2);
  4566.  
  4567. if (vis? (#71) || first)
  4568.  
  4569. {
  4570.  
  4571.   EXISTS=0;
  4572.  
  4573.   VALUE=0;
  4574.  
  4575.   RANDOM=random (1000);
  4576.  
  4577.   if (RANDOM==100 || first)
  4578.  
  4579.   {
  4580.  
  4581.     statsGet (&STATS);
  4582.  
  4583.     repeat (5)
  4584.  
  4585.     {
  4586.  
  4587.       TEMP=5+-inloop;
  4588.  
  4589.       repeat (5)
  4590.  
  4591.       {
  4592.  
  4593.         if (STATS[TEMP]<STATS[inloop-1] && 
  4594.  
  4595.             STATS[TEMP]<STATS[LOWEST])
  4596.  
  4597.           LOWEST=TEMP;
  4598.  
  4599.       }
  4600.  
  4601.     }
  4602.  
  4603.     MOOD=STATS[LOWEST]/100;
  4604.  
  4605.     MOOD=table (MOOD) {0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4};
  4606.  
  4607.     switch (MOOD);
  4608.  
  4609.     case 0: 
  4610.  
  4611.       counter (26)=table (random (3)) {150, 134, 154};
  4612.  
  4613.     case 1: 
  4614.  
  4615.       counter (26)=table (random (2)) {154, 134};
  4616.  
  4617.     case 2: 
  4618.  
  4619.       counter (26)=table (random (4)) {125, 51, 125, 154};
  4620.  
  4621.     case 3: 
  4622.  
  4623.       counter (26)=table (random (4)) {50, 51, 125, 154};
  4624.  
  4625.     case 4: 
  4626.  
  4627.       counter (26)=table (random (5)) {94, 68, 50, 49, 154};
  4628.  
  4629.   }
  4630.  
  4631. }
  4632. end
  4633. End_Chunk
  4634. ;
  4635. ;-------Object   78-------------------------------------------------------
  4636. Chunk: Standard
  4637.  Name:     "updateAmbient"
  4638.  Number:   78
  4639.  Size:     2000 2000 2000
  4640.  Position: 2024915 0 1975891
  4641.  Type:     65535
  4642.  Layer:    0
  4643. End_Chunk
  4644. Chunk: SCL
  4645. long   oldVALUE, stats[8], CURRENT, TEMP, TEMP2;
  4646.  
  4647. float  newVALUE, TOTAL;
  4648.  
  4649. char   REG[256], VALUE[5];
  4650.  
  4651.  
  4652.  
  4653. if (counter (30) || first || activate (me, 0))
  4654.  
  4655. {
  4656.  
  4657.   CURRENT=0;
  4658.  
  4659.   regGetN ("AmbientTotal", &TEMP);
  4660.  
  4661.   TOTAL=TEMP;
  4662.  
  4663.   if (regGetN ("rat", &TEMP))
  4664.  
  4665.     TEMP=0;
  4666.  
  4667.   CURRENT+=TEMP*5;
  4668.  
  4669.   if (regGetN ("tony", &TEMP))
  4670.  
  4671.     TEMP=0;
  4672.  
  4673.   CURRENT+=TEMP*5;
  4674.  
  4675.   if (regGetN ("alex", &TEMP))
  4676.  
  4677.     TEMP=0;
  4678.  
  4679.   CURRENT+=TEMP*5;
  4680.  
  4681.   regGetN ("fish", &TEMP);
  4682.  
  4683.   if (TEMP==0)
  4684.  
  4685.     CURRENT+=5;
  4686.  
  4687.   regGetN ("dog", &TEMP);
  4688.  
  4689.   if (TEMP==0)
  4690.  
  4691.     CURRENT+=5;
  4692.  
  4693.   repeat (20)
  4694.  
  4695.   {
  4696.  
  4697.     strcpy (®, "rubbish");
  4698.  
  4699.     ltoa (&VALUE, inloop);
  4700.  
  4701.     strcat (®, &VALUE);
  4702.  
  4703.     if (regGetN (®, &TEMP))
  4704.  
  4705.       TEMP=0;
  4706.  
  4707.     CURRENT+=TEMP;
  4708.  
  4709.   }
  4710.  
  4711.   repeat (18)
  4712.  
  4713.   {
  4714.  
  4715.     strcpy (®, "ClothesItemStatus");
  4716.  
  4717.     ltoa (&VALUE, inloop);
  4718.  
  4719.     strcat (®, &VALUE);
  4720.  
  4721.     if (regGetN (®, &TEMP2))
  4722.  
  4723.       TEMP2=0;
  4724.  
  4725.     if (TEMP2==2)
  4726.  
  4727.       TEMP=1;
  4728.  
  4729.     else
  4730.  
  4731.       TEMP=0;
  4732.  
  4733.     CURRENT+=TEMP;
  4734.  
  4735.   }
  4736.  
  4737.   repeat (10)
  4738.  
  4739.   {
  4740.  
  4741.     strcpy (®, "Dishes");
  4742.  
  4743.     ltoa (&VALUE, inloop);
  4744.  
  4745.     strcat (®, &VALUE);
  4746.  
  4747.     if (regGetN (®, &TEMP))
  4748.  
  4749.       TEMP=0;
  4750.  
  4751.     CURRENT+=TEMP;
  4752.  
  4753.   }
  4754.  
  4755.   repeat (21)
  4756.  
  4757.   {
  4758.  
  4759.     strcpy (®, "weed");
  4760.  
  4761.     ltoa (&VALUE, inloop);
  4762.  
  4763.     strcat (®, &VALUE);
  4764.  
  4765.     if (regGetN (®, &TEMP))
  4766.  
  4767.       TEMP=0;
  4768.  
  4769.     CURRENT+=TEMP;
  4770.  
  4771.   }
  4772.  
  4773.   repeat (12)
  4774.  
  4775.   {
  4776.  
  4777.     strcpy (®, "grass");
  4778.  
  4779.     ltoa (&VALUE, inloop);
  4780.  
  4781.     strcat (®, &VALUE);
  4782.  
  4783.     if (regGetN (®, &TEMP))
  4784.  
  4785.       TEMP=0;
  4786.  
  4787.     CURRENT+=TEMP;
  4788.  
  4789.   }
  4790.  
  4791.   repeat (5)
  4792.  
  4793.   {
  4794.  
  4795.     strcpy (®, "water");
  4796.  
  4797.     ltoa (&VALUE, inloop);
  4798.  
  4799.     strcat (®, &VALUE);
  4800.  
  4801.     if (regGetN (®, &TEMP))
  4802.  
  4803.       TEMP=0;
  4804.  
  4805.     CURRENT+=TEMP;
  4806.  
  4807.   }
  4808.  
  4809.   repeat (25)
  4810.  
  4811.   {
  4812.  
  4813.     strcpy (®, "flower");
  4814.  
  4815.     ltoa (&VALUE, inloop);
  4816.  
  4817.     strcat (®, &VALUE);
  4818.  
  4819.     if (regGetN (®, &TEMP2))
  4820.  
  4821.       TEMP=0;
  4822.  
  4823.     if (!TEMP2)
  4824.  
  4825.       CURRENT+=1;
  4826.  
  4827.   }
  4828.  
  4829. /*
  4830.  
  4831.   IF CURRENT IS >TOTAL THEN AMBIENT = 0
  4832.  
  4833.   IF CURRENT IS 0 THEN AMBIENT = 1000
  4834.  
  4835. *//*DO CALCULATION*/
  4836.  
  4837.  
  4838.  
  4839.  
  4840.  
  4841.  
  4842.  
  4843.   CURRENT=TOTAL-CURRENT;
  4844.  
  4845.   if (CURRENT<0)
  4846.  
  4847.     CURRENT=0;
  4848.  
  4849.   newVALUE=CURRENT/TOTAL;
  4850.  
  4851.   newVALUE=newVALUE*1000;
  4852.  
  4853.   if (newVALUE>1000)
  4854.  
  4855.     newVALUE=1000;
  4856.  
  4857.   /*GET AMBIENT VALUE*/
  4858.  
  4859.   statsGet (&stats);
  4860.  
  4861.   oldVALUE=stats[3];
  4862.  
  4863.   /*FIND DIFFERENCE*/
  4864.  
  4865.   newVALUE=newVALUE-oldVALUE;
  4866.  
  4867.   /*WRITE NEW VALUE*/
  4868.  
  4869.   stats[0]=0;
  4870.  
  4871.   stats[1]=0;
  4872.  
  4873.   stats[2]=0;
  4874.  
  4875.   stats[3]=newVALUE;
  4876.  
  4877.   stats[4]=0;
  4878.  
  4879.   stats[5]=0;
  4880.  
  4881.   stats[6]=0;
  4882.  
  4883.   stats[7]=0;
  4884.  
  4885.   statsExp (&stats);
  4886.  
  4887.   counter (30)=0;
  4888.  
  4889. }
  4890. end
  4891. End_Chunk
  4892. ;
  4893. ;-------Object   79-------------------------------------------------------
  4894. Chunk: Standard
  4895.  Name:     "statsOverTime"
  4896.  Number:   79
  4897.  Size:     2000 2000 2000
  4898.  Position: 2026915 0 1975891
  4899.  Type:     65535
  4900.  Layer:    0
  4901. End_Chunk
  4902. Chunk: SCL
  4903. /*
  4904.  
  4905.  
  4906.  
  4907. USE THIS CODE TO AFFECT STATS OVER TIME
  4908.  
  4909.  
  4910.  
  4911.  TO DUMP WHEN STATS GET TOO LOW
  4912.  
  4913.  
  4914.  
  4915. */
  4916.  
  4917.  
  4918.  
  4919. float  DAYS;
  4920.  
  4921. short  Hunger, Happy, Health, Sex;
  4922.  
  4923. long   STATS[8], Time;
  4924.  
  4925. float  Total;
  4926.  
  4927.  
  4928.  
  4929. if (vrtime>Time+120000 || first)
  4930.  
  4931. {
  4932.  
  4933.   Health=0;
  4934.  
  4935.   Happy=0;
  4936.  
  4937.   Sex=0;
  4938.  
  4939.   Hunger=-2;
  4940.  
  4941.   statsGet (&STATS);
  4942.  
  4943.   if (STATS[4]<30)
  4944.  
  4945.     Health=-3;
  4946.  
  4947.   if (STATS[0]<30)
  4948.  
  4949.     Happy=-3;
  4950.  
  4951.   if (STATS[1]<30)
  4952.  
  4953.     Sex=-3;
  4954.  
  4955.   STATS[0]=Health;
  4956.  
  4957.   STATS[1]=Happy;
  4958.  
  4959.   STATS[2]=Sex;
  4960.  
  4961.   STATS[3]=0;
  4962.  
  4963.   STATS[4]=Hunger;
  4964.  
  4965.   STATS[5]=0;
  4966.  
  4967.   STATS[6]=0;
  4968.  
  4969.   STATS[7]=0;
  4970.  
  4971.   statsExp (&STATS);
  4972.  
  4973.   statsGet (&STATS);
  4974.  
  4975.   Total=STATS[0]+STATS[1]+STATS[2]+STATS[4];
  4976.  
  4977.   Total=Total/4;
  4978.  
  4979.   Time=vrtime;
  4980.  
  4981. }
  4982.  
  4983. if (Total<30)
  4984.  
  4985. {
  4986.  
  4987.   share (1)=-1;
  4988.  
  4989.   dumpHim (0);
  4990.  
  4991.   exitVis;
  4992.  
  4993. }
  4994. end
  4995. End_Chunk
  4996. ;
  4997. ;-------Object   80-------------------------------------------------------
  4998. Chunk: Standard
  4999.  Name:     "other"
  5000.  Number:   80
  5001.  Size:     2000 2000 2000
  5002.  Position: 2028915 0 1975891
  5003.  Type:     65535
  5004.  Layer:    0
  5005. End_Chunk
  5006. Chunk: SCL
  5007. long   STATS[8];
  5008.  
  5009.  
  5010.  
  5011. if (first)
  5012.  
  5013. {
  5014.  
  5015.   counter (50)=-1;
  5016.  
  5017.   counter (51)=-1;
  5018.  
  5019.   counter (52)=-1;
  5020.  
  5021.   counter (53)=-1;
  5022.  
  5023. }
  5024.  
  5025. if (counter (50)!=-1 || counter (51)!=-1 || counter (52)!=-1 || 
  5026.  
  5027.     counter (53)!=-1)
  5028.  
  5029. {
  5030.  
  5031.   if (counter (50)!=-1)
  5032.  
  5033.     STATS[0]=counter (50);
  5034.  
  5035.   else
  5036.  
  5037.     STATS[0]=0;
  5038.  
  5039.   if (counter (51)!=-1)
  5040.  
  5041.     STATS[1]=counter (51);
  5042.  
  5043.   else
  5044.  
  5045.     STATS[1]=0;
  5046.  
  5047.   if (counter (52)!=-1)
  5048.  
  5049.     STATS[2]=counter (52);
  5050.  
  5051.   else
  5052.  
  5053.     STATS[2]=0;
  5054.  
  5055.   if (counter (53)!=-1)
  5056.  
  5057.     STATS[4]=counter (53);
  5058.  
  5059.   else
  5060.  
  5061.     STATS[4]=0;
  5062.  
  5063.   STATS[5]=0;
  5064.  
  5065.   STATS[6]=0;
  5066.  
  5067.   STATS[7]=0;
  5068.  
  5069.   statsExp (&STATS);
  5070.  
  5071.   counter (50)=-1;
  5072.  
  5073.   counter (51)=-1;
  5074.  
  5075.   counter (52)=-1;
  5076.  
  5077.   counter (53)=-1;
  5078.  
  5079. }
  5080. end
  5081. End_Chunk
  5082. ;
  5083. ;-------Object   81-------------------------------------------------------
  5084. Chunk: Standard
  5085.  Name:     "clickJo"
  5086.  Number:   81
  5087.  Size:     2000 2000 2000
  5088.  Position: 2030915 0 1975891
  5089.  Type:     65535
  5090.  Layer:    0
  5091. End_Chunk
  5092. Chunk: SCL
  5093. long   STATS[8];
  5094.  
  5095. short  LOWEST, MOOD, TEMP;
  5096.  
  5097. float  Total;
  5098.  
  5099.  
  5100.  
  5101.  
  5102.  
  5103. /*CODE FOR CLICKING ON JO*/
  5104.  
  5105.  
  5106.  
  5107. resume (2, 2);
  5108.  
  5109. if (activate (#72, 0))
  5110.  
  5111. {
  5112.  
  5113.   statsGet (&STATS);
  5114.  
  5115.   repeat (5)
  5116.  
  5117.   {
  5118.  
  5119.     TEMP=5+-inloop;
  5120.  
  5121.     repeat (5)
  5122.  
  5123.     {
  5124.  
  5125.       if (STATS[TEMP]<STATS[inloop-1] && 
  5126.  
  5127.           STATS[TEMP]<STATS[LOWEST])
  5128.  
  5129.         LOWEST=TEMP;
  5130.  
  5131.     }
  5132.  
  5133.   }
  5134.  
  5135.   MOOD=STATS[LOWEST]/100;
  5136.  
  5137.   MOOD=table (MOOD) {0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4};
  5138.  
  5139.   if (share (1)<0)
  5140.  
  5141.   {
  5142.  
  5143.  
  5144.  
  5145.  /* SOUND RESPONSES FOR TOUCHING UP DEPENDING ON MOOD */
  5146.  
  5147.  
  5148.  
  5149.     switch (MOOD);
  5150.  
  5151.     case 0: 
  5152.  
  5153.       counter (25)=table (random (6)) {176, 11, 29, 82, 89, 90};
  5154.  
  5155.     case 1: 
  5156.  
  5157.       counter (25)=table (random (5)) {175, 178, 41, 28, 72, 
  5158.  
  5159.           12};
  5160.  
  5161.     case 2: 
  5162.  
  5163.       counter (25)=table (random (2)) {15, 9};
  5164.  
  5165.     case 3: 
  5166.  
  5167.       counter (25)=table (random (4)) {171, 179, 94, 174};
  5168.  
  5169.     case 4: 
  5170.  
  5171.       counter (25)=table (random (3)) {172, 173, 174};
  5172.  
  5173.     counter (50)=-2;
  5174.  
  5175.     counter (51)=-2;
  5176.  
  5177.     counter (52)=-2;
  5178.  
  5179.     counter (53)=-2;
  5180.  
  5181.   }
  5182.  
  5183.   else
  5184.  
  5185.     counter (40)=MOOD;
  5186.  
  5187.   statsGet (&STATS);
  5188.  
  5189.   Total=STATS[0]+STATS[1]+STATS[2]+STATS[4];
  5190.  
  5191.   Total=Total/4;
  5192.  
  5193.   if (Total<30)
  5194.  
  5195.   {
  5196.  
  5197.     share (1)=-1;
  5198.  
  5199.     dumpHim (0);
  5200.  
  5201.     exitVis;
  5202.  
  5203.   }
  5204.  
  5205.   while (mouseb)
  5206.  
  5207.     waitf;
  5208.  
  5209.   clrtrig (me, 0);
  5210.  
  5211.   clrtrig (#72, 0);
  5212.  
  5213. }
  5214. end
  5215. End_Chunk
  5216. ;
  5217. ;-------Object   82-------------------------------------------------------
  5218. Chunk: Standard
  5219.  Name:     "clickJo 2"
  5220.  Number:   82
  5221.  Size:     2000 2000 2000
  5222.  Position: 2030915 2000 1975891
  5223.  Type:     65535
  5224.  Layer:    0
  5225. End_Chunk
  5226. Chunk: SCL
  5227. long   TEMP, COOKING;
  5228.  
  5229. short  COOKED, FREE=1, MOOD, WEAR;
  5230.  
  5231. char   NAME[256], SHARE[10];
  5232.  
  5233.  
  5234.  
  5235. resume (4, 4);
  5236.  
  5237.  
  5238.  
  5239. /*CODE FOR CLICKING ON JO*/
  5240.  
  5241.  
  5242.  
  5243. if (first)
  5244.  
  5245. {
  5246.  
  5247.   counter (40)=-1;
  5248.  
  5249.   share (1)=-1;
  5250.  
  5251. }
  5252.  
  5253. if (counter (40)>=0)
  5254.  
  5255. {
  5256.  
  5257.   FREE=1;
  5258.  
  5259.   MOOD=counter (40);
  5260.  
  5261.   counter (40)=-1;
  5262.  
  5263.   if (share (1)>=0)
  5264.  
  5265.   {
  5266.  
  5267.     if (objAttrP (share (1), "G"))
  5268.  
  5269.     {
  5270.  
  5271.  
  5272.  
  5273.       /* SOUND RESPONSES FOR GIVE DEPENDING ON MOOD  */
  5274.  
  5275.  
  5276.  
  5277.       switch (MOOD);
  5278.  
  5279.       case 0: 
  5280.  
  5281.         counter (25)=table (random (4)) {95, 97, 6, 105};
  5282.  
  5283.       case 1: 
  5284.  
  5285.         counter (25)=table (random (3)) {95, 97, 6};
  5286.  
  5287.       case 2: 
  5288.  
  5289.         counter (25)=table (random (4)) {6, 14, 21, 91};
  5290.  
  5291.       case 3: 
  5292.  
  5293.         counter (25)=table (random (10)) {21, 16, 40, 91, 6, 20, 
  5294.  
  5295.             14, 21, 171, 91};
  5296.  
  5297.       case 4: 
  5298.  
  5299.         counter (25)=table (random (10)) {20, 52, 53, 94, 159, 
  5300.  
  5301.             171, 14, 1, 91, 40};
  5302.  
  5303.       /* END OF GIVE */
  5304.  
  5305.     }
  5306.  
  5307.     if (share (1)>43 && share (1)<62)
  5308.  
  5309.     {
  5310.  
  5311.       counter (20)=-1;
  5312.  
  5313.       counter (25)=-1;
  5314.  
  5315.       FREE=0;
  5316.  
  5317.     }
  5318.  
  5319.     if (share (1)>13 && share (1)<21)
  5320.  
  5321.     {
  5322.  
  5323.       counter (20)=-1;
  5324.  
  5325.       counter (25)=-1;
  5326.  
  5327.       FREE=0;
  5328.  
  5329.     }
  5330.  
  5331.     if (share (1)>-1 && share (1)<2 && FREE)
  5332.  
  5333.     { /*flowers*/
  5334.  
  5335.       counter (20)=table (random (4)) {108, 109, 110, 111};
  5336.  
  5337.       statsObj (share (1));
  5338.  
  5339.       useObj (share (1));
  5340.  
  5341.       FREE=0;
  5342.  
  5343.     }
  5344.  
  5345.     if (share (1)>1 && share (1)<4 && FREE)
  5346.  
  5347.     { /*chocs*/
  5348.  
  5349.       if (random (5)==3)
  5350.  
  5351.         counter (25)=33;
  5352.  
  5353.       counter (20)=table (random (4)) {190, 191, 192, 193};
  5354.  
  5355.       statsObj (share (1));
  5356.  
  5357.       useObj (share (1));
  5358.  
  5359.       FREE=0;
  5360.  
  5361.     }
  5362.  
  5363.     if (share (1)==9 && FREE)
  5364.  
  5365.     { /*budviser*/
  5366.  
  5367.  
  5368.  
  5369.  
  5370.  
  5371.  
  5372.  
  5373.       counter (25)=table (random (2)) {67, 123};
  5374.  
  5375.       counter (20)=133;
  5376.  
  5377.       statsObj (share (1));
  5378.  
  5379.       useObj (share (1));
  5380.  
  5381.       FREE=0;
  5382.  
  5383.     }
  5384.  
  5385.     if (share (1)==33 && FREE)
  5386.  
  5387.     { /*frying pan*/
  5388.  
  5389.  
  5390.  
  5391.  
  5392.  
  5393.  
  5394.  
  5395.       counter (20)=table (random (6)) {104, 103, 102, 0, 104, 
  5396.  
  5397.           105, 113};
  5398.  
  5399.       counter (25)=186;
  5400.  
  5401.       counter (26)=table (random (14)) {11, 12, 28, 63, 82, 83, 
  5402.  
  5403.           89, 90, 148, 175, 176, 178, 180, 73};
  5404.  
  5405.       statsObj (share (1));
  5406.  
  5407.       if (MOOD<2)
  5408.  
  5409.       {
  5410.  
  5411.         #73.Go=0;
  5412.  
  5413.         counter (21)=1;
  5414.  
  5415.         repeat (6)
  5416.  
  5417.         {
  5418.  
  5419.           counter (20)=table (inloop-1) {154, 155, 151, 160, 
  5420.  
  5421.               161, 158};
  5422.  
  5423.           waitfs (5);
  5424.  
  5425.         }
  5426.  
  5427.         counter (21)=0;
  5428.  
  5429.         #73.Go=1;
  5430.  
  5431.       }
  5432.  
  5433.       FREE=0;
  5434.  
  5435.     }
  5436.  
  5437.     if (share (1)==34 && FREE)
  5438.  
  5439.     { /*whip*/
  5440.  
  5441.       counter (20)=table (MOOD) {8, 138, 102, 277, 277};
  5442.  
  5443.       counter (25)=185;
  5444.  
  5445.       if (MOOD>2)
  5446.  
  5447.         counter (26)=table (random (8)) {9, 15, 85, 86, 94, 130, 
  5448.  
  5449.             171, 179};
  5450.  
  5451.       else
  5452.  
  5453.         counter (26)=table (random (15)) {93, 11, 12, 28, 63, 
  5454.  
  5455.             82, 83, 89, 90, 148, 175, 176, 178, 180, 73};
  5456.  
  5457.       statsObj (share (1));
  5458.  
  5459.       FREE=0;
  5460.  
  5461.     }
  5462.  
  5463.     if (share (1)==63 && FREE)
  5464.  
  5465.     {
  5466.  
  5467.       share (70)=3;
  5468.  
  5469.     /*add menu lock stuff*/
  5470.  
  5471.       statsObj (share (1));
  5472.  
  5473.       useObj (share (1));
  5474.  
  5475.       FREE=0;
  5476.  
  5477.       menuLock (1);
  5478.  
  5479.       loadvrt ("map.vrt");
  5480.  
  5481.     }
  5482.  
  5483.     if (share (1)==64 && FREE)
  5484.  
  5485.     {
  5486.  
  5487.       share (70)=2;
  5488.  
  5489.       statsObj (share (1));
  5490.  
  5491.       useObj (share (1));
  5492.  
  5493.       FREE=0;
  5494.  
  5495.       menuLock (1);
  5496.  
  5497.       loadvrt ("map.vrt");
  5498.  
  5499.     }
  5500.  
  5501.     if (share (1)==79 && FREE)
  5502.  
  5503.     {
  5504.  
  5505.       share (70)=1;
  5506.  
  5507.       statsObj (share (1));
  5508.  
  5509.       useObj (share (1));
  5510.  
  5511.       FREE=0;
  5512.  
  5513.       menuLock (1);
  5514.  
  5515.       loadvrt ("map.vrt");
  5516.  
  5517.     }
  5518.  
  5519.     if (share (1)>39 && share (1)<43 && FREE)
  5520.  
  5521.     {
  5522.  
  5523.       share (70)=0;
  5524.  
  5525.       switch (share (1));
  5526.  
  5527.       case 40: 
  5528.  
  5529.         share (69)=1;
  5530.  
  5531.       case 41: 
  5532.  
  5533.         share (69)=2;
  5534.  
  5535.       case 42: 
  5536.  
  5537.         share (69)=3;
  5538.  
  5539.       statsObj (share (1));
  5540.  
  5541.       useObj (share (1));
  5542.  
  5543.       FREE=0;
  5544.  
  5545.       share (1)=76;
  5546.  
  5547.       menuLock (1);
  5548.  
  5549.       loadvrt ("map.vrt");
  5550.  
  5551.     }
  5552.  
  5553.     if (share (1)==81 && FREE)
  5554.  
  5555.     {
  5556.  
  5557.       if (MOOD>2)
  5558.  
  5559.       {
  5560.  
  5561.         statsObj (share (1));
  5562.  
  5563.         useObj (share (1));
  5564.  
  5565.         menuLock (1);
  5566.  
  5567.         loadvrt ("striptease.vrt");
  5568.  
  5569.       }
  5570.  
  5571.       else
  5572.  
  5573.       {
  5574.  
  5575.         counter (25)=92;
  5576.  
  5577.         counter (20)=table (random (5)) {164, 169, 170, 189, 
  5578.  
  5579.             184};
  5580.  
  5581.         share (1)=-1;
  5582.  
  5583.       }
  5584.  
  5585.       FREE=0;
  5586.  
  5587.     }
  5588.  
  5589.     if (share (1)>9 && share (1)<13 && FREE)
  5590.  
  5591.     {
  5592.  
  5593.       counter (25)=192;
  5594.  
  5595.       statsObj (share (1));
  5596.  
  5597.       useObj (share (1));
  5598.  
  5599.       FREE=0;
  5600.  
  5601.     }
  5602.  
  5603.     if (share (1)==22)
  5604.  
  5605.     {
  5606.  
  5607.       if (regGetN ("dog", &TEMP))
  5608.  
  5609.         TEMP=0;
  5610.  
  5611.       if (TEMP!=0)
  5612.  
  5613.       {
  5614.  
  5615.         counter (20)=134;
  5616.  
  5617.         counter (25)=171;
  5618.  
  5619.         regPutN ("dog", 5);
  5620.  
  5621.         statsObj (share (1));
  5622.  
  5623.         useObj (share (1));
  5624.  
  5625.       }
  5626.  
  5627.       else
  5628.  
  5629.         counter (25)=-1;
  5630.  
  5631.       FREE=0;
  5632.  
  5633.     }
  5634.  
  5635.     if (share (1)>39 && share (1)<43 && FREE)
  5636.  
  5637.     {
  5638.  
  5639.       counter (20)=-1;
  5640.  
  5641.       counter (25)=-1;
  5642.  
  5643.       FREE=0;
  5644.  
  5645.     }
  5646.  
  5647.     if (share (1)>64 && share (1)<67 && FREE)
  5648.  
  5649.     {
  5650.  
  5651.       counter (20)=-1;
  5652.  
  5653.       counter (25)=-1;
  5654.  
  5655.       FREE=0;
  5656.  
  5657.     }
  5658.  
  5659.     if (share (1)==4 && FREE)
  5660.  
  5661.     {
  5662.  
  5663.       counter (20)=136;
  5664.  
  5665.       counter (25)=table (random (2)) {80, 76};
  5666.  
  5667.       statsObj (share (1));
  5668.  
  5669.       useObj (share (1));
  5670.  
  5671.       FREE=0;
  5672.  
  5673.     }
  5674.  
  5675.     if (share (1)==7 && FREE)
  5676.  
  5677.     {
  5678.  
  5679.       counter (25)=20;
  5680.  
  5681.       statsObj (share (1));
  5682.  
  5683.       useObj (share (1));
  5684.  
  5685.       counter (21)=1;
  5686.  
  5687.       #73.Go=0;
  5688.  
  5689.       repeat (6)
  5690.  
  5691.       {
  5692.  
  5693.         counter (20)=table (inloop-1) {283, 285, 287, 286, 288, 
  5694.  
  5695.             289};
  5696.  
  5697.         waitfs (5);
  5698.  
  5699.       }
  5700.  
  5701.       waitfs (5);
  5702.  
  5703.       counter (21)=0;
  5704.  
  5705.       #73.Go=1;
  5706.  
  5707.       FREE=0;
  5708.  
  5709.     }
  5710.  
  5711.     if (share (1)>4 && share (1)<7 && FREE)
  5712.  
  5713.     {
  5714.  
  5715.       counter (20)=table (random (3)) {170, 137, 300};
  5716.  
  5717.       statsObj (share (1));
  5718.  
  5719.       useObj (share (1));
  5720.  
  5721.       FREE=0;
  5722.  
  5723.     }
  5724.  
  5725.     if (share (1)==80 && FREE)
  5726.  
  5727.     {
  5728.  
  5729.       counter (20)=table (random (5)) {309, 310, 311, 312, 313};
  5730.  
  5731.       statsObj (share (1));
  5732.  
  5733.       useObj (share (1));
  5734.  
  5735.       FREE=0;
  5736.  
  5737.     }
  5738.  
  5739.     if (share (1)==29 && FREE)
  5740.  
  5741.     {
  5742.  
  5743.       counter (20)=table (random (2)) {105, 138};
  5744.  
  5745.       counter (25)=88;
  5746.  
  5747.       regPutN ("ill", 1);
  5748.  
  5749.       statsObj (share (1));
  5750.  
  5751.       useObj (share (1));
  5752.  
  5753.       FREE=0;
  5754.  
  5755.     }
  5756.  
  5757.     if (share (1)==27 && FREE)
  5758.  
  5759.     {
  5760.  
  5761.       counter (20)=table (random (2)) {105, 138};
  5762.  
  5763.       counter (25)=88;
  5764.  
  5765.       regPutN ("ill", 1);
  5766.  
  5767.       statsObj (share (1));
  5768.  
  5769.       useObj (share (1));
  5770.  
  5771.       FREE=0;
  5772.  
  5773.     }
  5774.  
  5775.   }
  5776.  
  5777. }
  5778. end
  5779. End_Chunk
  5780. ;
  5781. ;-------Object   84-------------------------------------------------------
  5782. Chunk: Standard
  5783.  Name:     "items"
  5784.  Number:   84
  5785.  Size:     2000 2000 2000
  5786.  Position: 2016915 0 1975891
  5787.  Type:     65535
  5788.  Layer:    0
  5789. End_Chunk
  5790. Chunk: SCL
  5791. short  TEMP=-1, imgNum=57, imgNum2=56, TEMP2;
  5792.  
  5793. long   WIDTH, HEIGHT, COOKEDV;
  5794.  
  5795. char   NAME[10], PATH[256], DIR[256], SHARE[5];
  5796.  
  5797.  
  5798.  
  5799. if (first)
  5800.  
  5801.   strcpy (&DIR, "c:\\LoveBytes\\images\\");
  5802.  
  5803. if (activate (me, 0))
  5804.  
  5805.   share (1)=-1;
  5806.  
  5807. if (TEMP!=share (1))
  5808.  
  5809. {
  5810.  
  5811.   if (share (1)>=0)
  5812.  
  5813.   {
  5814.  
  5815.     ltoa (&SHARE, share (1));
  5816.  
  5817.     strcpy (&PATH, &DIR);
  5818.  
  5819.     strcat (&PATH, &SHARE);
  5820.  
  5821.     strcat (&PATH, ".bmp");
  5822.  
  5823.     imageLd (&PATH, imgNum, 1, &WIDTH, &HEIGHT);
  5824.  
  5825.     #75.SELECTED=imgNum;
  5826.  
  5827.   }
  5828.  
  5829.   else
  5830.  
  5831.     #75.SELECTED=imgNum2;
  5832.  
  5833.   strcpy (&PATH, &DIR);
  5834.  
  5835. }
  5836.  
  5837. TEMP=share (1);
  5838.  
  5839.  
  5840. end
  5841. End_Chunk
  5842. ;
  5843. ;-------Object   89-------------------------------------------------------
  5844. Chunk: Standard
  5845.  Name:     "money"
  5846.  Number:   89
  5847.  Size:     2000 2000 2000
  5848.  Position: 2014915 0 1975891
  5849.  Type:     65535
  5850.  Layer:    0
  5851. End_Chunk
  5852. Chunk: SCL
  5853. long   MONEYD, MONTH, DAY;
  5854.  
  5855.  
  5856.  
  5857. if (first)
  5858.  
  5859. {
  5860.  
  5861.   dateCurr (&MONTH, &DAY);
  5862.  
  5863.   if (regGetN ("MoneyDay", &MONEYD))
  5864.  
  5865.   {
  5866.  
  5867.     regPutN ("MoneyDay", DAY);
  5868.  
  5869.     MONEYD=DAY;
  5870.  
  5871.   }
  5872.  
  5873.   if (MONEYD!=DAY)
  5874.  
  5875.   {
  5876.  
  5877.     vis (#90);
  5878.  
  5879.     regPutN ("MoneyDay", DAY);
  5880.  
  5881.   }
  5882.  
  5883. }
  5884. end
  5885. End_Chunk
  5886.  
  5887. End_Children
  5888. ;
  5889. ;-------Object    2-------------------------------------------------------
  5890. Chunk: Standard
  5891.  Name:     "HUMANVP: HOLD "
  5892.  Number:   2
  5893.  Size:     4000 4000 4000
  5894.  Position: 2024020 13300 1985703
  5895.  Type:     65535
  5896.  Layer:    0
  5897.  DFlags:   M
  5898. End_Chunk
  5899. Chunk: Colours
  5900.  Number: 18
  5901.  0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E 0x0E
  5902.  0x0E 0x0E
  5903. End_Chunk
  5904. Chunk: InitPos
  5905.  Position: 2024020 13300 1985703
  5906. End_Chunk
  5907. Chunk: Dynamics
  5908.  MovType:     0x800004A1
  5909.  Fuel:        0
  5910.  Climb:       0
  5911.  Gravity:     0
  5912.  Coupled:     3
  5913.  Drive:       0 0 0
  5914.  External:    0 0 0
  5915.  MaxForce:    0 0 0
  5916.  GroundFric:  8192 0 8192
  5917.  Restitution: 0 0 0
  5918.  Velocity:    0 0 0
  5919.  MaxVel:      0 0 0
  5920. End_Chunk
  5921.  
  5922. Children:
  5923. ;
  5924. ;-------Object    3-------------------------------------------------------
  5925. Chunk: Standard
  5926.  Name:     "HUMANVP:View point "
  5927.  Number:   3
  5928.  Size:     1000 1000 1000
  5929.  Position: 1500 1500 1500
  5930.  Type:     65535
  5931.  Layer:    0
  5932.  DFlags:   r
  5933. End_Chunk
  5934. Chunk: Rotations
  5935.  Initial: 0x0000 0xFFFFFA1A 0x0000
  5936.  Centre:  500 500 500
  5937. End_Chunk
  5938. Chunk: Colours
  5939.  Number: 18
  5940.  0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B
  5941.  0x0B 0x0B
  5942. End_Chunk
  5943. ;
  5944. ;-------Object   69-------------------------------------------------------
  5945. Chunk: Standard
  5946.  Name:     "movelogic"
  5947.  Number:   69
  5948.  Size:     1000 1000 1000
  5949.  Position: 0 0 0
  5950.  Type:     65535
  5951.  Layer:    0
  5952.  DFlags:   r
  5953. End_Chunk
  5954. Chunk: SCL
  5955. short  X, Y;
  5956.  
  5957.  
  5958.  
  5959. resume (1, 2);
  5960.  
  5961. if (mouseb>1)
  5962.  
  5963. {
  5964.  
  5965.   if (!first)
  5966.  
  5967.     X=mousex;
  5968.  
  5969.   Y=mousey;
  5970.  
  5971.   while (mouseb>1)
  5972.  
  5973.   {
  5974.  
  5975.     if (mouseb==3)
  5976.  
  5977.     {
  5978.  
  5979.       Y=mousey;
  5980.  
  5981.       while (mouseb==3)
  5982.  
  5983.       {
  5984.  
  5985.         ydrive (#2)= (mousey-Y)*-10;
  5986.  
  5987.         yrot (#3)+=deg ( (mousex-X)*4);
  5988.  
  5989.         waitf;
  5990.  
  5991.       }
  5992.  
  5993.       Y=mousey;
  5994.  
  5995.     }
  5996.  
  5997.     zdrive (#2)= (mousey-Y)*-20;
  5998.  
  5999.     yrot (#3)+=deg ( (mousex-X)*4);
  6000.  
  6001.     waitf;
  6002.  
  6003.   }
  6004.  
  6005. }
  6006. end
  6007. End_Chunk
  6008.  
  6009. End_Children
  6010. End_File