Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Stephen S.

From Roll20 Wiki

Revision as of 01:45, 23 February 2014 by Stephen S. (Talk | contribs)

Jump to: navigation, search

Random Dungeon Generator

Steps to implementing

  1. Purchase, find or create geomorphic tiles. Geomorphic map tiles are a design technique that defines and locates set features on edge of the tile so any tile can connect to any other tile without concern for orientation. A set can be located on the Roll20 Market place:

    Old School Geomorphic

  2. Add new a map to a campaign and the page size for the map should be 72 units by 72 units (for more information on how to do this see Page Toolbar.)

  3. Add the code found on Gist Geomorphic to your existing API process modifying the code as needed to integrate into your API command handling. Aside from some global variables, you just need any command you choose to trigger the "geomorph()" function. As the code is written "!geo" triggers the "geomorph()" function, you will need to choose what command you want to use.

  4. Because this code uses images, the code must be modified to be related to your geomorphic tiles in your Roll20 library. Steps on determining your image source URL can be found here: API:Objects/Path. Also you can place an image on the currently player map and send the API command "!urls" to get the partial URL in the chat window.

  5. What needs to be modified in the code:
  • var pageID = "7F73B956-71C3-4C5B-8C72-576EE4F15EA4";
  • This must be changed to your page in step 2. Best way to find this is by putting the player bookmark on that page and looking at the Campaign object in API (see: API:Objects/Campaign). The API command "!page" will also return this in the chat window.

  • var frameCornerSrc = "2909450/HYFOTgFf7moHhliEgdYsLg/thumb.jpg?1390956561";
  • var frameEntranceSrc = "2909454/hhmhCCRsiAmiKyaCGVR4BQ/thumb.jpg?1390956565";
  • var frameSideSrc = "2909452/fSkmduITZLlluRkQivHdAQ/thumb.jpg?1390956564";
  • These are the URLS to the Old School Geomorphic tiles used to form the outside edges of the map, I choose Geo_Type_A_0025 for the corners, Geo_Type_A_0027 for the entrance(s), and Geo_Type_A_0026 for the side. You must update the URLs to point to the tiles in your library.

  • var roomArray = [
  • This array needs to have the URLS to the Old School Geomorphic tiles used to randomly fill the dungeon. You must update the URLs to point to the tiles in your library.


That should do it. Send me a PM with questions.

Random Dungeon Generator