Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
vt-tom committed Apr 26, 2022
0 parents commit 6ba9d72
Show file tree
Hide file tree
Showing 20 changed files with 173 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# vttoms-tower-map
Tower Map Modul erstellt mit dem Dungeon Alchemist.
Binary file added maps/roof.webp
Binary file not shown.
Binary file added maps/small-castle-EG.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added maps/small-castle-OG-building-only.webp
Binary file not shown.
Binary file added maps/small-castle-OG.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added maps/small-castle-OG2-building-only.webp
Binary file not shown.
Binary file added maps/small-castle-OG2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added maps/small-castle-OG3-building-only.webp
Binary file not shown.
Binary file added maps/small-castle-OG3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added maps/small-tower-cellar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 69 additions & 0 deletions module.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"name": "vttoms-tower-map",
"title": "VTToms Tower Map",
"description": "Eine Karte für den Angriff oder die Verteidigung eines Turmes. Die Karte wurde erstellt mit Dungeon Alchemist.",
"version": "1.3.0",
"minimumCoreVersion": "9",
"compatibleCoreVersion": "9",
"author": "VTTom",
"authors": [
{
"name": "VTTom",
"discord": "vttom#9720"
}
],
"packs": [
{
"name": "maps",
"label": "vttoms-tower-map-maps",
"path": "/packs/maps.db",
"entity": "Scene",
"type": "Scene"
},
{
"name": "journals",
"label": "vttoms-tower-map-journals",
"path": "/packs/journals.db",
"entity": "JournalEntry",
"type": "JournalEntry"
},
{
"name": "macros",
"label": "vttoms-tower-map-macros",
"path": "/packs/macros.db",
"entity": "Macro",
"type": "Macro"
},
{
"name": "playlists",
"label": "vttoms-tower-map-playlists",
"path": "/packs/playlists.db",
"entity": "Playlist",
"type": "Playlist"
}
],
"esmodules": [
"./scripts/init.js"
],
"dependencies": [
{
"name": "scene-packer",
"manifest": "https://github.com/League-of-Foundry-Developers/scene-packer/releases/latest/download/module.json",
"type": "module"
},
{
"name": "multilevel-tokens",
"manifest": "https://raw.githubusercontent.com/grandseiken/foundryvtt-multilevel-tokens/master/module.json",
"type": "module"
},
{
"name": "levels",
"manifest": "https://github.com/theripper93/Levels/releases/latest/download/module.json",
"type": "module"
}
],
"url": "",
"manifest": "",
"download": "",
"manifestPlusVersion": "1.2.0"
}
Empty file added packs/actors.db
Empty file.
Empty file added packs/items.db
Empty file.
3 changes: 3 additions & 0 deletions packs/journals.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{"_id":"Px04LzsI56LVQ6Xv","name":"Introduction","content":"<p>Hallo und herzlich willkommen zu meinem Modul: Tower Map</p>\n<p>In diesem modul biete ich euch eine Karte von einem Turm den ihr für eure Runde verwenden könnt. Entweder ihr lasst eure Gruppe den Turm angreifen oder aber verteidigen, denn durch die unterschiedlichen Ebenen und das Gelände vorab, lässt bietet es die Möglichkeit einen spannenden und taktischen Kampf zu erleben.</p>\n<p>Ich habe in diesem Modul 2 Lösungen umgetzt, beide jeweils mit Vor und Nachteilen: </p>\n<h2>Karten mit Levels</h2>\n<p>Tipp: Da die Höhe der Levels nicht gut zu dem metrischen System passt, einmal in <strong>Einstellungen anpassen -&gt; Modul Einstellungen -&gt;  Wall Height -&gt; Automativ Token Height </strong>den <strong>Haken raus nehmen.</strong></p>\n<p>Vorteile:</p>\n<ul>\n<li>Alle Spielertoken sind <strong>in einer Szene</strong> und können dort von euch gesehen werden.</li>\n<li>Ein Kampf findet auf einer Szene statt, somit sind <strong>alle Kampfteilnehmer im Combat Tracker</strong>.</li>\n</ul>\n<p>Nachteile:</p>\n<ul>\n<li>Es gibt Besonderheiten bei der <strong>Sicht</strong>. Steht ein Token weiter oben am Fenster, kann ein anderer dicht am Turm nicht gesehen werden. Das mag wegen der Sichtverhältnisse und -winkel realistisch sein, kann aber auch schnell verwirren.</li>\n<li>Die ganze Mechanik zur Umsetzung <strong>ist nicht</strong> ganz <strong>einfach</strong> so, dass beim Troubleshooting fundierte Kenntnisse der Module <strong>Levels </strong>sowie <strong>Monks Active Tiles</strong> erforderlich sind.</li>\n</ul>\n<h2>Karten mit Multilevel Tokens</h2>\n<p>Vorteile:</p>\n<ul>\n<li>Die Mechnanik basiert nur auf einem Modul welches<strong> weit verbreitet</strong> und noch einigermaßen <strong>intuitiv</strong> zu verstehen ist. Ein Troubleshooting ist hier deutlich leichter.</li>\n</ul>\n<p>Nachteile:</p>\n<ul>\n<li>Die Token werden nur geklont in die Szene der Oberen Stockwerke, sie können nicht als <strong>Ziel markiert</strong> und angegriffen werden. Ein System oder Modul bei dem der Kampf dort aber gewisse Mechaniken beinhaltet, funktioniert damit nur eingeschränkt und muss dann manuell behandelt werden.</li>\n<li>Ein Kampf findet immer nur auf einer Szene statt. Somit sind alle Kämpfe auf den verschiedenen Ebenen <strong>getrennt</strong> im <strong>Combat Tracker</strong> und müssen manuell nacheinander abgearbeitet werden.</li>\n</ul>","folder":null,"sort":0,"permission":{"default":0,"AvF2Cr5deSMZuavY":3},"flags":{"scene-packer":{"hash":"3e29f75b0fc37deb3c0301c3d982cc798438007c","sourceId":"JournalEntry.Px04LzsI56LVQ6Xv"},"cf":{"id":"temp_mh8o5uhixw","path":"Tower Map","color":"#000000"}}}
{"_id":"QD3OLHi0ZKNVwwbQ","name":"cellar-tp","content":"","folder":null,"sort":0,"permission":{"default":0,"AvF2Cr5deSMZuavY":3},"flags":{"scene-packer":{"hash":"d797ddab1edf24698676dc6bd872785f6b9da807","sourceId":"JournalEntry.QD3OLHi0ZKNVwwbQ"},"core":{"sourceId":"JournalEntry.QD3OLHi0ZKNVwwbQ"},"cf":{"id":"temp_mh8o5uhixw","path":"Tower Map","color":"#000000"}}}
{"_id":"qBv0kTmKgHyJUpKG","name":"#[CF_tempEntity]","content":"","folder":null,"sort":0,"permission":{"default":0,"AvF2Cr5deSMZuavY":3},"flags":{"cf":{"id":"temp_mh8o5uhixw","path":"Tower Map","color":"#000000","name":"Tower Map","children":["QD3OLHi0ZKNVwwbQ","Px04LzsI56LVQ6Xv"],"folderPath":[]},"scene-packer":{"hash":"3dbc6c156ad1e570848d3be8748a79f1208d6eca"}}}
Empty file added packs/macros.db
Empty file.
9 changes: 9 additions & 0 deletions packs/maps.db

