… | |
… | |
106 | *fallback |
106 | *fallback |
107 | If a map has a misspelling, say scron instead of scorn, then we can't match the name. |
107 | If a map has a misspelling, say scron instead of scorn, then we can't match the name. |
108 | One region should have this set, so that the map can still be assigned a region |
108 | One region should have this set, so that the map can still be assigned a region |
109 | until such time the map creator learns to spell. |
109 | until such time the map creator learns to spell. |
110 | |
110 | |
111 | *jailmap |
|
|
112 | The path to the map that a player who is arrested in this region (or any |
|
|
113 | subregion hereof) will go to |
|
|
114 | |
|
|
115 | *jailx, jaily |
|
|
116 | The x and y coordinates on the jailmap the player will go to. |
|
|
117 | |
|
|
118 | *****Sample Regions file entry***** |
111 | *****Sample Regions file entry***** |
119 | |
112 | |
120 | region scorn |
113 | region scorn |
121 | longname The Kingdom of Scorn |
114 | longname The Kingdom of Scorn |
122 | msg |
115 | msg |
… | |
… | |
153 | source code to see what they /are/ doing.... |
146 | source code to see what they /are/ doing.... |
154 | |
147 | |
155 | extern char *get_region_longname(region *r); |
148 | extern char *get_region_longname(region *r); |
156 | returns the longname that the region should use |
149 | returns the longname that the region should use |
157 | |
150 | |
158 | extern object *get_jail_exit(object *op); |
|
|
159 | returns an object through which the player op should enter to be jailed. |
|
|
160 | |
|
|
161 | extern char *get_region_msg(region *r); |
151 | extern char *get_region_msg(region *r); |
162 | returns the description of the region. |
152 | returns the description of the region. |
163 | |
153 | |
164 | extern region *get_region_by_name(char *region_name); |
154 | extern region *get_region_by_name(char *region_name); |
165 | given a name returns the region with that name, or the fallback if there isn't one. |
155 | given a name returns the region with that name, or the fallback if there isn't one. |
… | |
… | |
204 | |
194 | |
205 | who can be given regions as arguments, and only show the players in that region. |
195 | who can be given regions as arguments, and only show the players in that region. |
206 | |
196 | |
207 | *****Known/suspected bugs***** |
197 | *****Known/suspected bugs***** |
208 | |
198 | |
|
|
199 | Random maps probably don't get their regions set properly (though I am not quite sure what |
|
|
200 | 'properly' should be here). |
|
|
201 | |
209 | The region parser is not particularly robust, it dies if the 'endmsg' line is missing, |
202 | The region parser is not particularly robust, it dies if the 'endmsg' line is missing, |
210 | or if 'nomore' is missing, or if the 'end' line is missing. These stop the server from |
203 | or if 'nomore' is missing, or if the 'end' line is missing. These stop the server from |
211 | starting, if it starts, it should be fine afterwards. |
204 | starting, if it starts, it should be fine afterwards. |
212 | |
205 | |
213 | *****Future plans***** |
206 | *****Future plans***** |