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

Difference between revisions of "Stephen S."

From Roll20 Wiki

Jump to: navigation, search
(Random Dungeon Generator)
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
==Random Dungeon Generator==
+
==[Script] Dungeon Connect==
Steps to implementing
+
[[Dungeon Connect API]]
  
# 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 />
+
==[Script] Dungeon Draw==
# 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 />
+
[[Dungeon Draw API]]
# 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. As the code is written <code>"!geo"</code> triggers the "geomorph()" function, you  will need to choose what command you want to use.<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]]. Also you can place an image on the currently player map and send the API command <code>"!urls"</code> to get the partial URL in the chat window.<br /><br />
+
==Random Dungeon Generator==
# 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]]). The API command <code>"!page"</code> will also return this in the chat window.<br/><br/>
+
::*<code>var frameCornerSrc = "2909450/HYFOTgFf7moHhliEgdYsLg/thumb.jpg?1390956561";</code>
+
::*<code>var frameEntranceSrc = "2909454/hhmhCCRsiAmiKyaCGVR4BQ/thumb.jpg?1390956565";</code>
+
::*<code>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. You must update the URLs to point to the tiles in your library.<br/><br/>
+
::*<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 to randomly fill the dungeon.  You must update the URLs to point to the tiles in your library.<br/>
+
<br/>
+
That should do it. Send me a PM with questions.
+
  
 
[[Random Dungeon Generator]]
 
[[Random Dungeon Generator]]

Latest revision as of 22:23, 12 August 2015

[edit] [Script] Dungeon Connect

Dungeon Connect API

[edit] [Script] Dungeon Draw

Dungeon Draw API

[edit] Random Dungeon Generator

Random Dungeon Generator