Large diffs are not rendered by default.

Empty file added packs/playlists.db
Empty file.
Empty file added packs/rolltables.db
Empty file.
88 changes: 88 additions & 0 deletions scripts/init.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
(() => {
const adventureName = 'vttoms-tower-map';
const moduleName = 'vttoms-tower-map';

/**
* welcomeJournal (if set) will automatically be imported and opened after the first activation of a
* scene imported from the module compendium.
* The name here corresponds to a Journal entry in your compendium and must match exactly (it is case
* sensitive).
* Set to the following to disable:
* const welcomeJournal = '';
*/
const welcomeJournal = 'Introduction';
/**
* additionalJournals will automatically be imported. This is a list of Journals by name that should
* also be imported.
* Set to the following to disable:
* const additionalJournals = [];
*/
const additionalJournals = [];
/**
* additionalMacros will automatically be imported. Each name must match exactly and are case sensitive.
* Set to the following to disable:
* const additionalMacros = [];
*/
const additionalMacros = [];
/**
* creaturePacks is a list of compendium packs to look in for Actors by name (in prioritised order).
* If the creature is not found in the first pack, it will search through each subsequent pack.
* The first entry here assumes that you have an Actor pack in your module with the "name" of "actors".
* The second entry here lists the DnD5e SRD Monsters compendium that comes with the DnD5e system. Feel
* free to delete the 'dnd5e.monsters' reference if you want, or swapping it to any other system compendium
* reference.
* Set to the following to disable:
* const creaturePacks = [];
*/
const creaturePacks = [];
/**
* journalPacks is a list of compendium packs to look in for Journals by name (in prioritised order).
* The first entry here assumes that you have a Journal pack in your module with the "name" of "journals".
* Set to the following to disable:
* const journalPacks = [];
*/
const journalPacks = ["vttoms-tower-map.journals"];
/**
* macroPacks is a list of compendium packs to look in for Macros by name (in prioritised order).
* The first entry here assumes that you have a Macro pack in your module with the "name" of "macros".
* Set to the following to disable:
* const macroPacks = [];
*/
const macroPacks = ["vttoms-tower-map.macros"];
/**
* playlistPacks is a list of compendium packs to look in for Playlists by name (in prioritised order).
* The first entry here assumes that you have a Playlist pack in your module with the "name" of "playlists".
* Set to the following to disable:
* const playlistPacks = [];
*/
const playlistPacks = ["vttoms-tower-map.playlists"];
/**
* additionalModulePacks is a list of modules whose compendium packs can be looked in for entities by name (in prioritised order).
* Enter just the "name" of the module/s or system/s you want to be considered.
* For example, if you wanted to allow the packs from
* the [Free Loot Tavern's Magic Item Vault]{@link https://foundryvtt.com/packages/free-loot-tavern-compendium}
* and [Dynamic Active Effects SRD]{@link https://foundryvtt.com/packages/Dynamic-Effects-SRD}
* modules to be searchable:
* const additionalModulePacks= ['free-loot-tavern-compendium', 'Dynamic-Effects-SRD'];
* Set to the following to disable:
* const additionalModulePacks = [];
*/
const additionalModulePacks = ["vttoms-tower-map"];

Hooks.once('scenePackerReady', ScenePacker => {
// Initialise the Scene Packer with your adventure name and module name
let packer = ScenePacker.Initialise({
adventureName,
moduleName,
creaturePacks,
journalPacks,
macroPacks,
playlistPacks,
additionalModulePacks,
welcomeJournal,
additionalJournals,
additionalMacros,
allowImportPrompts: true, // Set to false if you don't want the initial popup
});
});
})();

0 comments on commit 6ba9d72

Please sign in to comment.