9/18/2014 Working Draft Recommended Setup: 1) Create a new campaign. 2) Be sure to select the Optional: Choose a Character Sheet Template: Dungeons & Dragons 5th Ed. Authors: John Myles (Actoba on Roll20.net, @jmyles85 on Twitter) 3) Add to the campaign the two needed and one recommended API scripts: SpellManager (API will soon be posted below.) SpellArrray (Link to this code can be found in the top comments of the SpellManager script.) PowerCardScript (Can be found here: [Script] Power Cards by HoneyBadger .) 4) You should be able to use my images for the code as is; however I have provided them here as well. Image files You will have to update the code for the icons but the SpellBookToken is just normal player token and not in the code. There are 28 of them found in the SpellManager script. Example below: roll20API.AbjurationURL = "Your image's source URL "; 5) Create a page called "Spell Book" (the API will be looking for it.) 6) Create a Character named "Spell Book" with a default token (the API will be looking for it.) 7) Add three abilities to the "Spell Book" as token actions. Name: Create/Update-Spell-List Action: !spellbooks?{This will overwrite existing table. Are you sure you want to do this? (Y/N)|N} Shown as Token Action: Checked Name: Update-List-Icons Action: !updatelist?{This will update your list icons. Are you sure you want to do this? (Y/N)|N} Shown as Token Action: Checked Name: Update-Character-Spells Action: !updatespell?{This will overwrite existing spells. Are you sure you want to do this? (Y/N)|N} Shown as Token Action: Checked 8) Build additional characters Make sure they have levels (at least 1) in a class (or at least 1 level in each of the classes the character has) on the 5E sheet. 9) Place the "Spell Book" and character(s) on the "Spell Book" page. 10)You should be all set up! Using the Spell Book: 1) Click and confirm the "Create/Update-Spell-List" Spell Book token action. a) This will create or update a player specific rollable-table with all spells available to the character based on class. b) Spells will be sorted by level (0,1,2,3) and then name (a,b,c.) c) The API spams some text to the chat pane (this can be removed from the code.) d) The table's name will be the character name and the character API unique ID. You can change the name, but do not change the ID. Example result: e) All the spells are listed, however the icons will be "RED" and the item weight for each spell will be "0" (Zero.) 2) Edit the item weight for whichever spells you choose. Spell item weight of '0' (zero) means the spell will NOT be added to the character record sheet at all. Spell item weight of '1' (one) means the spell WILL BE added to the character record sheet with an ability. Spell item weight of '2' (two) means the spell WILL BE added to the character record sheet with an ability and the ability will be a token action. 3) Once complete click and confirm the "Update-List-Icons" Spell Book token action. a) This makes the list more readable. b) Review the changes. c) Repeat steps 2 and 3 until you are happy. Example result: Green icon spells will be added to the character's spell book with an ability but not the ability will not be set as a token action. Blue icon spells will be added to the character's spell book with an ability set as a token action. Red icon spells will not be added to the character at all. 4) Once you have your list set... click and confirm the "Update-Character-Spells" Spell Book token action. That is it... the character has an updated spell book and abilities with desired token actions. Example result: Code Below: There is a lot of optimization of the code that is needed. And we will be working to achieve that (we will be actively seeking advice from others HINT HINT Brian, Aaron, Alex, Honey...etc...etc..etc....) Credit/Blame: Big thanks again to Wesley L. for all the hard work he put into this. <a href="https://gist.github.com/BaldarSilveraxe/7ae48e19be" rel="nofollow">https://gist.github.com/BaldarSilveraxe/7ae48e19be</a>...