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

From Roll20 Wiki

Jump to: navigation, search
(Created page with "<div style="float: {{{1|right}}}; width: 200px; padding: 5px; border: 1px solid #777; margin: 0 15px 15px 15px; background-color: #efefef;"> <span style="text-align:center;dis...")
 
m (update category)
 
(5 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
<span style="text-align:center;display:block;font-size:1.4em">API Script</span>
 
<span style="text-align:center;display:block;font-size:1.4em">API Script</span>
 
<span style="font-variant:small-caps">'''Author:''' {{user profile|92730|James W.}} </span><br>
 
<span style="font-variant:small-caps">'''Author:''' {{user profile|92730|James W.}} </span><br>
{{script version|1.10}}<br>
+
{{script version|1.11}}<br>
{{script lastmodified date| 2016-3-13}}<br>
+
{{script lastmodified date| 2016-3-15}}<br>
<span style="font-variant:small-caps">'''Code:''' [https://gist.github.com/SCPRedMage/9f96ab1bb11270b25871 Skillbook] </span><br>
+
<span style="font-variant:small-caps">'''Code:''' [https://github.com/Roll20/roll20-api-scripts/blob/master/Pathfinder%20Skillbook/Skillbook.js Skillbook] </span><br>
 
<span style="font-variant:small-caps">'''Dependencies:''' None </span><br>
 
<span style="font-variant:small-caps">'''Dependencies:''' None </span><br>
 
<span style="font-variant:small-caps">'''Conflicts:''' Unknown </span>
 
<span style="font-variant:small-caps">'''Conflicts:''' Unknown </span>
 
</div>
 
</div>
  
Skillbook will generate a token action that will put a template with buttons for each of a character's skills into the chat log, so players can quickly roll skill checks without having to open their character sheets.  These buttons use the macros listed on the character sheet, so any changes to the macros or the skill modifiers on the sheet will work with these buttons.
+
'''Pathfinder Skillbook''' will whisper the player a template with buttons for each of a character's skills, so players can quickly roll skill checks without having to open their character sheets.  These buttons use the macros listed on the character sheet, so any changes to the macros or the skill modifiers on the sheet will work with these buttons.
  
 
Note that Craft, Lore, Perform, and Profession skills, as well as the "misc" skills at the bottom of the sheet, will only be added to "skillbook" if the names are filled in; changes to the names won't require rerunning the script, but filling in new names will.
 
Note that Craft, Lore, Perform, and Profession skills, as well as the "misc" skills at the bottom of the sheet, will only be added to "skillbook" if the names are filled in; changes to the names won't require rerunning the script, but filling in new names will.
  
This script is hard-coded to put this token action into a character ability named "Skills"; if a character already has an ability with that name, it will overwrite that ability.  If you wish to keep that character ability, be sure to rename it first.
+
Alternatively, you can have Skillbook generate a token action to whisper the skillbook to any player who can control the character.  This script is hard-coded to put this token action into a character ability named "Skills"; if a character already has an ability with that name, it will overwrite that ability.  If you wish to keep that character ability, be sure to rename it first.
  
 
=== Use ===
 
=== Use ===
Select the token (or tokens) that represent the characters you want to generate skillbooks for, then type "!skillbook" into the chat window.  If you ever need to re-generate the skillbook (such as when a character fills in a skill name that was blank the first time around), just do that again, and it'll overwrite the existing token action.
+
To receive a whisper with the skillbook in it:
 +
# Select a token that represents the character
 +
# Type "!skillbook" into the chat window
 +
 
 +
To create a token action for the skillbook:
 +
# Select a token that represents the character or characters to generate token actions for
 +
# Type "!skillbook --createability" into the chat window
  
 
=== Changelog ===
 
=== Changelog ===
 +
{{changelog version|1.5|2016-03-20|* Switched to directly whispering the skillbooks instead of making token actions, to avoid chat spamming other players}}
 +
{{changelog version|1.11|2016-03-14|* Fixed bug with empty skill names}}
 
{{changelog version|1.10|2016-03-13|* Updated to work with beta sheet that includes multiple Artistry and Lore skills}}
 
{{changelog version|1.10|2016-03-13|* Updated to work with beta sheet that includes multiple Artistry and Lore skills}}
 
{{changelog version|1.00|2016-03-13|* Release}}
 
{{changelog version|1.00|2016-03-13|* Release}}
 +
 +
[[Category:User API Scripts]]

Latest revision as of 14:44, 19 February 2021

API Script Author: James W.
Version: 1.11
Last Modified: 2016-3-15
Code: Skillbook
Dependencies: None
Conflicts: Unknown

Pathfinder Skillbook will whisper the player a template with buttons for each of a character's skills, so players can quickly roll skill checks without having to open their character sheets. These buttons use the macros listed on the character sheet, so any changes to the macros or the skill modifiers on the sheet will work with these buttons.

Note that Craft, Lore, Perform, and Profession skills, as well as the "misc" skills at the bottom of the sheet, will only be added to "skillbook" if the names are filled in; changes to the names won't require rerunning the script, but filling in new names will.

Alternatively, you can have Skillbook generate a token action to whisper the skillbook to any player who can control the character. This script is hard-coded to put this token action into a character ability named "Skills"; if a character already has an ability with that name, it will overwrite that ability. If you wish to keep that character ability, be sure to rename it first.

[edit] Use

To receive a whisper with the skillbook in it:

  1. Select a token that represents the character
  2. Type "!skillbook" into the chat window

To create a token action for the skillbook:

  1. Select a token that represents the character or characters to generate token actions for
  2. Type "!skillbook --createability" into the chat window

[edit] Changelog

v1.5 (2016-03-20)

  • Switched to directly whispering the skillbooks instead of making token actions, to avoid chat spamming other players


v1.11 (2016-03-14)

  • Fixed bug with empty skill names


v1.10 (2016-03-13)

  • Updated to work with beta sheet that includes multiple Artistry and Lore skills


v1.00 (2016-03-13)

  • Release