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:Markov"

From Roll20 Wiki

Jump to: navigation, search
m (Advanced Use)
m (Installation and Configuration)
 
(One intermediate revision by one user not shown)
Line 6: Line 6:
 
|code=Markov}}
 
|code=Markov}}
  
This script lets you generate names using Markov chains [https://en.wikipedia.org/wiki/Markov_chain|Markov_chains]
+
This script lets you generate names using Markov chains [https://en.wikipedia.org/wiki/Markov_chain]
  
 
== Syntax ==
 
== Syntax ==
Line 15: Line 15:
  
 
== Installation and Configuration ==
 
== Installation and Configuration ==
 +
Markov is now available as a one click option under the Character section of Roll20's script drop down.
 +
 
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.
 
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.
  

Latest revision as of 05:33, 8 January 2017

API ScriptAuthor: RyanNerd
Version: 1.1
Last Modified: 2016-29-11
Code: Markov
Dependencies: None
Conflicts: None

This script lets you generate names using Markov chains [1]

Contents

[edit] Syntax

!markov
!markov latin

[edit] Installation and Configuration

Markov is now available as a one click option under the Character section of Roll20's script drop down.

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

To use simply type !markov into the chat. A derived name will be generated and displayed in the chat.

Example output:

  • Maliauc
  • Janeran
  • Maraindice

[edit] Advanced Use

Markov uses over 2000 of "mostly" English names as the default nameset of English names to seed the Markov name generator. You can include your own namesets for the Markov name generator to use.

To do this create a handout in this format:

Example

Name: latin

Notes: Neque,porro,quisquam,est,qui,dolorem,ipsum,quia,dolor,sit,amet,consectetur,adipisci,velit

GM Notes: markov

To use this above example you would need to restart the API sandbox after saving the handout and then you can use the latin nameset with this command:

!markov latin

Example output:

  • consciam
  • ectet
  • ques

[edit] User Options (Not Implemented)

If you have many handouts and you just want to use the default nameset it is recommended that you clear the checkmark in the user options for this script.

[edit] Changelog

v1.1 (2016-29-11)

  • Handouts can be used for users to include their own namesets