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 "Mod:Script Index"

From Roll20 Wiki

Jump to: navigation, search
Line 1: Line 1:
 
{{supporters only}}
 
{{supporters only}}
 
{{Tocright}}
 
{{Tocright}}
 +
 +
This repository is the collection of all the community-contributed API scripts that are available for use on Roll20.
  
 
== Scripts By Category ==
 
== Scripts By Category ==
Line 103: Line 105:
 
* [[Script:FantasyCraft2E:Standard_Character_Token_Management|Fantasy Craft (2nd printing) - Standard character token management]] --
 
* [[Script:FantasyCraft2E:Standard_Character_Token_Management|Fantasy Craft (2nd printing) - Standard character token management]] --
 
* [[Script:FantasyCraft2E:Standard_Character_Damage_Save|Fantasy Craft - Standard character damage save]] --
 
* [[Script:FantasyCraft2E:Standard_Character_Damage_Save|Fantasy Craft - Standard character damage save]] --
 +
 +
=== Utility Scripts ===
 +
 +
== Contributing ==
 +
If you're interested in contributing to the Roll20 API Community Scripts please visit the [https://github.com/Roll20/roll20-api-scripts API GitHub Repository] and follow the instructions in the README.md file at the bottom of the page.
  
 
== API Docs ==
 
== API Docs ==

Revision as of 00:25, 7 January 2015

Template:Supporters only

Contents


This repository is the collection of all the community-contributed API scripts that are available for use on Roll20.

Scripts By Category

General Purpose Scripts

Combat Scripts

Tokens - Conditions / Status / Health

Tokens - Movement

Lighting and Revealing

  • Light Switch -- Script for turning on and off lights with chat commands.
  • !reveal command -- Automatically moves tokens from the GM layer to objects layer, making them reveal to players.
  • Light is Closing In... -- A light reduction script for token movement.

Characters - Equipment

Generators

System

Roleplay

Misc

Game Specific Scripts

Edge of the Empire

DnD 4th Edition

Zombie Dice

Basic Fantasy Role Playing Game

HERO System

AD&D (Dungeons and Dragons 2e)

Pathfinder

Star Wars Saga

Fantasy Craft 2nd Printing

Utility Scripts

Contributing

If you're interested in contributing to the Roll20 API Community Scripts please visit the API GitHub Repository and follow the instructions in the README.md file at the bottom of the page.

API Docs

Template:Apibox top Template:Apibox getting started Template:Apibox referenceTemplate:Apibox bottom The Roll20 API provides a powerful way to customize and enhance your game. Write scripts that tell Roll20 what to do during gameplay (for instance, move a piece, add a status marker to a token, or even roll dice). It's simple and straightforward to get started, but the possibilities are endless.

The API is written using JavaScript, so a foundation in the language is extremely useful to becoming a script writer. However, almost any programming background can give you a leg up on learning to write Roll20 API scripts, and anyone can learn the skills necessary.

The links on the left will lead you to the API's documentation: what functions are available to you, and how to handle the objects returned from them. You also have access to the Underscore.js library.

API Cookbook

Main Page: API:Cookbook


API Best Practices

Main Page: API:Best Practices

Include namespaces for your functions and variables, to avoid potential name collisions with other authors.

Use easy, short, readable function and variable names. Names like x1, fe2, and xbqne are practically meaningless. Names like incrementorForMainLoopWhichSpansFromTenToTwenty are overly verbose.

Keep your code legible, especially if you need to ask for help on the forums. Additionally, please write your code in English.

Comments! At the very least, comments describing your configuration variables are helpful to everyone who installs your script.

Learn to love _. You have access to Underscore.js, a library with many useful utility functions.