Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Script:tokenFate"

From Roll20 Wiki

Jump to: navigation, search
m (Installation and Configuration)
m
 
(2 intermediate revisions by one user not shown)
Line 2: Line 2:
 
|name=Token Fate
 
|name=Token Fate
 
|author={{user profile|76|Davemania}}
 
|author={{user profile|76|Davemania}}
|version=1.0.0
+
|version=1.1.1
|lastmodified=2019-05-22
+
|lastmodified=2020-05-22
 
|code=tokenFate
 
|code=tokenFate
 
|dependencies=None
 
|dependencies=None
 
|conflicts=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.
+
'''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.
  
 
== Syntax ==
 
== Syntax ==
Line 21: Line 21:
  
 
== Script Use ==
 
== Script Use ==
Execute the script with the "!token-fate" command. For best results have a group of tokens selected on the virtual table top!
+
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 ==
 +
{{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}}

Latest revision as of 20:49, 20 September 2021

API ScriptAuthor: Davemania
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

[edit] Syntax

!token-fate

[edit] 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.

[edit] Script Use

Execute the script with the !token-fate command. For best results have a group of tokens selected on the virtual table top!

[edit] Changelog

v1.1.1 (2020-05-22)

  • Fixed type with msg vs msg_orig link


v1.0.0 (2018-05-22)

  • Release