|
|
(9 intermediate revisions by one user not shown) |
Line 1: |
Line 1: |
| + | ==[Script] Dungeon Connect== |
| + | [[Dungeon Connect API]] |
| + | |
| + | ==[Script] Dungeon Draw== |
| + | [[Dungeon Draw API]] |
| + | |
| ==Random Dungeon Generator== | | ==Random Dungeon Generator== |
− | Steps to implementing
| |
| | | |
− | # 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:<br /><br />[https://marketplace.roll20.net/browse/set/252/old-school-geomorphic Old School Geomorphic]<br /><br />
| + | [[Random Dungeon Generator]] |
− | # 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]].)<br /><br />
| + | |
− | # Add the code found on Gist [https://gist.github.com/BaldarSilveraxe/8725741 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.<br /><br />
| + | |
− | # 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#imgsrc_and_avatar_property_restrictions|API:Objects/Path]]<br /><br />
| + | |
− | # What needs to be modified in the code:
| + | |
− | ::* <code>var pageID = "7F73B956-71C3-4C5B-8C72-576EE4F15EA4";</code> 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|API:Objects/Campaign]])
| + | |
− | ::*<code>var frameCornerSrc = "2909450/HYFOTgFf7moHhliEgdYsLg/thumb.jpg?1390956561"; var frameEntranceSrc = "2909454/hhmhCCRsiAmiKyaCGVR4BQ/thumb.jpg?1390956565"; var frameSideSrc = "2909452/fSkmduITZLlluRkQivHdAQ/thumb.jpg?1390956564";</code> These are the URLS to the [https://marketplace.roll20.net/browse/set/252/old-school-geomorphic 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.
| + | |
− | ::*<code>var roomArray = [</code> This array needs to have the URLS to the [https://marketplace.roll20.net/browse/set/252/old-school-geomorphic Old School Geomorphic] tiles used randomly fill the dungeon.
| + | |
− | <br/>
| + | |
− | <br/>
| + | |
− | That should do it.
| + | |