Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
dev7355608 committed Aug 9, 2023
1 parent b8b2cfd commit 55da070
Showing 1 changed file with 98 additions and 0 deletions.
98 changes: 98 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,101 @@ token.document.setFlag("limits", {
},
});
```

## Macros

### D&D 5e

Recommended modules:

- [Vision 5e](https://foundryvtt.com/packages/vision-5e)
- [Walled Templates](https://foundryvtt.com/packages/walledtemplates)

#### Darkness spell

```js
// Darkness spell template
await new dnd5e.canvas.AbilityTemplate(
new CONFIG.MeasuredTemplate.documentClass(
{
t: CONST.MEASURED_TEMPLATE_TYPES.CIRCLE,
distance: 15,
fillColor: game.user.color,
flags: {
limits: {
sight: {
basicSight: { enabled: true, range: 0 }, // Darkvision
ghostlyGaze: { enabled: true, range: 0 }, // Ghostly Gaze
lightPerception: { enabled: true, range: 0 }, // Light Perception
},
light: { enabled: true, range: 0 },
},
walledtemplates: {
wallRestriction: "move",
wallsBlock: "recurse",
},
},
},
{ parent: canvas.scene }
)
).drawPreview();
```

#### Fog Cloud spell

```js
// Fog Cloud spell (level 1) template
await new dnd5e.canvas.AbilityTemplate(
new CONFIG.MeasuredTemplate.documentClass(
{
t: CONST.MEASURED_TEMPLATE_TYPES.CIRCLE,
distance: 20,
fillColor: game.user.color,
flags: {
limits: {
sight: {
blindsight: { enabled: true, range: 0 }, // Blindsight
basicSight: { enabled: true, range: 0 }, // Darkvision
devilsSight: { enabled: true, range: 0 }, // Devil's Sight
lightPerception: { enabled: true, range: 0 }, // Light Perception
seeAll: { enabled: true, range: 0 }, // Truesight
},
},
walledtemplates: {
wallRestriction: "move",
wallsBlock: "recurse",
},
},
},
{ parent: canvas.scene }
)
).drawPreview();
```

#### Silence spell

```js
// Silence spell template
await new dnd5e.canvas.AbilityTemplate(
new CONFIG.MeasuredTemplate.documentClass(
{
t: CONST.MEASURED_TEMPLATE_TYPES.CIRCLE,
distance: 20,
fillColor: game.user.color,
flags: {
limits: {
sight: {
hearing: { enabled: true, range: 0 }, // Hearing
},
sound: { enabled: true, range: 0 },
},
walledtemplates: {
wallRestriction: "move",
wallsBlock: "walled",
},
},
},
{ parent: canvas.scene }
)
).drawPreview();
```

0 comments on commit 55da070

Please sign in to comment.