Script:tokenFate
From Roll20 Wiki
Version: 1.0.0
Last Modified: 2019-05-22
Code: tokenFate
Dependencies: None
Conflicts: None
Token Fate will randomly select a token from the selected group on the virtual table top for any nefarious purpose you see fit. The name on the token is given preference, but the name of the represented character will be used if the token has no name of it's own. In the case that a selected token has no name and represents no character, it will be skipped and a new candidate will be selected. If no eligible candidates are found, or if no tokens were selected in the first place, it will output that No Token has been selected.
Contents |
Syntax
!token-fate
Installation and Configuration
Token Fate is available in the Roll20 API Script Library and therefore accessible via the Script Library tab when managing your game's API scripts. Simply select Token Fate from the dropdown selection box and then click Add Script!
Alternatively, copy the script's code, available from the menu on the right and stored at Roll20's API GitHub Repository. Paste the code into a new script in your campaign's API Script Editor. Save the new script and it will be available inside your campaign.
Script Use
Execute the script with the "!token-fate" command. For best results have a group of tokens selected on the virtual table top!
Changelog
v1.0.0 (2018-05-22)
- Release