summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordploog <dploog@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-06 07:01:27 +0000
committerdploog <dploog@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-06 07:01:27 +0000
commit1ace4250c5ad668810bb86c71b0ef90e3901a68f (patch)
treed8e29310a73c869729e622657b301108dbda8e86
parente48b238d9ea190788fa0484d21389164a5d7a27b (diff)
downloadcrawl-ref-1ace4250c5ad668810bb86c71b0ef90e3901a68f.tar.gz
crawl-ref-1ace4250c5ad668810bb86c71b0ef90e3901a68f.zip
Added information on how to define random monster sets in portal vaults
(Eino). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8923 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/docs/level_design.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/crawl-ref/docs/level_design.txt b/crawl-ref/docs/level_design.txt
index 6a5cf7115f..4b3d501247 100644
--- a/crawl-ref/docs/level_design.txt
+++ b/crawl-ref/docs/level_design.txt
@@ -1465,6 +1465,32 @@ Instead of the MARKER and KFEAT lines introduced above you now just use
:generic_portal(_G)
and the resulting portal glyphs will even be magenta!
+Defining a random monster set
+-----------------------------
+
+Portal vaults require a defined random monster set to make the Shadow
+Creatures spell work. This is done by calling dgn.set_random_mon_list()
+manually. Here's an example from ice_cave_small_02 in icecave.des:
+ : dgn.set_random_mon_list("ice beast w:90 / ice dragon / nothing")
+You can use "nothing" to have the spell fail sometimes.
+
+If you are using the same random monster list in several destination maps,
+you can define a lua block and call it from the destination map definition.
+This example is from sewer.des:
+
+{{
+function sewer_random_monster_list(e)
+ e.set_random_mon_list("giant bat w:20 / giant newt w:20 / small snake / \
+ ooze / worm / snake / giant mosquito w:15")
+end
+}}
+
+You can then use this line in the map definition to execute the lua block:
+ : sewer_random_monster_list(_G)
+
+You can also set env.spawn_random_rate() to have monsters generated from the
+list during play.
+
I. Lua reference
===================