Difference between revisions of "Script:tokenFate"
From Roll20 Wiki
m (→Installation and Configuration) |
Andreas J. (Talk | contribs) m (update to 1.1.1) |
||
Line 2: | Line 2: | ||
|name=Token Fate | |name=Token Fate | ||
|author={{user profile|76|Davemania}} | |author={{user profile|76|Davemania}} | ||
− | |version=1. | + | |version=1.1.1 |
− | |lastmodified= | + | |lastmodified=2020-05-22 |
|code=tokenFate | |code=tokenFate | ||
|dependencies=None | |dependencies=None | ||
Line 21: | Line 21: | ||
== Script Use == | == Script Use == | ||
− | Execute the script with the | + | Execute the script with the <code>!token-fate</code> command. For best results have a group of tokens selected on the virtual table top! |
== Changelog == | == Changelog == | ||
+ | https://github.com/Roll20/roll20-api-scripts/pull/952 | ||
+ | {{changelog version|1.1.1|2020-05-22|* Fixed type with msg vs msg_orig [https://github.com/Roll20/roll20-api-scripts/pull/952 link]}} | ||
{{changelog version|1.0.0|2018-05-22|* Release}} | {{changelog version|1.0.0|2018-05-22|* Release}} |
Revision as of 14:10, 17 June 2020
Version: 1.1.1
Last Modified: 2020-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
https://github.com/Roll20/roll20-api-scripts/pull/952 v1.1.1 (2020-05-22)
- Fixed type with msg vs msg_orig link
v1.0.0 (2018-05-22)
- Release