Skip to content

Module allowing to create, manage, vote and see results of Polls in Chat Log during games played via Foundry VTT.

License

Notifications You must be signed in to change notification settings

Forien/foundryvtt-forien-easy-polls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FoundryVTT - Forien's Easy Polls

GitHub release (latest SemVer) Foundry Core Compatible Version Foundry Core Compatible Version
License GitHub Releases GitHub All Releases
Discord Patreon Ko-Fi

This module aims to provide solution to create, manage, vote and see results of Polls in Chat Log during games played via Foundry Virtual Tabletop.

Usage

This module lets you create and manage Polls using Chat Command, Create Poll Dialog and Saved Polls App.

Module also supports Chat Commander's autocompletion and tooltips.

Through Chat Command

To create a poll, use /poll chat command.

  • First line becomes the question.
  • Every other line becomes an answer.
  • Empty lines are ignored

Tip: Use Shift+Enter to go to new line when writing a message

Optional flags

Chat Command supports the following optional flags. Flags allow overriding the default Configuration Settings

Mode

Use this flag by typing --mode or --m directly followed by one of allowed modes:

  • multiple (also multi, m) — set Poll to multiple vote poll, allowing players to vote on multiple options
  • single (also s) — set Poll to single vote poll, allowing players to only pick one option
Results

Use this flag by typing --results or --r directly followed by one of allowed settings:

  • true (also t) — set Poll to allow players checking the Poll's results
  • false (also f) — set Poll to hide results from players
Secret

Use this flag by typing --secret or --s directly followed by one of allowed settings:

  • true (also t) — set Poll to hide voters
  • false (also f) — set Poll to allow players seeing who voted for what options (requires players to also see results)

Example:

/p --mode single Ultimate Question of Life, the Universe, and Everything
Stupid answer
Dumb answer
Just answer
Barely answer
42
¯\_(ツ)_/¯

Through Create Dialog UI

Press P (keybinding is editable through Foundry's Configure Options) to open a "Create Poll" Dialog, where you can set Poll's Question and Options in visual form.

In this Dialog you can also set all flags as you wish.

Saved Polls

When using "Creat Poll" Dialog, you have an option to "Create and Save". Using this button will save the Poll for your later use.

Press Shift+P (keybinding is editable through Foundry's Configure Options) to open a "Saved Polls" App, where you can see all your Saved Polls and quickly post them to Chat, delete them, or edit them.

Configuration

In configuration you can set several handy options like:

  • Allowing Players to create Polls
  • Default flags for newly created Polls

Screenshots

Future plans

  • none currently

You can always check current and up-to-date planned and requested features here

If you have any suggestion or idea on new contents, hit me up on Discord!

Translations

If you are interested in translating my module, simply make a new Pull Request with your changes, or contact me on Discord.

Contact

If you wish to contact me for any reason, reach me out on Discord using my tag: forien

Acknowledgments

  • Thanks to Discord member Vathraq for the idea for this module!
  • Thanks to flamewave000 for providing Dialog Macro that became part of the module (Set up a Poll! Dialog)
  • Thanks to doumoku for providing Japanese translations
  • Thanks to clemente for providing Brazilian Portuguese translations
  • Thanks to Mystery-Man-From-Ouperspace for providing French translations

Support

If you wish to support module development, please consider becoming Patron or donating through Paypal. Thanks!

License

Forien's Easy Polls is a module for Foundry VTT by Forien and is licensed under a MIT License.

This work is licensed under Foundry Virtual Tabletop EULA - Limited License for Package Development from March 2, 2023.

About

Module allowing to create, manage, vote and see results of Polls in Chat Log during games played via Foundry VTT.

Topics

Resources

License

Stars

Watchers

Forks

Languages