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
(Links)
(Links)
Line 2: Line 2:
  
 
== Links ==
 
== Links ==
[[https://app.roll20.net/forum/permalink/9752053/ ScriptCards Thread on the Roll20 Mod Forums]]  Please use this link to report any issues or to seek scripting help via the forums. <br/>
+
[https://app.roll20.net/forum/permalink/9752053/ ScriptCards Thread on the Roll20 Mod Forums]  Please use this link to report any issues or to seek scripting help via the forums. <br/>
[[https://app.roll20.net/forum/permalink/10000297/ ScriptCards Mod Working and Sharing thread in the Roll20 Forums]] Historical Archive of scripts shared in the Roll20 forums.<br/>
+
[https://app.roll20.net/forum/permalink/10000297/ ScriptCards Mod Working and Sharing thread in the Roll20 Forums] Historical Archive of scripts shared in the Roll20 forums.<br/>
[[https://github.com/kjaegers/ScriptCards/blob/main/ScriptCards_API/changelog.txt ScriptCards Changelog on GitHub]]<br/>
+
[https://github.com/kjaegers/ScriptCards/blob/main/ScriptCards_API/changelog.txt ScriptCards Changelog on GitHub]<br/>
[[https://wiki.roll20.net/Script:ScriptCards Back to main ScriptCards information Wiki Page]]<br/>
+
[https://wiki.roll20.net/Script:ScriptCards Back to main ScriptCards information Wiki Page]<br/>
[[https://github.com/kjaegers/ScriptCards/tree/main/ScriptCards_API ScriptCards API]] GitHub repository for source before the one-click version is updated.<br/>
+
[https://github.com/kjaegers/ScriptCards/tree/main/ScriptCards_API ScriptCards API] GitHub repository for source before the one-click version is updated.<br/>
[[https://github.com/kjaegers/ScriptCards/tree/main/ScriptCards_Examples ScriptCards Samples on the Official GitHub]]  Branch of the GitHub repo that contains sample scripts.<br/>
+
[https://github.com/kjaegers/ScriptCards/tree/main/ScriptCards_Examples ScriptCards Samples on the Official GitHub]  Branch of the GitHub repo that contains sample scripts.<br/>
  
[[https://discord.gg/jSB4wTNpXb ScriptCards Official Discord]]<br/>
+
[https://discord.gg/jSB4wTNpXb ScriptCards Official Discord]<br/>
[[https://youtu.be/hyR7Jnq4mQM ScriptCards Intro]]<br/>
+
[https://youtu.be/hyR7Jnq4mQM ScriptCards Intro]<br/>
[[https://youtu.be/u50xvNzS9Zk ScriptCards Magic Missile Deep Dive]]<br/>
+
[https://youtu.be/u50xvNzS9Zk ScriptCards Magic Missile Deep Dive]<br/>
 +
<br/>
  
 
=== Working scripts for ScriptCards ===
 
=== Working scripts for ScriptCards ===
Line 18: Line 19:
  
  
 +
=== Shared Scripts ===
 +
Below you'll find the good stuff.  You can also peruse the table of contents and use that 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.<br/><br/>
 +
 +
<span class="mw-customtoggle-SCRIPT_NAME" style="font-size: small; font-weight:normal; color:#003399;">[Expand/Collapse SCRIPT NAME]</span>
 
==== Template: Example Script Name ====
 
==== Template: Example Script Name ====
<span class="mw-customtoggle-SCRIPT_NAME" style="font-size: large; font-weight:normal; color:#003399;">[Expand/Collapse<br/>SCRIPT NAME]</span>
+
<div class="mw-collapsible" id="mw-customcollapsible-_SCRIPT_NAME" style="width: 100%;""><br/>
<div class="mw-collapsible" id="mw-customcollapsible-section_SCRIPT_NAME" style="width: 100%;"">
+
<pre>> '''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.   
+
> 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:
+
> When updating your copy of the template, please remember the following tips:
* In the code just below the heading line (with the ===) be sure the span class name ends in the exact same naming as the ID on the second line.  The first part will be different on each row
+
  > In the code just before 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-<span class=font-weight bold; font style: italics"SCRIPT_NAME> and <id="id="mw-customcollapsible-SCRIPT_NAME">
+
      > span class="mw-customtoggle-SCRIPT_NAME" and id="mw-customcollapsible-SCRIPT_NAME"
** 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><br/>
 +
'''Author of script:''' (Your Discord name) <br/>
 
'''Purpose of script:''' (Text) <br/>
 
'''Purpose of script:''' (Text) <br/>
 
'''Description of intended results:''' (Text) <br/>
 
'''Description of intended results:''' (Text) <br/>
 
'''Screenshots:''' (Initial screenshots; more can be added throughout the body of the contents) Images <br/>
 
'''Screenshots:''' (Initial screenshots; more can be added throughout the body of the contents) Images <br/>
 +
'''Caveats/ Notes:'''(N/A if none, otherwise please describe)<br/>
 
'''Script code: ''' <br/>
 
'''Script code: ''' <br/>
<pre> Enter script code here</pre> <br/>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.  
+
<pre> Enter script code here</pre>
 
+
Any other useful information or context can go here. Please put any critical information in one of the sections 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.-->
 +
</div>
 +
'''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.  
 
<pre>Text with the Pre tags used </pre>
 
<pre>Text with the Pre tags used </pre>
 
 
This is what {{c|a snippet}} looks like {{c|wrapped in code tags}}.
 
This is what {{c|a snippet}} looks like {{c|wrapped in code tags}}.
 
+
[https://meta.wikimedia.org/wiki/Help:Wikitext_examples WikiText markup cheat sheet:]
Any other useful stuff.  [[https://meta.wikimedia.org/wiki/Help:Wikitext_examples WikiText markup cheat sheet:]]
+
<!-- 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.-->
+
</div>
+
<br/>
+

Revision as of 17:53, 12 June 2023

Script:ScriptCards

Links

ScriptCards Thread on the Roll20 Mod Forums Please use this link to report any issues or to seek scripting help via the forums.
ScriptCards Mod Working and Sharing thread in the Roll20 Forums Historical Archive of scripts shared in the Roll20 forums.
ScriptCards Changelog on GitHub
Back to main ScriptCards information Wiki Page
ScriptCards API GitHub repository for source before the one-click version is updated.
ScriptCards Samples on the Official GitHub Branch of the GitHub repo that contains sample scripts.

ScriptCards Official Discord
ScriptCards Intro
ScriptCards Magic Missile Deep Dive

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. Please describe the intended results of the script, include any screenshots/images you think will support the script and then please post the script itself.


Shared Scripts

Below you'll find the good stuff. You can also peruse the table of contents and use that 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.

[Expand/Collapse SCRIPT NAME]

Template: Example 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 before 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: (Your Discord name)
Purpose of script: (Text)
Description of intended results: (Text)
Screenshots: (Initial screenshots; more can be added throughout the body of the contents) Images
Caveats/ Notes:(N/A if none, otherwise please describe)
Script code:

 Enter script code here

Any other useful information or context can go here. Please put any critical information in one of the sections before the code to ensure users are seeing it.

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.

Text with the Pre tags used 

This is what a snippet looks like wrapped in code tags. WikiText markup cheat sheet: