diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2010-02-21 16:20:00 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2010-02-21 16:24:48 +1000 |
commit | e0cd8dda2377b24397b0ef27363a1242d448aee5 (patch) | |
tree | 7c40e9dbd5721c28297eabc424aa4d8c52ad28ed /crawl-ref/source/util/levcomp.lpp | |
parent | fde2f2ee8ef835fab012dc965df3395c393f8e8d (diff) | |
download | crawl-ref-e0cd8dda2377b24397b0ef27363a1242d448aee5.tar.gz crawl-ref-e0cd8dda2377b24397b0ef27363a1242d448aee5.zip |
Lua map epilogues (Keskitalo).
A new type of Lua associated with maps: an epilogue. This piece of Lua
code is only run once, following the complete building of a dungeon
level. It happens after most everything else has occurred in building a
level, and therefore allows for messages and crawl.more() statements,
without more messages (and so on) occurring before the level is drawn.
Example:
NAME: mini_test
PLACE: D:2
TAGS: allow_dup
WEIGHT: 1000
epilogue{{
crawl.mpr("This is a test!", "warning")
crawl.more()
}}
MAP
G
ENDMAP
This hopefully resolves the wishlist of being able to put more
statements in Pandemonium Lord maps without these appearing before the
screen is updated.
Diffstat (limited to 'crawl-ref/source/util/levcomp.lpp')
-rw-r--r-- | crawl-ref/source/util/levcomp.lpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/util/levcomp.lpp b/crawl-ref/source/util/levcomp.lpp index 7cf69e0c2a..8d692f47a7 100644 --- a/crawl-ref/source/util/levcomp.lpp +++ b/crawl-ref/source/util/levcomp.lpp @@ -228,7 +228,7 @@ SPACE [\ \t\r] ^[ \t]*\{\{ { BEGIN(LUA); return MAIN; } ^[ \t]*validate[ \t]*\{\{ { BEGIN(LUA); return VALIDATE; } ^[ \t]*veto[ \t]*\{\{ { BEGIN(LUA); return VETO; } - +^[ \t]*epilogue[ \t]*\{\{ { BEGIN(LUA); return EPILOGUE; } NAME: { CBEGIN(ARGUMENT); return NAME; } default-depth: { CBEGIN(ARGUMENT); return DEFAULT_DEPTH; } |