Source:NetHack 5.0.0/dat/Val-goal.lua
Jump to navigation
Jump to search
Below is the full text to Val-goal.lua from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/Val-goal.lua#line12]], for example.
The NetHack General Public License applies to screenshots, source code and other content from NetHack.
This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.
1. -- NetHack Valkyrie Val-goal.lua $NHDT-Date: 1652196017 2022/05/10 15:20:17 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.5 $ 2. -- Copyright (c) 1989 by Jean-Christophe Collet 3. -- Copyright (c) 1991-2 by M. Stephenson 4. -- NetHack may be freely redistributed. See license for details. 5. -- 6. des.level_init({ style = "solidfill", fg = "L" }); 7. 8. des.level_flags("mazelevel", "icedpools") 9. 10. des.level_init({ style="mines", fg=".", bg="L", smoothed=true, joined=true, lit=1, walled=false }) 11. 12. des.map([[ 13. xxxxxx.....................xxxxxxxx 14. xxxxx.......LLLLL.LLLLL......xxxxxx 15. xxxx......LLLLLLLLLLLLLLL......xxxx 16. xxxx.....LLL|---------|LLL.....xxxx 17. xxxx....LL|--.........--|LL.....xxx 18. x......LL|-...LLLLLLL...-|LL.....xx 19. .......LL|...LL.....LL...|LL......x 20. ......LL|-..LL.......LL..-|LL...... 21. ......LL|.................|LL...... 22. ......LL|-..LL.......LL..-|LL...... 23. .......LL|...LL.....LL...|LL....... 24. xx.....LL|-...LLLLLLL...-|LL......x 25. xxx.....LL|--.........--|LL.....xxx 26. xxxx.....LLL|---------|LLL...xxxxxx 27. xxxxx.....LLLLLLLLLLLLLLL...xxxxxxx 28. xxxxxx......LLLLL.LLLLL.....xxxxxxx 29. xxxxxxxxx..................xxxxxxxx 30. ]]); 31. -- Dungeon Description 32. des.region(selection.area(00,00,34,16), "lit") 33. -- Stairs 34. -- Note: The up stairs are *intentionally* off of the map. 35. -- if the stairs are surrounded by lava, maybe give some room 36. des.replace_terrain({ region = {44,09, 46,11}, fromterrain='L', toterrain='.', chance=50 }); 37. des.stair("up", 45,10) 38. -- Non diggable walls 39. des.non_diggable(selection.area(00,00,34,16)) 40. -- Drawbridges; northern one opens from the south (portcullis) to further 41. -- north (lowered span), southern one from the north to further south 42. des.drawbridge({ x=17, y=02, dir="south", state="random" }) 43. if percent(75) then 44. des.drawbridge({ x=17, y=14, dir="north", state="open" }) 45. else 46. des.drawbridge({ x=17, y=14, dir="north", state="random" }) 47. end 48. -- Objects 49. des.object({ id = "crystal ball", x=17, y=08, buc="blessed", spe=5, name="The Orb of Fate" }) 50. des.object() 51. des.object() 52. des.object() 53. des.object() 54. des.object() 55. des.object() 56. des.object() 57. des.object() 58. des.object() 59. des.object() 60. des.object() 61. des.object() 62. des.object() 63. des.object() 64. -- Traps 65. des.trap("board",13,08) 66. des.trap("board",21,08) 67. -- Random traps 68. des.trap("fire") 69. des.trap("fire") 70. des.trap("fire") 71. des.trap("fire") 72. des.trap("board") 73. des.trap() 74. des.trap() 75. -- Random monsters. 76. des.monster("Lord Surtur", 17, 08) 77. des.monster("fire ant") 78. des.monster("fire ant") 79. des.monster("fire ant") 80. des.monster("fire ant") 81. des.monster("a") 82. des.monster("a") 83. des.monster({ id = "fire giant", x=10, y=06, peaceful = 0 }) 84. des.monster({ id = "fire giant", x=10, y=07, peaceful = 0 }) 85. des.monster({ id = "fire giant", x=10, y=08, peaceful = 0 }) 86. des.monster({ id = "fire giant", x=10, y=09, peaceful = 0 }) 87. des.monster({ id = "fire giant", x=10, y=10, peaceful = 0 }) 88. des.monster({ id = "fire giant", x=24, y=06, peaceful = 0 }) 89. des.monster({ id = "fire giant", x=24, y=07, peaceful = 0 }) 90. des.monster({ id = "fire giant", x=24, y=08, peaceful = 0 }) 91. des.monster({ id = "fire giant", x=24, y=09, peaceful = 0 }) 92. des.monster({ id = "fire giant", x=24, y=10, peaceful = 0 }) 93. des.monster({ id = "fire giant", peaceful = 0 }) 94. des.monster({ id = "fire giant", peaceful = 0 }) 95. des.monster({ class = "H", peaceful = 0 }) 96. 97. -- 98. -- The "fill" levels for the quest. 99. -- 100. -- These levels are used to fill out any levels not occupied by specific 101. -- levels as defined above. "filla" is the upper filler, between the 102. -- start and locate levels, and "fillb" the lower between the locate 103. -- and goal levels. 104. --