Skip to content

Commit

Permalink
Merge pull request #54 from p4535992/master
Browse files Browse the repository at this point in the history
Update of the project
  • Loading branch information
tposney authored Sep 22, 2021
2 parents 9004c91 + 5c2d206 commit ded3eac
Show file tree
Hide file tree
Showing 9 changed files with 1,131 additions and 515 deletions.
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"trailingComma": "all",
"semi": true,
"printWidth": 120,
"bracketSpacing": true
}
395 changes: 395 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

67 changes: 17 additions & 50 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,19 @@ This was created as a way of creating the interactive FVTT Tutorial on [The Forg

# Installation

You can install this module by using the following manifest URL : `https://raw.githubusercontent.com/League-of-Foundry-Developers/fvtt-module-trigger-happy/master/module.json`
## Installation

As GM go to the `Manage Modules` options menu in your World Settings tab then enable the `Trigger Happy` module.
It's always easiest to install modules from the in game add-on browser.

To install this module manually:
1. Inside the Foundry "Configuration and Setup" screen, click "Add-on Modules"
2. Click "Install Module"
3. In the "Manifest URL" field, paste the following url:

`https://raw.githubusercontent.com/League-of-Foundry-Developers/fvtt-module-trigger-happy/master/module.json`

4. Click 'Install' and wait for installation to complete
5. Don't forget to enable the module in game using the "Manage Module" button

# Video and Step by Step instructions

Expand Down Expand Up @@ -121,57 +131,14 @@ Here's an example of how these trigger options can be used together :
```

## [Changelog](./changelog.md)

# Changelog
## 0.8.8
- Fix so that unlocking a door does not triggere the door close trigger.

## 0.8.6
- Added a config setting to disable/enable the trigger happy active/inactive button on the context menu.

## 0.8.5
- Foundry vtt 0.8 compatible.
- New config setting edge collision. If set tokens will be captured at the edge of a drawing/token rather than the center.
- fix the silly packaging error

## 0.8.3
- Foundry vtt 0.8 compatible.
- New config setting edge collision. If set tokens will be captured at the edge of a drawing/token rather than the center.

## v0.7

- Add support for labelled drawings as triggers

## v0.4.1

- Fix issue causing click triggers to fail for players not owning the trigger token

## v0.4

- Add support for capture triggers (@tposney)
- Add support for API changes in FVTT 0.5.4

## v0.3

- Add support for triggers when moving a token over a trigger token (@tposney)
- Fix a couple of bugs with regards to journal entries and chat messages (@tposney)
- Add the ability to trigger tokens by clicking on them even if they are hidden from the player
- Add support for `@Trigger[options]` links with options for move, click, stopMovement, ooc, emote, whisper, preload
- Add support for having multiple journals and journals within subfolders
- Fix new line detection when journal entry is written in preformatted text or div mode
- Add support for sending chat messages using an alias

## Issues

## v0.2
- Add support for `@Actor[name]` links instead of only drag&dropped `@Actor[id]` links
- Add support for Token trigger
- Add support for sending chat messages as trigger effects (useful with advanced macros)
- Add support for setting a token as controlled as a trigger effect
Any issues, bugs, or feature requests are always welcome to be reported directly to the [Issue Tracker](https://github.com/League-of-Foundry-Developers/fvtt-module-trigger-happy/issues ), or using the [Bug Reporter Module](https://foundryvtt.com/packages/bug-reporter/).

## v0.1
- Initial release with support for Actor and Scene triggers
## License

# License
This Foundry VTT module, writen by KaKaRoTo, is licensed under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/).
This Foundry VTT module, writen by KaKaRoTo, is licensed under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/) and the [Foundry Virtual Tabletop Limited License Agreement for module development](https://foundryvtt.com/article/license/).

This work is licensed under Foundry Virtual Tabletop [EULA - Limited License Agreement for module development v 0.1.6](http://foundryvtt.com/pages/license.html).
58 changes: 58 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Changelog

## 0.8.9 [2021-09-15]

- Add prettier
- Add internationalization
- Add more intuitive workflow for the hooks
- Integration of the ecmascript module mechanism
- Update README.md
- Allow tokens to be found by ID (from TheGiddyLimit fork)

## 0.8.8
- Fix so that unlocking a door does not triggere the door close trigger.

## 0.8.6
- Added a config setting to disable/enable the trigger happy active/inactive button on the context menu.

## 0.8.5
- Foundry vtt 0.8 compatible.
- New config setting edge collision. If set tokens will be captured at the edge of a drawing/token rather than the center.
- fix the silly packaging error

## 0.8.3
- Foundry vtt 0.8 compatible.
- New config setting edge collision. If set tokens will be captured at the edge of a drawing/token rather than the center.

## v0.7

- Add support for labelled drawings as triggers

## v0.4.1

- Fix issue causing click triggers to fail for players not owning the trigger token

## v0.4

- Add support for capture triggers (@tposney)
- Add support for API changes in FVTT 0.5.4

## v0.3

- Add support for triggers when moving a token over a trigger token (@tposney)
- Fix a couple of bugs with regards to journal entries and chat messages (@tposney)
- Add the ability to trigger tokens by clicking on them even if they are hidden from the player
- Add support for `@Trigger[options]` links with options for move, click, stopMovement, ooc, emote, whisper, preload
- Add support for having multiple journals and journals within subfolders
- Fix new line detection when journal entry is written in preformatted text or div mode
- Add support for sending chat messages using an alias


## v0.2
- Add support for `@Actor[name]` links instead of only drag&dropped `@Actor[id]` links
- Add support for Token trigger
- Add support for sending chat messages as trigger effects (useful with advanced macros)
- Add support for setting a token as controlled as a trigger effect

## v0.1
- Initial release with support for Actor and Scene triggers
11 changes: 11 additions & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"trigger-happy.settings.journalName.name": "Name of the Trigger Journal to use",
"trigger-happy.settings.journalName.hint": "The name of the journal entry to use for listing triggers. There can only be one. Refer to README file in module website for how to configure triggers.",
"trigger-happy.settings.enableTriggers.name": "Enable triggers when running as GM",
"trigger-happy.settings.enableTriggers.hint": " ",
"trigger-happy.settings.edgeCollision.name": "Capture at edge of drawing/token",
"trigger-happy.settings.edgeCollision.hint": " ",
"trigger-happy.settings.enableTriggerButton.name": "Add enable/disable trigger happy button",
"trigger-happy.settings.enableTriggerButton.hint": " ",
"trigger-happy.labels.button.layer.enableTriggerHappy": "Enable Trigger Happy triggers"
}
77 changes: 59 additions & 18 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,70 @@
"name": "trigger-happy",
"title": "Trigger Happy",
"description": "Automate everything in your world by creating triggers for your players to spring traps or anything you can think of!",
"version": "0.8.8",
"version": "0.8.9",
"author": "KaKaRoTo, tposney",
"scripts": ["trigger.js"],
"type": "module",
"socket": true,
"includes": [
"./assets/**",
"./lang/**",
"./scripts/**",
"./styles/**",
"./templates/**",
"./module.json",
"./README.md",
"./icons/**",
"./packs/**"
],
"media": [
{
"type": "icon",
"location": ""
},
{
"type": "cover",
"location": ""
},
{
"type": "screenshot",
"location": ""
}
],
"languages": [
{
"lang": "en",
"name": "English",
"path": "lang/en.json"
}
],
"scripts": [],
"systems": [],
"esmodules": ["trigger.js"],
"styles": [],
"packs": [
{
"name": "actors",
"label": "Trigger Actors",
"path": "packs/actors.db",
"entity": "Actor",
"package": "trigger-happy"
},
{
"name": "journals",
"label": "Trigger Happy Examples",
"path": "packs/journal.db",
"entity": "JournalEntry",
"package": "trigger-happy"
}
{
"name": "trigger-happy-actors",
"label": "Trigger Actors",
"path": "packs/trigger-happy-actors.db",
"entity": "Actor",
"package": "trigger-happy"
},
{
"name": "trigger-happy-journals",
"label": "Trigger Happy Examples",
"path": "packs/trigger-happy-journal.db",
"entity": "JournalEntry",
"package": "trigger-happy"
}
],
"url": "https://github.com/League-of-Foundry-Developers/fvtt-module-trigger-happy",
"manifest": "https://raw.githubusercontent.com/League-of-Foundry-Developers/fvtt-module-trigger-happy/master/module.json",
"download": "https://github.com/League-of-Foundry-Developers/fvtt-module-trigger-happy/archive/v0.8.8.zip",
"download": "https://github.com/League-of-Foundry-Developers/fvtt-module-trigger-happy/archive/v0.8.9.zip",
"changelog": "https://raw.githubusercontent.com/League-of-Foundry-Developers/fvtt-module-trigger-happy/master/changelog.md",
"bugs": "https://github.com/League-of-Foundry-Developers/fvtt-module-trigger-happy/issues",
"minimumCoreVersion": "0.8.3",
"compatibleCoreVersion": "0.8.8"
"compatibleCoreVersion": "0.8.9",
"allowBugReporter": true,
"manifestPlusVersion": "1.2.0",
"dependencies": []
}
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit ded3eac

Please sign in to comment.