Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

[Script] PinNote — Supernotes for pins

1775495723

Edited 1775677720
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
PinNote Available in One Click Install on your Mods page. This script allows you to send GMNotes and custom images from map pins to chat using any Supernotes template (You must have Supernotes installed). Arguments Arguments are case-insensitive and use the format --key|value. --to|<target> Controls where the message is sent. --to|pc Sends a public message to chat. GM notes are never included. --to|gm Whispers the message to the GM only. GM notes are included. --to|self Whispers the message to the invoking player. GM notes are included only if the invoker is a GM. If a non-GM runs the command, --to is ignored and treated as pc. --template|<name>  optional Selects a Supernotes display template. If omitted or invalid, the  generic  template is used silently. Examples: !pinnote !pinnote --to|gm !pinnote --to|self --template|dark !pinnote --template|wizard Requirements Exactly one map pin should be selected. If none are selected, the script reports an error.. If multiple are selected, only the first pin is used. The pin must be a custom pin. If it is set to display a handout link, the script will exist with an error message The pin must contain notes. If the pin’s Notes field is empty, nothing is sent and an error is shown. Supernotes must be installed, in order to supply the templates. If it is missing, the script exits and notifies the GM.
1775495738
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Reserved for Updates
1775497486
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
If you have the Meta Toolbox installed, this macro will automatically determine whether you have a pin or a token selected, ask you if you want the info whispered to GM or sent to all players: !{&if @(selected.type[none])='graphic'}?{visible to|GM,gm|PCs,pc}note  --template|wizard{&else}pinnote --to|?{visible to} --template|wizard{&end} This uses the Supernotes "wizard" template, but you can choose another, or delete it altogether.
1775677738
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
This is now available in One Click Install on your Mods page.