Racial flags are in list-player-flags.h, and are mostly used when the character is considered by the code as a "monster". For example, a player having ESP orc on an item is able to ESP orcs... but also other players of the Half-orc class! In PvP, a player of the Half-orc class will be susceptible to slay orc weapons. And so on... If you want to add more flags, you can simply expand list-player-flags.h and use the resulting PF_XXX flags in the code.
Custom Towns are done with the DM menu:
- log on with the DM (defined in mangband.cfg)
- go to the depth you want your custom level
- enter the DM menu (press '&')
- go to (1) Level commands then (3) Enter manual design (new level)
This will completely empty the level for your design needs. From there, enter the DM menu again and use the building features:
- go to (2) Building commands
- press (1) Set feature to choose the feature you want to add at your current position (see terrain.txt for feature numbers)
- press (2) to add the feature at your current position
- press (3) to draw a line of that feature starting from your current position
- press (4) once you have made a rectangle to fill it with the same feature
- toggle between (5) Build mode on and (6) Build mode off to add a feature under your feet as you move or not
Once you have finished drawing your level, don't forget to add at least one up staircase and one down staircase. Then enter the DM menu again, go to (1) Level commands then (5) Exit manual design. The game should save a file called server.level.0.0.depth in the \lib\user\save subdirectory. That's how I generated the ironman dungeon towns at depths 15/30/45/60/75/90.
After that, edit the mangband.cfg file and set MORE_TOWNS to true to enable custom levels and restart your server. For now, this is only used to generate custom towns, since no monsters can spawn or respawn on custom levels. Maybe I'll change that to allow creation of special levels (for special events and such).
Custom Towns are done with the DM menu:
- log on with the DM (defined in mangband.cfg)
- go to the depth you want your custom level
- enter the DM menu (press '&')
- go to (1) Level commands then (3) Enter manual design (new level)
This will completely empty the level for your design needs. From there, enter the DM menu again and use the building features:
- go to (2) Building commands
- press (1) Set feature to choose the feature you want to add at your current position (see terrain.txt for feature numbers)
- press (2) to add the feature at your current position
- press (3) to draw a line of that feature starting from your current position
- press (4) once you have made a rectangle to fill it with the same feature
- toggle between (5) Build mode on and (6) Build mode off to add a feature under your feet as you move or not
Once you have finished drawing your level, don't forget to add at least one up staircase and one down staircase. Then enter the DM menu again, go to (1) Level commands then (5) Exit manual design. The game should save a file called server.level.0.0.depth in the \lib\user\save subdirectory. That's how I generated the ironman dungeon towns at depths 15/30/45/60/75/90.
After that, edit the mangband.cfg file and set MORE_TOWNS to true to enable custom levels and restart your server. For now, this is only used to generate custom towns, since no monsters can spawn or respawn on custom levels. Maybe I'll change that to allow creation of special levels (for special events and such).
Comment