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 "ScriptCards Scripts"

From Roll20 Wiki

Jump to: navigation, search
(Template: Example Script Name)
(Template: Example Script Name)
Line 66: Line 66:
 
       Capitals matter, so be sure to pay close attention.
 
       Capitals matter, so be sure to pay close attention.
 
AFTER PASTING THE TEMPLATE:  DELETE ABOVE THIS ROW so that "Author of script" comes right after the ''div class'' line above.</pre>
 
AFTER PASTING THE TEMPLATE:  DELETE ABOVE THIS ROW so that "Author of script" comes right after the ''div class'' line above.</pre>
'''Author of script:''' (Your Discord name) <br/>
+
'''Author of script:''' <br/>
'''Game/System specific? Which one:'''<br/>
+
'''Game/System specific? Which one:''' <br/>
'''Purpose of script:''' (Text) <br/>
+
'''Purpose of script:''' <br/>
'''Description of intended results:''' (Text) <br/>
+
'''Description of intended results:''' <br/>
'''Screenshots:''' (Initial screenshots; more can be added throughout the body of the contents) Images <br/>
+
'''Screenshots:''' <br/>
'''Caveats/ Notes:'''(N/A if none, otherwise please describe)<br/>
+
'''Caveats/ Notes:''' <br/>
 
'''Script code: ''' <br/>
 
'''Script code: ''' <br/>
 
<pre> Enter script code here</pre>
 
<pre> Enter script code here</pre>
Any other useful information or context can go here, after the script iself but please put any critical information in the ''Caveats/ Notes section'' before the code to ensure users are seeing it.
 
<!-- Notes to the editor: This line will only appear in Edit-Mode, so it's a way to leave private reminders or notes for any future editor who may come across your writings.<br/>The following two lines will always go after your script to properly end the script section.-->
 
  
 +
<!-- Notes to the editor: This line will only appear in Edit-Mode, so it's a way to leave private reminders or notes for any future editor who may come across your writings.<br/>The following two lines will always go after your script to properly end the script section.-->
 
'''Note:''' Be sure to keep the ''<nowiki><pre>...</pre></nowiki>'' tags around your main script code to prevent issues with anything in the script being considered as code to the Wiki page.  Use ''<nowiki><code>...</code></nowiki>'' for inline code snippets.  
 
'''Note:''' Be sure to keep the ''<nowiki><pre>...</pre></nowiki>'' tags around your main script code to prevent issues with anything in the script being considered as code to the Wiki page.  Use ''<nowiki><code>...</code></nowiki>'' for inline code snippets.  
  

Revision as of 16:37, 15 June 2023

Script:ScriptCards


Working scripts for ScriptCards

Contents

This page is intended to be a centralized repository of working scripts that have been tested and are working as expected. When adding a script, please copy the Template section starting with === Template Script Name === all the way down through the </div><br> at the end.

Please update the info section to provide your name, describe if the script is specific to a particular game/system, the purpose, description of intended results, screenshots, and any caveats or notes someone should be aware of up front.

Guide to completing the Info Section:

Author of script: Your Discord or Roll20 Forum name

Game/System specific? Which one: Either put "Not specific" or put the name of the game/system your script work with

Purpose of script: Provide an overall description of the purpose of the script
Example 1: This script attempts to haggle with vendors
Example 2: This script identifies the remaining health of combat targets

Description of intended results: Describe how a user should expect to interact with your script and what they should expect to see when it works. Doesn't need to be too detailed; just enough for a user to know if the script is not working as intended.
Example 1: The user will press a macro button to activate, which will generate several options for their attempt to haggle with vendors based on certain skills or attributes.
Example 2: This script will always be on once activated. It will outline combat targets with green/ yellow/ red based on remaining health being above 80%, 50% or below 25% respectively

Screenshots: Initial screenshots; more can be added throughout the body of the contents if desired.

Caveats/ Notes: N/A if none, otherwise please describe. Please put any important notes about the script's usage or behavior here.

Script code: insert the script code between the <pre> ... </pre> tags below this line.

Template: Example Script Name

[Expand/Collapse SCRIPT NAME]

AFTER PASTING THE TEMPLATE:  DELETE THIS ROW AND BELOW
This template represents some basic syntax to post a script on this page.  Please be sure to copy and then paste this entire section at the end of the existing list of scripts.  
When updating your copy of the template, please remember the following tips:
   In the code just after the heading line (with the ===) be sure the span class name ends in the exact same naming as the ID on the line below the heading.  If they don't match the fabric of space and time will fall apart!  The first part (mw-...) will be different on each row.
       span class="mw-customtoggle-SCRIPT_NAME" and id="mw-customcollapsible-SCRIPT_NAME"
       Capitals matter, so be sure to pay close attention.
AFTER PASTING THE TEMPLATE:  DELETE ABOVE THIS ROW so that "Author of script" comes right after the ''div class'' line above.

Author of script:
Game/System specific? Which one:
Purpose of script:
Description of intended results:
Screenshots:
Caveats/ Notes:
Script code:

 Enter script code here

Note: Be sure to keep the <pre>...</pre> tags around your main script code to prevent issues with anything in the script being considered as code to the Wiki page. Use <code>...</code> for inline code snippets.

WikiText markup cheat sheet:


Shared Scripts

Below you'll find the good stuff. You can use the table of contents for quick navigation. As long as the Script name is surrounded by "===" on both sides, it'll automatically be added to the table of contents.