Created
February 11, 2019 08:09
-
-
Save palikhov/d6406ba4e17714a7da4a057f8a0f31e4 to your computer and use it in GitHub Desktop.
Handouts: loop over each handout and ask if it should be visible to all players
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
Campaign.handouts.models.forEach(h => { | |
if(confirm(`Make ${h.attributes.name} visible by all?`)) { | |
h.save({inplayerjournals: "all"}); | |
} | |
}) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment