Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How This Script Works!
- This script allows users to generate custom random dungeons. Here are some key features:
- Event Naming: Events must be named in the format "Move NameOfEvent" to allow for random placement within the dungeon.
- Player Placement: The player will be placed in a random room after loading or generating a map.
- Terrain Requirements: Ensure that the desired terrain types are present on your map.
- Saved Dungeons: The script will create a folder called "SavedDungeons" in the root directory of your game, where it will save generated maps.
- Warnings!
- Ensure that the terrain types are correctly set up; otherwise, you may encounter issues with terrain textures.
- Do not use this script in conjunction with "Quick Test Play," as it will overwrite your current map.
- How to Install the Script!
- Place the script in the Script Folder.
- Attach the script to an Event.
- Create the necessary String Variables (see screenshot).
- How to Use the Script!
- Generate: Generates a basic dungeon (23x23) with default terrain parameters defined in the script.
- Save: Saves the current dungeon. (Requires a String Variable for the dungeon name.)
- Load: Loads a saved dungeon. (Requires a String Variable for the dungeon name to load it from "SavedDungeons".)
- GenerateCustomSize: Generates a custom-sized dungeon using default terrain parameters. (Use a String Variable in the format width_height, e.g., 10_15.)
- GenerateCustomTerrain: Generates a dungeon with custom terrain. (Use a String Variable in the format floor_wall_corridor, e.g., 1_15_1.) This uses basic dungeon size parameters defined in the script.
- Clear: Clears or resets the current dungeon map (may appear unusual).
- ShowTerrains: Displays available terrain types located on the current map, which are used for terrain settings.
- Notes!
- Ensure your map is set up correctly:
- Map Y-coordinate: 0.25
- Events Y-coordinate: 0.25
- Terrain Types on Map: 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement