home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / misc / game40.lbr / STAR2.SZC / STAR2.SRC
Encoding:
Text File  |  1994-08-30  |  14.4 KB  |  876 lines

  1. # now the planet locations
  2.  
  3. l45
  4. %"on the surface of Janus-6, in a wide canyon running east-west"
  5. [There is a strong wind blowing up the canyon, picking up the sand
  6. on the floor. You can see that over the years the sides of the
  7. canyon have been smoothed out by the continuous buffeting.]
  8. wx44
  9. ex46
  10. .
  11.  
  12. # a bit of local colour - locs 44 and 43 are there for show.
  13.  
  14. # move to 44
  15. m 45 44 13
  16. f13
  17. i vg=0        ; if first time
  18.     t vg=1 [50    ; mark it and print text
  19. i vg=2        ; also a first time condition
  20.     t vg=3 [50    ; so mark and print text
  21. .
  22.  
  23. l44
  24. %"at the west end of a narrow gulley, with a small crack going
  25. further west"
  26. wx43
  27. ex45
  28. .
  29.  
  30. # nice description, but doesn't do anything useful
  31. l43
  32. %"on a small ledge, part way up a vast cliff"
  33. [You have a magnificent view across Janus-6. The cliff goes down
  34. to a plain that stretches off into the distance, and all across
  35. the plain you can see the wind whipping the dust and sand into
  36. strange formations. Right on the horizon, you can see something
  37. that might be a mining outpost, but from this distance it's
  38. impossible to tell if it's deserted or not.]
  39. ep44
  40. nn3
  41. sn3
  42. .
  43.  
  44. # move to 46, also has some local colour added
  45.  
  46. m 45 46 14
  47.  
  48. f14
  49. i vg=0        ; first time this way?
  50.     t vg=2 [51    ; print text if so
  51. i vg=1        ; other first time condition
  52.     t vg=3 [51    ; print if so
  53. .
  54.  
  55. l46
  56. %"outside a cave that goes east into the hill"
  57. wx45
  58. ex47
  59. .
  60.  
  61. l47
  62. %"at the back of the cave"
  63. wx46
  64. ex48
  65. .
  66.  
  67. # from here on in, the locations are dark. I hope he brought the torch :-)
  68. # The obligatory maze. Only four locations, but it's enough for some fun
  69. l48
  70. ,
  71. %"in a maze of twisty little passages"
  72. nx49
  73. sx47    ; way out
  74. ex50
  75. wx50
  76. ux49
  77. dx48
  78. .
  79.  
  80. l49
  81. ,
  82. %48
  83. nx48
  84. sx50
  85. ex50
  86. wx48
  87. ux49
  88. dx51
  89. .
  90.  
  91. l50
  92. ,
  93. %48
  94. nx50
  95. sx51
  96. ex49
  97. wx49
  98. ux48
  99. dx51
  100. .
  101.  
  102. l51
  103. ,
  104. %48
  105. nx50
  106. sx49
  107. ex51
  108. wx52    ; way out
  109. ux50
  110. dx49
  111. .
  112.  
  113. # aha! got through the maze!
  114. l52
  115. ,
  116. %"at the top of a very old rusty ladder"
  117. np51
  118. dx53
  119. .
  120.  
  121. m 52 53 15    ; move down the ladder: this does fx 15, which puts him out
  122.         ; of communication range of the ship
  123. m 53 52 16    ; up the ladder does fx 16, which reverses 15
  124. m 76 75 15    ; moving away from the volcano does 15
  125. m 75 76 16    ; moving to the volcano does 16
  126.  
  127. f15
  128. e        ; no option
  129.     t ve=2    ; out of comm range
  130. .
  131.  
  132. f16
  133. e
  134.     t ve=1    ; back into comm range
  135. .
  136.  
  137. l53
  138. ,
  139. %"in a hall at the bottom of an old ladder"
  140. wp54
  141. ep77
  142. ux52
  143. .
  144.  
  145. l54
  146. ,
  147. %"in a large cave"
  148. ep53
  149. sp55
  150. .
  151.  
  152. l55
  153. ,
  154. %"in a long low passage running north-south, with an opening in
  155. the west wall"
  156. nx54
  157. sx62
  158. wx56
  159. .
  160.  
  161. l56
  162. ,
  163. %"in a small room, the floor is covered in grit"
  164. ep55
  165. sp57
  166. .
  167.  
  168. # a bit nasty here - the crack is there, it has a special message for
  169. # trying to use it, but all to no avail.
  170. l57
  171. ,
  172. %"in a large room with a crack high on the south wall"
  173. {From what you can see of the crack, it doesn't seem to go anywhere}
  174. np56
  175. wp58
  176. sn4
  177. .
  178.  
  179. # by the first rockfall. Enough phaser power will get through here
  180.  
  181. l58
  182. ,
  183. %"in an east-west passage, beside a pile of rocks in the south wall"
  184. {You can feel a breeze blowing past the rocks, and as you push
  185. they move slightly, but they settle back as you stop pushing}
  186. sn5
  187. ex57
  188. wx59
  189. .
  190.  
  191. # this is used when he shoots through, change south way out
  192. l13
  193. %58
  194. ,
  195. {It looks as if there is just enough space to crawl over the
  196. rocks, into the space behind them}
  197. sx60
  198. ex57
  199. wx59
  200. .
  201.  
  202. # duplicate of the original place, used if he shoots again and re-blocks
  203. # the passage
  204. l7
  205. %58
  206. ,
  207. {You can feel a breeze blowing past the rocks, and as you push
  208. they move slightly, but they settle back as you stop pushing}
  209. sn5
  210. ex57
  211. wx59
  212. .
  213.  
  214. # second rockfall, can't get past this one
  215. l59
  216. %"at the end of a passage, facing a pile of rocks to the west"
  217. ,
  218. {It looks like this pile of rocks is far to large to move. You
  219. could probably move some of them with your phaser, but it's power
  220. pack would run out long before the whole pile could be cleared.}
  221. wn5
  222. ex58
  223. .
  224.  
  225. # just outside the bar
  226. l60
  227. %"in a small room with a passage leading north"
  228. ,
  229. sd6
  230. nx58
  231. .
  232.  
  233. # in the bar
  234. l6
  235. %"in an underground bar, full of miners"
  236. {The room is full of smoke and noise, and the miners in here are making
  237. good use of their pay. There are several games of chug-a-lug going on,
  238. mostly using Saurian brandy. There are several bottles lying around on
  239. the nearby tables, both full and empty}
  240. nd60
  241. .
  242.  
  243. # the bottle of brandy. This is needed to get past the Andorian at 78,
  244. # but picking it up can be an art
  245. i12
  246. %"A bottle of Saurian brandy"
  247. h
  248. a
  249. 'bott
  250. 'bran
  251. c 10
  252. l 6
  253. .
  254.  
  255. p 'take 'bott 17    ; take bottle
  256. p 'take 'bran 17    ; take brandy
  257.  
  258. f17    ; take bottle
  259. i l-1@6 l12@6 r25    ; if he's in the bar, and the bottle is too, and
  260.             ; a 25% chance comes off
  261.     t [64 f        ; got it
  262. i l-1@6 l12@6
  263.     t [65        ; oops - didn't make it
  264. e
  265.     t f
  266. .
  267.  
  268. l62
  269. ,
  270. %"in a long low passage running north-south"
  271. nx55
  272. sx63
  273. .
  274.  
  275. # need the explosive to get through the crack.
  276. l63
  277. ,
  278. %"in a small chamber with a tiny crack in the south wall"
  279. {The crack is too small to get through, but looking through
  280. it, you see that it opens up further back}
  281. sn6
  282. np62
  283. ep80
  284. .
  285.  
  286. # when the charge goes off, change to this, which allows passage
  287. l15
  288. ,
  289. %"in a small chamber with a narrow crack in the south wall"
  290. {The crack is just large enough to slip through}
  291. sx61
  292. np62
  293. ep80
  294. .
  295.  
  296. l61
  297. ,
  298. %"in a small passage that slopes up to the north, and down
  299. to the south"
  300. nx63
  301. sx64
  302. .
  303.  
  304. # if he goes south from 61 to 64, fire this
  305. m 61 64 18
  306.  
  307. f18
  308. e
  309.     t [69    ; which just prints some text
  310. .
  311.  
  312. # lands here, but can't get back. Need to get to the volcano to escape now
  313. l64
  314. ,
  315. %"in a cave with several holes in the north wall"
  316. wp65
  317. sp73
  318. nn7
  319. .
  320.  
  321. l65
  322. ,
  323. %"at an intersection of a high north-south passage, and a smaller
  324. one running east-west"
  325. wp66
  326. np67
  327. ep64
  328. sp68
  329. .
  330.  
  331. # a couple of dead ends
  332. l66
  333. ,
  334. %"at a dead end"
  335. ep65
  336. .
  337.  
  338. l67
  339. ,
  340. %66
  341. sp65
  342. .
  343.  
  344. l68
  345. ,
  346. %"at the top of a small crack"
  347. sp172
  348. np65
  349. dx69
  350. .
  351.  
  352. l172
  353. nd68
  354. ,
  355. %"in a small low room"
  356. .
  357.  
  358. l69
  359. ,
  360. %"at the bottom of a crack"
  361. # note - we can get up here
  362. ux68
  363. wp70
  364. .
  365.  
  366. l70
  367. ,
  368. %"standing in front of a large blue box that blocks the passage"
  369. {The box is definitely not a natural formation, but it is not at
  370. all obvious how it got here}
  371. ep69
  372. wd71
  373. .
  374.  
  375. # huh? wait a minute - aren't we in the wrong show???
  376. l71
  377. %"inside the box"
  378. [This is clearly the control center for some ship of some sort,
  379. but the design is not at all apparent. Something else you find
  380. very puzzling is that the ship appears much larger on the inside
  381. than the small box outside.]
  382. ed70
  383. .
  384.  
  385. i13
  386. %"A sonic screwdriver"
  387. x102
  388. w 10
  389. 'soni
  390. 'scre
  391. l 71
  392. .
  393.  
  394. p 'use 'soni 19        ; use sonic
  395. p 'use 'scre 19        ; use screwdriver
  396.  
  397. f19
  398. i l13!-1        ; got it?
  399.     t [74        ; nope - so say so
  400. i l-1!85        ; by the rusty door?
  401.     t [71        ; nope - nothing to do
  402. i vi=1            ; if he oiled the hinges
  403.     t [73 c20 l85=14 vi=3    ; open the door, say something and score
  404. i vi=3
  405.     t [103        ; already open
  406. e
  407.     t [72        ; nothing happens
  408. .
  409.  
  410. p 'use 'oil 32        ; use oil
  411. p 'pour 'oil 32        ; pour oil
  412.  
  413. f32
  414. i l-1@85 l16@-1        ; by the door and with the oil
  415.     t [89 i16=59 c10 vi=1    ; pour it, say something, and loosen the door
  416. i l16@-1        ; not by the door
  417.     t [90 i16=57 vi=2    ; so make a small puddle
  418. e
  419.     t [91        ; no oil to do anything with
  420. .
  421.  
  422. i57
  423. %"A small puddle of oil"
  424. l-3            ; will show up wherever he is
  425. w-1
  426. a
  427. .
  428.  
  429.  
  430. l73
  431. ,
  432. %"in a curved passage, where every sound you make echos back and forth"
  433. np64
  434. ep74
  435. .
  436.  
  437. l74
  438. ,
  439. %"in a cave where the roof is covered with stalagtites"
  440. wp73
  441. sp75
  442. .
  443.  
  444. # can get to here via the crack, but can't do the return trip
  445. l75
  446. ,
  447. %"in a small room with a crack in the east wall"
  448. en8
  449. np74
  450. sp76
  451. .
  452.  
  453. # this is the only other place (barring the outside and the cave / maze
  454. # at the top of the ladder) where the communicator can reach the ship
  455. l76
  456. %"on a ledge, part way up an extinct volcano"
  457. [The view here is incredible. As you look out, you see that all
  458. around the inside of the volcano the lava has solidified into
  459. odd shaped sculptures. Down at the bottom, a pool of lava is
  460. moving slowly, as once in a while a bubble of sulphurous gas
  461. breaks the surface and dissipates. High above, through the
  462. smoke, you can make out the lavender coloured sky of Janus-6]
  463. np75
  464. c10
  465. .
  466. l77
  467. ,
  468. %"at a bend in the passage"
  469. wp53
  470. sp78
  471. .
  472.  
  473. l78
  474. ,
  475. %"in a cave with a very high roof"
  476. np77
  477. sp84
  478. wp79
  479. ep81
  480. .
  481.  
  482. # tricky going east here - the Andorian may not let you past.
  483. m 78 81 24    ; go from 78 to 81
  484.  
  485. f24
  486. i vj=2        ; if the Andorian is drunk
  487.     t [80 vj=0 i14=56    ; let him through, but reset the Andorian, i.e. change
  488.             ; the variable (j), and alter the Andorian
  489. e
  490.     t [81 t78    ; no way through, so teleport back to 78
  491. .
  492.  
  493. p 'kill 'ando 33    ; trying to kill the andorian
  494.  
  495. f33
  496. i l2!-1            ; no phaser, tell him so
  497.     t [7
  498. i l-1@78 vj=2        ; can't use the phaser to take out the Andorian
  499.     t [98 b
  500. i l-1@78        ; in either condition :-)
  501.     t [99 b
  502. e
  503.     t [115        ; nothing to shoot at
  504. .
  505.  
  506. p 'drop 'bott 25    ; give bottle
  507. p 'give 'bott 26    ; drop bottle
  508. p 'drop 'bran 25    ; give brandy
  509. p 'give 'bran 26    ; drop brandy
  510.  
  511. f25        ; drop bottle
  512. i l12@-1 l-1@78 l14@78    ; if he's got the bottle, and is at 78
  513.     t [79 vj=1 i12=59    ; print some text, alter so the Andorian will get
  514.             ; totally drunk,and make the bottle vanish
  515. e
  516.     t f        ; nothing happens
  517. .
  518.  
  519. f26        ; give bottle
  520. i l12@-1 l-1@78 l14@78    ; if he's got the bottle, and is at 78
  521.     t [79 vj=1 i12=59    ; print some text, alter so the Andorian will get
  522. i l12@-1    ; got the bottle
  523.     t [82    ; nobody to give it to
  524. e
  525.     t [83    ; what bottle?
  526. .
  527.  
  528. m -1 -1 27    ; any move does this
  529.  
  530. f27
  531. i vj=1 r20    ; if the Andorian has the bottle and a 20% chance comes up
  532.     t vj=2 i14=55 ; the Andorian get's very drunk
  533. .
  534.  
  535. # original Andorian
  536. i14
  537. %16
  538. w -1
  539. l 78
  540. .
  541.  
  542. # very drunk Andorian
  543. i55
  544. %"A very drunk Andorian"
  545. l 78
  546. w -1
  547. .
  548.  
  549. # copy of the original, because it wakes up after we go past it.
  550. i56
  551. %16
  552. w -1
  553. l 78
  554. .
  555.  
  556. l79
  557. ,
  558. %"in a small cave, full of mist"
  559. ep78
  560. wp80
  561. .
  562.  
  563. l80
  564. ,
  565. %"in a small cavern, with a stream flowing through"
  566. ep79
  567. wp63
  568. .
  569.  
  570. l81
  571. ,
  572. %"in a large cave, with a big obelisk standing in the middle"
  573. {Scratched into the surface of the obelisk, you read the following:
  574. "No man has gone before you into here"}
  575. ep82
  576. wp78
  577. .
  578.  
  579. # back down the passage to the Andorian
  580.  
  581. m 81 78 28
  582.  
  583. f28        ; can't do it .....
  584. e
  585.     t [84 b    ; print some text and terminate
  586. .
  587.  
  588. # moving from 78 to 81 (past the Andorian) activates a lot of effects
  589. # these 4 scramble the locations of the charge and oil
  590. m 78 81 20
  591. m 78 81 21
  592. m 78 81 22
  593. m 78 81 23
  594.  
  595. f20
  596. i l11@4            ; first, if the charge is at 4
  597.     t i11=52        ; move it to 5
  598. .
  599.  
  600. f21
  601. i r50 l11@5        ; now, if the charge is at 5, and a random 50%
  602.     t i11=51        ; move it back to 4
  603. .
  604.  
  605. # same for the oil
  606. f22
  607. i l16@4
  608.     t i16=54        ; move to 5
  609. .
  610.  
  611. f23
  612. i r50 l16@5
  613.     t i16=53        ; and back to 4 on a 50% chance
  614. .
  615.  
  616.  
  617. l82
  618. ,
  619. %"at a T junction in the passage"
  620. wp81
  621. ep4
  622. sp83
  623. .
  624.  
  625. l83
  626. ,
  627. %"beside a stream that vanishes through a hole to the west"
  628. np82
  629. ep5
  630. dx98
  631. .
  632.  
  633. # can't get back past the Andorian, so he needs to swim out of there
  634. p 'swim 29
  635.  
  636. # down will also go for a swim
  637. m -1 98 29
  638.  
  639. f29
  640. i l-1@83
  641.     t [85 t80    ; print some text, and pop him up by the other stream
  642. i l-1@98
  643.     t [85 t80    ; print some text, and pop him up by the other stream
  644. e
  645.     t [86
  646. .
  647.  
  648. # junk room
  649. l4
  650. ,
  651. %"in a room full of left over mining equipment"
  652. {The room is filled with all sorts of equipment: on closer inspection
  653. it looks as if some of it might be useful}
  654. wp82
  655. sp5
  656. .
  657.  
  658. # other junk room
  659. l5
  660. ,
  661. %4
  662. {The room is filled with all sorts of equipment: on closer inspection
  663. it looks as if some of it might be useful}
  664. wp83
  665. np4
  666. .
  667.  
  668. # the explosive charge. There are two additional copies, since this
  669. # tends to move around. Original at 4
  670. i11
  671. %17
  672. x101
  673. w 40
  674. 'expl
  675. 'char
  676. h
  677. l 4
  678. .
  679.  
  680. # and a copy at 4
  681. i51
  682. %17
  683. x101
  684. w 40
  685. 'expl
  686. 'char
  687. h
  688. l 4
  689. .
  690.  
  691. # and a copy at 5
  692. i52
  693. %17
  694. x101
  695. w 40
  696. 'expl
  697. 'char
  698. h
  699. l 5
  700. .
  701.  
  702. # the flask of oil - also starts at 4
  703. i16
  704. %18
  705. w 15
  706. 'oil
  707. h
  708. l 4
  709. .
  710.  
  711. # with a second copy at 4
  712. i53
  713. %18
  714. w 15
  715. 'oil
  716. h
  717. l 4
  718. .
  719.  
  720. # and a copy at 5
  721. i54
  722. %18
  723. w 15
  724. 'oil
  725. h
  726. l 5
  727. .
  728.  
  729. l84
  730. ,
  731. %"in a crystalline passage running north-south"
  732. nx78
  733. sx85
  734. .
  735.  
  736. # beside the rusty door
  737. l85
  738. ,
  739. %"standing in front of a massive rusty door in the south wall of the room"
  740. np84
  741. sn9
  742. .
  743.  
  744. # copy of the door: is used when the oil and sonic screwdriver get it open
  745. l14
  746. ,
  747. %85
  748. np84
  749. sx86
  750. .
  751.  
  752. l86
  753. ,
  754. %"at the top of a small sink hole"
  755. np85
  756. dx87
  757. .
  758.  
  759. # can't get back up, but there is an exit via the maze
  760. l87
  761. ,
  762. %"at the bottom of a sink hole"
  763. sp91
  764. ep88
  765. un10
  766. .
  767.  
  768. l88
  769. ,
  770. %"in a cave with a very rough floor"
  771. wp87
  772. ep89
  773. .
  774.  
  775. l89
  776. ,
  777. %"at a fork in the passage"
  778. wp88
  779. sp3
  780. ep90
  781. .
  782.  
  783. # this is where we were really headed for all the time
  784. l3
  785. ,
  786. %"in a small cave, lined with crystalline deposits"
  787. np89
  788. .
  789.  
  790. # because here are the crystals, needed to get the Enterprise going again
  791. i10
  792. %"Some dilithium crystals"
  793. 'crys
  794. 'dili
  795. l 3
  796. c 30
  797. h
  798. .
  799.  
  800. l90
  801. ,
  802. %"in a crystalline cavern"
  803. wp89
  804. [The walls and ceiling of this cavern are spectacular: covered in
  805. multicoloured crystals. They reflect the light from your lantern,
  806. refracting it into myriad rainbows that dance around the room as
  807. you move.]
  808. c20
  809. .
  810.  
  811. l91
  812. ,
  813. %"in a long curving passage"
  814. wp10
  815. np87
  816. .
  817.  
  818. # and another maze - this is more insidious. _ANY_ movement will at
  819. # random move to 10, 11, or 12, with a 15% chance of escaping to 75
  820. l10
  821. ,
  822. %"lost in a twisting maze of little passages"
  823. {There are passages leading in every direction, twisting and turning.
  824. If you take any of them, you may get hopelessly lost}
  825. nx10
  826. sx10
  827. ex10
  828. wx10
  829. ux10
  830. dx10
  831. .
  832.  
  833. l11
  834. ,
  835. %10
  836. {There are passages leading in every direction, twisting and turning.
  837. If you take any of them, you may get hopelessly lost}
  838. nx10
  839. sx10
  840. ex10
  841. wx10
  842. ux10
  843. dx10
  844. .
  845.  
  846. l12
  847. ,
  848. %10
  849. {There are passages leading in every direction, twisting and turning.
  850. If you take any of them, you may get hopelessly lost}
  851. nx10
  852. sx10
  853. ex10
  854. wx10
  855. ux10
  856. dx10
  857. .
  858.  
  859. # any movement to 10 (i.e. moving in the maze above) does this
  860. m 10 10 31
  861. m 11 10 31
  862. m 12 10 31
  863.  
  864. f31
  865. i r15        ; 15% chance
  866.     t t75 [97    ; print some text and escape
  867. i r33        ; 1 in 3
  868.     t t10    ; go to 10
  869. i r50        ; 1 in 2
  870.     t t11    ; to 11
  871. e
  872.     t t12    ; else to 12
  873. .
  874. ; now chain to rest of source
  875. <star3.src
  876.