- Timestamp:
- 04/27/08 12:02:06 (7 months ago)
- Files:
-
- adventure/cave.xml (modified) (1 diff)
- adventure/tower/tower.xml (modified) (10 diffs)
- adventure/world.dtd (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
adventure/cave.xml
r144 r155 1 <?xml version='1.0' encoding='utf-8'?> 1 2 <world node='cave' name='A mysterious dark cave' start='cave (1)'> 2 3 adventure/tower/tower.xml
r144 r155 1 <?xml version='1.0' encoding='utf-8'?> 1 2 <world node='tower' name='The great tower' start='garden (start)'> 2 3 … … 5 6 and a well to the south, far away. 6 7 Type '?' for help.</description> 7 <go spec="south" place="garden (back)" />8 <go spec="north" place="tower (entrance)" />8 <go spec="south" place="garden (back)"/> 9 <go spec="north" place="tower (entrance)"/> 9 10 </place> 10 11 11 12 <place name="garden (back)"> 12 13 <description>You are in the garden, there is a well to the east.</description> 13 <go spec="east" place="well" />14 <go spec="north" place="garden (start)" />15 14 <go spec="east" place="well"/> 15 <go spec="north" place="garden (start)"/> 16 16 17 <npc name="Cat" aliases='the cat, kitty'> 18 <on-leave> 19 <follow target="actor">into the tower (1)</follow> 20 </on-leave> 21 17 22 <on-self-enter> 18 23 <signal target="Frog">Fear</signal> 19 24 </on-self-enter> 20 25 26 <presence> 27 <show>chat</show> 28 <status>A little cat</status> 29 <image>cat.png</image> 30 </presence> 31 21 32 <commands> 22 33 <command name="look at %self%"><narration target="actor"> A little cat </narration></command> … … 28 39 <command signal="Kitty_hit:Failed"> 29 40 <say>/me runs away</say> 30 <move />41 <move/> 31 42 </command> 32 43 <command signal="Is_kitty_here"> … … 34 45 </command> 35 46 </commands> 36 37 <on-leave>38 <follow target="actor">into the tower (1)</follow>39 </on-leave>40 41 <presence>42 <show>chat</show>43 <status>A little cat</status>44 <image>cat.png</image>45 </presence>46 47 </npc> 47 48 </place> … … 69 70 </npc> 70 71 </place> 71 72 72 73 <place name="tower (entrance)"> 73 74 <description>There is a man in front of the entrance.</description> 74 75 <go spec="south" place="garden (start)" /> 75 76 76 77 <npc name="Guard" aliases="man, the man, the guard"> 78 <on-enter target="Cat"> 79 <say>Hello little cute cat! :)</say> 80 <say>/me opened the door. You can go inside</say> 81 <add-exit>inside:into the tower (1)</add-exit> 82 </on-enter> 83 84 <on-leave target="Cat"> 85 <say>Goodbye little Cat!</say> 86 <say>/me closed the door</say> 87 <del-exit>inside</del-exit> 88 </on-leave> 89 77 90 <presence> 78 91 <show>dnd</show> … … 86 99 <command signal="Kitty_hit"><say>DO NOT HIT THIS CUTE KITTY!</say></command> 87 100 </commands> 88 89 <on-enter target="Cat">90 <say>Hello little cute cat! :)</say>91 <say>/me opened the door. You can go inside</say>92 <add-exit>inside:into the tower (1)</add-exit>93 </on-enter>94 95 <on-leave target="Cat">96 <say>Goodbye little Cat!</say>97 <say>/me closed the door</say>98 <del-exit>inside</del-exit>99 </on-leave>100 101 </npc> 101 102 </place> … … 151 152 </npc> 152 153 </place> 153 154 154 155 <place name="into the tower (3)"> 155 156 <description>In this strange room, there is a spider, and a door.</description> 156 157 <go spec="left" place="into the tower (2)" /> 157 158 158 159 <npc name="Spider"> 160 <on-leave> 161 <follow target="actor">into the tower (1), wizard's room</follow> 162 </on-leave> 163 159 164 <presence> 160 165 <show>chat</show> … … 162 167 <image>spider.png</image> 163 168 </presence> 164 169 165 170 <commands> 166 171 <command name="look at %self%"> … … 175 180 </command> 176 181 </commands> 177 182 </npc> 183 184 <thing name="door"> 178 185 <on-leave> 179 < follow target="actor">into the tower (1), wizard's room</follow>186 <del-exit>front</del-exit> 180 187 </on-leave> 181 </npc> 182 183 <thing name="door"> 188 184 189 <commands> 185 190 <command name="open door with %s" objects="wizard's key"> … … 188 193 </command> 189 194 </commands> 190 <on-leave>191 <del-exit>front</del-exit>192 </on-leave>193 195 </thing> 194 196 </place> adventure/world.dtd
r143 r155 15 15 respawn CDATA #IMPLIED> 16 16 17 <!ELEMENT npc (on-enter?,on-leave?,on-self-enter?,on-self-leave?, commands?,presence?)>17 <!ELEMENT npc (on-enter?,on-leave?,on-self-enter?,on-self-leave?,presence?,go?,commands?)> 18 18 <!ATTLIST npc 19 19 name CDATA #REQUIRED … … 21 21 respawn CDATA #IMPLIED> 22 22 23 <!ELEMENT on-enter (say?,narration?,destroy?,use?,give?,move?)> 24 <!ELEMENT on-leave (say?,narration?,destroy?,use?,give?,move?)> 23 <!ELEMENT on-enter (say*,narration?,destroy?,use?,give?,move?,add-exit?)> 24 <!ATTLIST on-enter 25 target CDATA #IMPLIED> 26 <!ELEMENT on-leave (say*,narration?,destroy?,use?,give?,move?,follow?, del-exit?)> 27 <!ATTLIST on-leave 28 target CDATA #IMPLIED> 25 29 26 <!ELEMENT on-self-enter (say ?,narration?,destroy?,use?,give?,move?)>27 <!ELEMENT on-self-leave (say ?,narration?,destroy?,use?,give?,move?)>30 <!ELEMENT on-self-enter (say*,narration?,destroy?,use?,give?,move?,signal?)> 31 <!ELEMENT on-self-leave (say*,narration?,destroy?,use?,give?,move?)> 28 32 29 33 <!ELEMENT commands (command+)> … … 33 37 <!ELEMENT presence (show?,status?,image?)> 34 38 35 <!ELEMENT command (say ?,narration?,presence?,commands?,destroy?,use?,give?,move?,signal?)>39 <!ELEMENT command (say*,narration?,presence?,commands?,destroy?,use?,give?,move?,signal?,add-exit?)> 36 40 <!ATTLIST command 41 target CDATA #IMPLIED 37 42 name CDATA #IMPLIED 38 43 signal CDATA #IMPLIED 39 objects CDATA #IMPLIED> 44 objects CDATA #IMPLIED 45 aliases CDATA #IMPLIED> 46 47 <!ELEMENT add-exit (#PCDATA)> 48 <!ELEMENT del-exit (#PCDATA)> 40 49 41 50 <!ELEMENT show (#PCDATA)> … … 50 59 to CDATA #IMPLIED> 51 60 52 <!ELEMENT destroy (#EMPTY)>61 <!ELEMENT destroy EMPTY> 53 62 <!ATTLIST destroy 54 63 target CDATA #IMPLIED> 55 64 56 <!ELEMENT use (#EMPTY)>65 <!ELEMENT use EMPTY> 57 66 <!ATTLIST use 58 67 target CDATA #IMPLIED> 59 68 60 <!ELEMENT give (# EMPTY)>69 <!ELEMENT give (#PCDATA)> 61 70 <!ATTLIST give 62 71 target CDATA #IMPLIED … … 66 75 <!ATTLIST signal 67 76 target CDATA #IMPLIED> 68 77 78 <!ELEMENT follow (#PCDATA)> 79 <!ATTLIST follow 80 target CDATA #IMPLIED> 81 69 82 <!ELEMENT description (#PCDATA)> 70 83 71 <!ELEMENT go (#EMPTY)>84 <!ELEMENT go EMPTY> 72 85 <!ATTLIST go 73 86 spec CDATA #IMPLIED 74 87 place CDATA #REQUIRED> 75 88 76 <!ELEMENT move (# EMPTY)>89 <!ELEMENT move (#PCDATA)> 77 90 <!ATTLIST move 78 91 target CDATA #IMPLIED 79 place CDATA # REQUIRED>92 place CDATA #IMPLIED> 80 93 81 94 <!ELEMENT narration (#PCDATA)> 82 95 <!ATTLIST narration 96 target CDATA #IMPLIED>
