1 (kern-load "gamestart-mech.scm")
2 (kern-load "gamestart-statues.scm")
4 (kern-mk-place 'p_char_setup "the Path"
6 (kern-mk-map 'm_char_setup 19 19 pal_expanded
8 "xx xx xx xx xx xx x! xx xx xx xx xx x! xx xx xx xx xx xx "
9 "x! @@ @@ .C .H .O .O .S .E @@ @@ @@ .Y .O .U .R @@ @@ x! "
10 "xx @@ @@ @@ @@ @@ @@ .P .A .T .H @@ @@ @@ @@ @@ @@ @@ xx "
11 "xx ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, xx "
12 "xx ,, ,, ,, ,, ++ ,, ,, ,, ,, ,, ,, ,, ++ ,, ,, ,, ,, xx "
13 "xx ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, xx "
14 "xx ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, xx "
15 "xx ,, ,, ,, ,, ,, ,, ,, cx cx cx ,, ,, ,, ,, ,, ,, ,, xx "
16 "xx ,, ,, ,, ,, ,, ,, ,, cx cx cx ,, ,, ,, ,, ,, ,, ,, xx "
17 "xx ,, ,, cx cx cx ,, ,, cx cx cx ,, ,, cx cx cx ,, ,, xx "
18 "xx ,, ,, cx cx cx ,, ,, ,, ,, ,, ,, ,, cx cx cx ,, ,, xx "
19 "xx ,, ,, cx cx cx ,, ,, ,, ,, ,, ,, ,, cx cx cx ,, ,, xx "
20 "xx ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, xx "
21 "xx ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, xx "
22 "xx ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, xx "
23 "xx ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, ,, xx "
24 "x! ,, ,, +s ,, ,, ,, ,, pp cc pp ,, ,, ,, ,, +s ,, ,, x! "
25 "xx ,, ,, ,, ,, ,, ,, pp ,, cc ,, pp ,, ,, ,, ,, ,, ,, xx "
26 "xx xx xx xx xx xx x! xx xx xx xx xx x! xx xx xx xx xx xx "
36 ;; *** contents of the place ***
38 (put (mk-step-trig 'get-player-name nil) 9 16)
39 (put (kern-tag 'start-gate (mk-start-portal 'start-actual-game)) 9 4)
40 (put (kern-mk-obj F_illum_perm 1) 3 1)
41 (put (kern-mk-obj F_illum_perm 1) 15 1)
42 (put (kern-mk-obj F_illum_perm 1) 9 1)
43 (put (kern-mk-obj F_illum_perm 1) 10 4)
44 (put (kern-mk-obj F_illum_perm 1) 8 4)
52 (define (obj-line objfactory yloc xloc xmax)
53 (kern-obj-put-at (objfactory xloc) (list p_char_setup xloc yloc))
55 (obj-line objfactory yloc (+ xloc 1) xmax)
58 ;; Note: start-gate must be a tag to survive saving/reloading.
59 (set-roomdata p_char_setup (list 6 6 6 'start-gate))
61 (obj-line (lambda (unused)
62 (mk-step-trig 'one-off-message "A portal beckons on the far side of the room" "intromes"))
65 (obj-line (lambda (unused)
66 (mk-step-trig 'gamestart-light-lamps nil "lamps"))
69 (kern-obj-put-at (mk-step-trig 'gamestart-light-lamps nil "lamps") (list p_char_setup 7 15))
70 (kern-obj-put-at (mk-step-trig 'gamestart-light-lamps nil "lamps") (list p_char_setup 11 15))
71 (kern-obj-put-at (mk-step-trig 'gamestart-light-lamps nil "lamps") (list p_char_setup 7 16))
72 (kern-obj-put-at (mk-step-trig 'gamestart-light-lamps nil "lamps") (list p_char_setup 11 16))
74 (define (mk-start-statue tag name sprite conv)
82 faction-men ; starting alignment
99 (kern-char-set-known kchar #t)
102 (kern-obj-put-at (mk-start-statue 'str_statue "Statue of Might" s_str_statue 'gs-str-conv) (list p_char_setup 4 10))
103 (kern-obj-put-at (mk-start-statue 'dex_statue "Statue of Agility" s_dex_statue 'gs-dex-conv) (list p_char_setup 9 8))
104 (kern-obj-put-at (mk-start-statue 'int_statue "Statue of Wisdom" s_int_statue 'gs-int-conv) (list p_char_setup 14 10))
106 (obj-line (lambda (unused)
107 (mk-step-trig 'gamestart-statue-speak 'str_statue "statspeak"))
109 (obj-line (lambda (unused)
110 (mk-step-trig 'gamestart-statue-speak 'dex_statue "statspeak"))
112 (obj-line (lambda (unused)
113 (mk-step-trig 'gamestart-statue-speak 'int_statue "statspeak"))
117 ;;(gamestart-field-circle F_fire_perm p_char_setup 4 10 4)
118 ;;(gamestart-field-circle F_acid_perm p_char_setup 9 8 4)
119 ;;(gamestart-field-circle F_energy_perm p_char_setup 14 10 4)