Creating a Dungeon

From FetishQuest Wiki
Revision as of 21:19, 15 September 2023 by JasX (talk | contribs)
Jump to navigation Jump to search

Create the Dungeon Asset

  1. Click the dungeon button on the left to bring up a listing.
  2. Click new.
  3. Give your dungeon a UNIQUE label. WARNING: DO NOT CHANGE A LABEL AFTER SETTING IT.
  4. Click the question mark in the window header for more information on the dungeon fields.
  5. Free roam is great for non-linear dungeons and outdoor areas such as forests and towns, since it disables the automatic exit marker.
  6. Scroll down and view the room editor. Use the dropdown menu on the top right to change floor.
  7. Click the entrance tile to enter the room editor of the first cell (room).

Editing a Room

Basics

  1. The first thing you might want to do is check whether the cell is outdoors or indoors. Outdoors will enable outdoor lighting and also rain effects.
  2. Next go through the list of room meshes to create the main room layout. You can rotate it by using room asset rotation in whole degrees.
  3. Use the lists below the editor to find a mesh to add (entry starting with [M]). Double click it to add the mesh.
  4. With a mesh selected you can shift+drag to clone. Ctrl+z will undo the last position of your selected object.
  5. Use W E R to switch between manipulation modes.
  6. For ambiance you can look through https://dev.fetishquest.com/media/audio/ambiance/

Adding Treasures & Pickups

  1. You can find containers under Generic > Containers. Let's start by adding [M] ChestInteractive
  2. Double click the chest to bring up the mesh properties.
  3. You can set a respawn value in in-game seconds if you want it to respawn.
  4. Under Game Actions click library and search for autoloot. Autoloot is the recommended way to add random loot to chests. Higher quality gives better items.
  5. Next add [M] LootBag and double click to bring up its properties.
  6. Check "Hide if non-interactive" to make it go away when fully looted. You can create a loot action by going clicking Library and New (recommended if you want to use this set of items in multiple containers), or click Unique if you intend for very specific items to be looted and only in this bag.
  7. Under type select "loot". Enter a min and a max amount of items to give. Then click library and select what items should be contained.
  8. Some containers such as Nature > Containers > [M] RazzyBerries have preset loot game actions you can use. Select library and then search for loot_razzyberries, and you can use that on all your razzyberry containers.
  9. If you intend for there to be NPCs, you'll want to add player markers for each NPC. I recommend 4-6 markers. You can find markers in Generic > Marker > [M] Player
  10. To tie a marker to a specific NPC, double click the marker and set its name to the label of the NPC you want to show up there. Note that you also have to add said player to the encounter.
  11. Click library on Encounters and select an encounter to start once a player reaches that cell. If you add multiple encounters, it will pick the first viable encounter

Adding additional rooms

  1. Go back to the dungeon editor and click a direction to add a room in that direction. Note that dungeons function on a grid and you can't have two rooms on the same spot. This is for the procedural dungeon generator to work, and for dungeons to show the exit indicator on doors. You have the cardinal directions and up/down.
  2. When connecting a room this way, it'll copy the ambiance/outdoors/room mesh/ambient light settings of the tile you went from.

Connecting rooms

  1. Edit one of the rooms and add a door (many asset groups have a door category) or a direction marker (Generic > Shapes > [M] DirArrow).
  2. The easiest way is to add a quick door from the quick door dropdown.
  3. If you want to lock the door until certain conditions are met, create a new GameAction of type "door". Then select the room, and add conditions.
  4. Doors are often colored red until you set them up with a game action.
  5. Doors will automatically be named based on the cardinal direction of the cell you're connecting to. But you can override that by changing the mesh's name.

Connecting Dungeons

  1. Edit your door or direction mesh and create a new unique GameAction. Set the type to "exit", select the dungeon you want to go to, and the room. You can also set a travel time in seconds, which is mostly useful when connecting outdoor areas.
  2. If you want to connect official content to your modded areas, you can create an extension by opening an existing dungeon, then adding a mesh the usual way and connecting it. Hijacking an existing door mesh from the official mod is not recommended, even if it's not currently used.

Creating Levers