ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/pod/random_maps.pod
(Generate patch)

Comparing deliantra/server/pod/random_maps.pod (file contents):
Revision 1.2 by root, Tue Jun 29 18:27:02 2010 UTC vs.
Revision 1.10 by root, Mon Jul 12 22:28:17 2010 UTC

37directory etc.). 37directory etc.).
38 38
39=head2 Style Parameters 39=head2 Style Parameters
40 40
41 layoutstyle <style> (special!) Pick the layout style for the map. 41 layoutstyle <style> (special!) Pick the layout style for the map.
42 Currently, "rogue", "spiral", "maze", "snake", 42 Currently, "rogue", "spiral", "maze", "cave",
43 "onion", and "squarespiral" are allowed. See 43 "castle", "snake", "onion", "squarespiral" and
44 "multiple" are allowed. See below for more
44 below for more detail. 45 detail.
45 46
46 floorstyle <style> Load /styles/floorstyles/<style> and pick a random 47 floorstyle <style> Load /styles/floorstyles/<style> and pick a random
47 floortype from that style map for the random map. 48 floortype from that style map for the random map.
48 The entire map will be tiled with the floortype. 49 The entire map will be tiled with the floortype.
49 50
91 /styles/treasurestyle/<style>, and pick random 92 /styles/treasurestyle/<style>, and pick random
92 treasures from there. If <style> matches neither 93 treasures from there. If <style> matches neither
93 of these, it will generate treasures using the 94 of these, it will generate treasures using the
94 "chest" treasurelist. A style of "none" causes no 95 "chest" treasurelist. A style of "none" causes no
95 treasures to be placed. 96 treasures to be placed.
96
97
98 97
99=head2 Layout Parameters 98=head2 Layout Parameters
100 99
101 100
102 xsize <int> size of the map: if not set, random from 10 to 70 101 xsize <int> size of the map: if not set, random from 10 to 70
126 1: sparse (maze with some larger open spaces) 125 1: sparse (maze with some larger open spaces)
127 2: braided (few dead ends) 126 2: braided (few dead ends)
128 3: closed (complete maze) 127 3: closed (complete maze)
129 default: random 128 default: random
130 129
130 cave cave_type 0: very rough, mazelike
131 1: round 1-2 space corridors, often elliptic
132 2: more open, roundish
133 3: wide open areas, roundish
134
131 50% of the time a maze layout will be "doorified", meaning that doors 135 50% of the time a maze layout will be "doorified", meaning that doors
132 will be placed at random in the maze. 136 will be placed at random in the maze.
133 137
134 onion layoutoptions1 0 (default) Pick random options 138 onion layoutoptions1 0 (default) Pick random options
135 See "Onion Rooms" below for 139 See "Onion Rooms" below for
136 the rest of the options. 140 the rest of the options.
137 141
138 onion layoutoptions2 0 (default) Pick a random number of 142 onion layoutoptions2 0 (default) Pick a random number of
139 "onion layers" 143 "onion layers"
140
141 144
142=head2 Map generation parameters 145=head2 Map generation parameters
143 146
144 147
145 difficulty Set the map difficulty. Has no relation to the 148 difficulty Set the map difficulty. Has no relation to the
187 2 reverse of 1 190 2 reverse of 1
188 3-6 exits are horizontal. In the future 191 3-6 exits are horizontal. In the future
189 these will be made to make exits to 192 these will be made to make exits to
190 rightward, leftward, north and south. 193 rightward, leftward, north and south.
191 194
195 rotate 0 do not randomly rotate the map
196 1 randomly rotate by 90, 180, 270° (default)
197
192 origin_x <You shouldn't need to set this> The exit which 198 origin_x <You shouldn't need to set this> The exit which
193 leads back from this map will go to this x. 199 leads back from this map will go to this x.
194 200
195 origin_y Like origin_x 201 origin_y Like origin_x
196 202
206 212
207 exit_on_final_map The default action is to place an exit on 213 exit_on_final_map The default action is to place an exit on
208 the final map. When explicitly set to 'no' this will 214 the final map. When explicitly set to 'no' this will
209 not place a return exit on the final_map. 215 not place a return exit on the final_map.
210 If you use this setting YOU MUST PROVIDE A WAY BACK IN THE FINAL MAP! 216 If you use this setting YOU MUST PROVIDE A WAY BACK IN THE FINAL MAP!
211
212 217
213=head2 Misc. Parameters 218=head2 Misc. Parameters
214 219
215 decoroptions <option> Currently, ignored. Possibly in the future it 220 decoroptions <option> Currently, ignored. Possibly in the future it
216 will cause the decor to be patterned in some way, 221 will cause the decor to be patterned in some way,
271 2 linear doors (default is nonlinear) 276 2 linear doors (default is nonlinear)
272 4 bottom "centered" 277 4 bottom "centered"
273 8 bottom-right centered 278 8 bottom-right centered
274 16 outer wall off: i.e., no outer wall. 279 16 outer wall off: i.e., no outer wall.
275 32 irregularly/randomly spaced layers (default: regular) 280 32 irregularly/randomly spaced layers (default: regular)
276
277 281
278=head3 Maze Maps 282=head3 Maze Maps
279 283
280Maze maps are like this: 284Maze maps are like this:
281 285
389 # ## # # ### # # ##### # 393 # ## # # ### # # ##### #
390 # ### #### ###### ##### ####### # # 394 # ### #### ###### ##### ####### # #
391 # # # # # # # # # 395 # # # # # # # # #
392 ######################################## 396 ########################################
393 397
398=head3 Cave Maps
399
400Type 0, rough:
401
402 ########################################
403 ################################# ####
404 ############# ######## # ####
405 ############# ######## ### ## ####
406 ############# #### ######### ####
407 ############# #### ############# ####
408 ########## ## ############ ####
409 ########## ### ####################
410 ######## ## #########################
411 ### ## ### #########################
412 ### ## ### #########################
413 ### ## ## ### #####################
414 ### # ### ###################
415 ### ### ### ###### ###################
416 ######## # ###### # ############
417 ####### ## ######### # #######
418 ####### # ######## # #####
419 ####### ##### ######### ### ### ###
420 ####### ###### #### ### #########
421 ### ### ## ### #### ######
422 ## # # ### ###### ### ####### ######
423 # ## ### ################### #####
424 # ################################ #
425 # #################################### #
426 ########################################
427
428 ########################################
429 ## #### ########## ######### # ###
430 ## ##### ####### ###### # #
431 ## ## # ## ### #
432 ### ####### # #### # #####
433 ##### # ##### ## # # ###
434 ## ## ### ## # # #
435 ## # #### ## ## ## # #
436 ## ##### ### ## # # ###
437 ### ###### # ## # ###
438 ### ### # ###
439 ## ##### # ###
440 ###### ### ####
441 #### # #### ####
442 ## # ### # ## # ####
443 # ## ### ## ## ## #
444 # # # # # # #### # ## #
445 ### ### ##### #### # # ## #
446 # ## ## ## ## ## #
447 # ### ## ### # ## # # ## #
448 # ## # ## ## ### ### #### #
449 # ## # ### #### ## #### #
450 # ## ## ####### ## ######
451 # # ###### ###### #### ## ######
452 ########################################
453
454Type 1: corridors
455
456 ########################################
457 ############################ #
458 #### #### ################ ## ## #
459 ### ## ######## #### ## #### #
460 # ## ###### ### ## #### #
461 # ####### ## ## ## ## #
462 # ####### #### # ## # #
463 # ###### ###### ### ### ### #
464 # ###### ######## ### #### ### #
465 # #### ########## ### ###### ## #
466 ### ### ############### ###### #
467 #### ## ## ######### # ###### ###
468 ##### ### ######### # ##########
469 # ### ### ## ##### ## #########
470 # ## #### #### ## # #########
471 # ## #### ## ## ##########
472 # ### ###### ## ###########
473 # ############## ##### ### ########
474 # ## #### ##### #### ####### ######
475 ### ## #### #### ####### #####
476 ## ## # ## ##### ###### ####
477 ## ## ###### ##### ###
478 ### #### #### ######### ##### ## #
479 ######### #### #
480 ########################################
481
482 ########################################
483 ########################################
484 ### ### #######
485 ## #####
486 # # ############# ########### ####
487 # ### ########################## ###
488 # ### # ###### ##
489 # ## #### ##
490 # ## ###################### ### ##
491 # ## ######################## ### ##
492 # ## ### #### ## ###
493 # ## ## ### # ###
494 # ## ## ############### ### ## ###
495 # ## ## #### ## ##
496 # ## ### ##### ## ##
497 # ## #### ################### # ##
498 # ## ### #################### ##
499 # ## ###################### ##
500 # ### ####################### ##
501 # ####################### ##### ##
502 # ################### ## ##
503 ## ##### ##
504 ### ######### ###
505 ########################################
506 ########################################
507
508Type 2: somewhat open
509
510 ########################################
511 #################### ##### ###
512 ############# ##### #### ##
513 #### ##### #### ## #
514 ### ### ##### ## #
515 # # ##### # ## #### #
516 # # ### ### ######## #### #
517 # # # ## # ### ## # #
518 # # # ## #
519 ## ### ## ## #
520 ### ####### ### ## ###
521 ############## ### #### ####
522 ############### ## #### ####
523 ### ######## ## ### # ###
524 ## ########## ## ## ### ##
525 ### ### ### ## ##### #
526 ## ### ## # ## ######## #
527 ## ##### ### # ## ######### #
528 # #### ### ## ### ####### #
529 # ## ### ##### ## ##
530 ## #### ## # ###### # ###
531 ### ### #### # ## ##### ####
532 #### # ##### ### ##############
533 #### ##### ###################
534 ########################################
535
536Type 3: wide open
537
538 ########################################
539 # ######## ####### #
540 # ######## ######## #
541 # ##### ######### ###
542 ### ##### ## ### ########## ###
543 ## ##### ### #### ### ### ###
544 ### ###### ### #### ## #
545 ### ##### ## ######## ## #
546 ## ## ## ########## #
547 ## ## ## ########## #
548 # ### ######### ## #
549 # ####### ######## #### #
550 # ## ######## ##### ##### #
551 # #### ##### ### ##### #
552 # #### ### #### #
553 # #### ### #### #### #
554 # ### ### ##### ##### #
555 # ### #### ## ########### #### #
556 # ## #### ## ########## #####
557 # ## ####### ##### ####
558 # ### ####### ###### # #
559 # ### ######### # ### #
560 # # ##### ## ######## #
561 # #### ####### #
562 ########################################
563
564=head3 Castle layouts
565
566Castles are similar to caves, except they generate very straight dungeon
567features (not unlike roguelike layouts).
568
569 ########################################
570 #### #################### ##
571 #### ###### ######### ##
572 #### ### ####### # ######### ##
573 #### D D ## ##### ##
574 #####D## ##### D ##
575 ##### # # # ## ##
576 ##### # #### # ##########
577 ##### # # # # D #
578 ##### # # # ######## #D# #
579 ##### # #D# # ######### ########
580 ##### ######### # D #######
581 ##### ########## D ##D########
582 ###### ### #### ###### #D# # #####
583 ##### #D# ## ### D # #####
584 ##### # # ## ###### #####
585 ##### # # ### ###### #####
586 #######D###D### ### ## # ##
587 ###### #### ### ## # ##
588 ###### # ##### ## ##
589 ###### # ####### ## # ##
590 ###### D ############# # ##
591 ########### ############# # ##
592 ########### ################## ##
593 ########################################
594
394=head3 Spiral Maps 595=head3 Spiral Maps
395 596
396 A Spiral Map:: 597A Spiral Map:
397 598
398 ########################### 599 ###########################
399 ########################### 600 ###########################
400 ########### D ########## 601 ########### D ##########
401 ######### #### ######## 602 ######### #### ########
425 1 Regular spiral: distance increases constantly with angle 626 1 Regular spiral: distance increases constantly with angle
426 2 Fine spiral: most coils possible are fit in 627 2 Fine spiral: most coils possible are fit in
427 4 Fit Spiral: scale spiral to fit rectanglar region 628 4 Fit Spiral: scale spiral to fit rectanglar region
428 (i.e., the spiral will look elliptical) 629 (i.e., the spiral will look elliptical)
429 630
430=head3 Rogue-like Maps: 631=head3 Rogue-like Maps
431 632
432A Rogue-like Map: 633A Rogue-like Map:
433 634
434 ############################### 635 ###############################
435 ############# ########### 636 ############# ###########
570 # # # ####D#### # # # 771 # # # ####D#### # # #
571 ##D##########D# #D##########D## 772 ##D##########D# #D##########D##
572 # # < # # 773 # # < # #
573 ##################################### 774 #####################################
574 775
776=head2 Multiple layouts
777
778The layoutstyle "multiple" divides the map into many areas
779and uses random layout styles in each area. Works best with
780very high or wide maps and fewer levels.
575 781
576=head2 An example input file 782=head2 An example input file
577 783
578 layoutstyle onion 784 layoutstyle onion
579 monsterstyle humanoid 785 monsterstyle humanoid
585 decorstyle furniture 791 decorstyle furniture
586 floorstyle dirt 792 floorstyle dirt
587 wallstyle wooden 793 wallstyle wooden
588 symmetry 1 794 symmetry 1
589 795
590=head1 AUTHORS 796=head2 AUTHORS
591 797
592The original document was taken from Crossfire and subsequently modified by Marc Lehmann. 798The original document was taken from Crossfire and subsequently modified by Marc Lehmann.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines