Difference between revisions of "Script:tokenFate"
From Roll20 Wiki
(Created page with "{{script overview |name=Token Fate |author={{user profile|76|Davemania}} |version=1.0.0 |lastmodified=2019-05-22 |code=tokenFate |dependencies=None |conflicts=None}} Token Fa...") |
m (→Installation and Configuration) |
||
Line 16: | Line 16: | ||
== Installation and Configuration == | == 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 [https://github.com/Roll20/roll20-api-scripts API GitHub Repository]. Paste the code into a new script in your campaign's [[API:Use_Guide#The_Script_Editor|API Script Editor]]. Save the new script and it will be available inside your campaign. | ||
== Script Use == | == Script Use == |
Revision as of 12:54, 29 May 2019
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