Difference between revisions of "Mod:Script Index"
From Roll20 Wiki
(→Roleplay) |
(Removed all redlinks) |
||
Line 13: | Line 13: | ||
==== Combat Scripts ==== | ==== Combat Scripts ==== | ||
− | Combat scripts assist in making combat flow more easily. This can mean anything from automatically handling initiative to automating exchanges | + | Combat scripts assist in making combat flow more easily. This can mean anything from automatically handling initiative to automating exchanges between combatants. |
− | + | ||
− | + | ||
− | + | ||
* [[Script:InitiativeTracker|InitiativeTracker]] -- Round counter and status effect manager with optional announcements to chat. | * [[Script:InitiativeTracker|InitiativeTracker]] -- Round counter and status effect manager with optional announcements to chat. | ||
* [[Script:Random Turnorder|Random Turnorder]] -- Randomly assigns a turn to selected tokens. | * [[Script:Random Turnorder|Random Turnorder]] -- Randomly assigns a turn to selected tokens. | ||
− | |||
− | |||
==== Tokens - Conditions / Status / Health ==== | ==== Tokens - Conditions / Status / Health ==== | ||
Tokens are used to represent player characters as well as non-player characters. Naturally, both occasionally get punched around a bit. Scripts in this category deal with the changing conditions of tokens, often but not necessarily as a result of combat. | Tokens are used to represent player characters as well as non-player characters. Naturally, both occasionally get punched around a bit. Scripts in this category deal with the changing conditions of tokens, often but not necessarily as a result of combat. | ||
− | |||
− | |||
* [[Script:Blood And Honor: Automatic blood spatter, pooling and trail effects|Blood And Honor]] -- Automatic blood spatter, pooling and trail effects | * [[Script:Blood And Honor: Automatic blood spatter, pooling and trail effects|Blood And Honor]] -- Automatic blood spatter, pooling and trail effects | ||
* [[Script:Bloodied and Dead Status Markers|Bloodied and Dead Status Markers]] -- Automatic bloodied and down icons for HP tracking | * [[Script:Bloodied and Dead Status Markers|Bloodied and Dead Status Markers]] -- Automatic bloodied and down icons for HP tracking | ||
Line 31: | Line 24: | ||
* [[Script:Flight|Flight]] -- Mark how high tokens are flying | * [[Script:Flight|Flight]] -- Mark how high tokens are flying | ||
* [[Script:Flip Tokens|Flip Tokens]] -- Flip graphics horizontally and/or vertically | * [[Script:Flip Tokens|Flip Tokens]] -- Flip graphics horizontally and/or vertically | ||
− | |||
− | |||
* [[Script:Marking Conditions|Marking Conditions]] -- Set status markers on targeted on individual tokens | * [[Script:Marking Conditions|Marking Conditions]] -- Set status markers on targeted on individual tokens | ||
− | |||
− | |||
==== Tokens - Movement ==== | ==== Tokens - Movement ==== | ||
Scripts which are triggered by or change the location of tokens should generally be placed in this category. | Scripts which are triggered by or change the location of tokens should generally be placed in this category. | ||
* [[Script:Auto Teleporting and Chat Based Teleporting|Auto Teleporting and Chat Based Teleporting]] -- Teleporting based on text commands or token locations. | * [[Script:Auto Teleporting and Chat Based Teleporting|Auto Teleporting and Chat Based Teleporting]] -- Teleporting based on text commands or token locations. | ||
− | |||
− | |||
* [[Script:Collision Detection|Collision Detection]] -- Handles collisions between player-controlled tokens and a subset of path objects on the page | * [[Script:Collision Detection|Collision Detection]] -- Handles collisions between player-controlled tokens and a subset of path objects on the page | ||
− | |||
* [[Script:It's a Trap|It's a Trap]] -- Script for setting traps and detecting collisions with them at any point during movement. | * [[Script:It's a Trap|It's a Trap]] -- Script for setting traps and detecting collisions with them at any point during movement. | ||
− | |||
− | |||
* [[Script:No Token Rotation|No Token Rotation]] -- Prevents tokens from being rotated | * [[Script:No Token Rotation|No Token Rotation]] -- Prevents tokens from being rotated | ||
− | |||
* [[Script:Slide Tokens|Slide Tokens]] -- Use an API command to move tokens along a waypoint path, instead of dragging the token and hitting space. | * [[Script:Slide Tokens|Slide Tokens]] -- Use an API command to move tokens along a waypoint path, instead of dragging the token and hitting space. | ||
− | |||
− | |||
− | |||
− | |||
==== Lighting and Revealing ==== | ==== Lighting and Revealing ==== | ||
Dynamic lighting is a subscriber feature that changes what parts of the map are visible to the players as they move their tokens around. The light-blocking walls are achieved by paths on the <code>walls</code> layer, and tokens are used as point light sources. Scripts which modify either the light emitted by tokens or the walls which block the light belong in this category. | Dynamic lighting is a subscriber feature that changes what parts of the map are visible to the players as they move their tokens around. The light-blocking walls are achieved by paths on the <code>walls</code> layer, and tokens are used as point light sources. Scripts which modify either the light emitted by tokens or the walls which block the light belong in this category. | ||
* [[Script:Dynamic Lighting Animation|Dynamic Lighting Animation]] -- Animate a sequence of changes to the dynamic lighting layer | * [[Script:Dynamic Lighting Animation|Dynamic Lighting Animation]] -- Animate a sequence of changes to the dynamic lighting layer | ||
− | |||
− | |||
* [[Script:The Darkness is Closing In|The Darkness is Closing In]] -- Example script for reducing light on a token every time it moves. | * [[Script:The Darkness is Closing In|The Darkness is Closing In]] -- Example script for reducing light on a token every time it moves. | ||
==== Characters - Equipment ==== | ==== Characters - Equipment ==== | ||
Most game systems have some form of equipment to make characters better. While scripts dealing with that equipment may necessarily bet system-specific, there are scripts which handle equipment in a more general fashion. | Most game systems have some form of equipment to make characters better. While scripts dealing with that equipment may necessarily bet system-specific, there are scripts which handle equipment in a more general fashion. | ||
− | |||
− | |||
* [[Script:InventoryManager|Inventory Manager]] -- Inventory Management | * [[Script:InventoryManager|Inventory Manager]] -- Inventory Management | ||
==== Generators ==== | ==== Generators ==== | ||
Random content generation can extend the reach of your campaign while minimizing the GM's prep time. It may be difficult to use these scripts for an in-depth story-driven game, but they'll be great for a random dungeon crawl! | Random content generation can extend the reach of your campaign while minimizing the GM's prep time. It may be difficult to use these scripts for an in-depth story-driven game, but they'll be great for a random dungeon crawl! | ||
− | |||
* [[Script:Random Dungeon Generator|Random Dungeon Generator]] -- Generates random dungeons with geomorphic tiles | * [[Script:Random Dungeon Generator|Random Dungeon Generator]] -- Generates random dungeons with geomorphic tiles | ||
− | |||
==== Roleplay ==== | ==== Roleplay ==== | ||
Line 82: | Line 55: | ||
==== System ==== | ==== System ==== | ||
Scripts in this category are a bit more ''meta'' than the ones listed above. These scripts assist with Roll20 itself more than they assist the game you're playing. | Scripts in this category are a bit more ''meta'' than the ones listed above. These scripts assist with Roll20 itself more than they assist the game you're playing. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* [[Script:Store Commands|Store Commands]] -- Store a series of commands for repeated execution | * [[Script:Store Commands|Store Commands]] -- Store a series of commands for repeated execution | ||
− | |||
=== Game Specific Scripts === | === Game Specific Scripts === | ||
Line 95: | Line 61: | ||
Scripts under each system below may be designed for any use (in other words, had they been system-agnostic, they might fit under any of the sub-headings in the "General Purpose Scripts" section above). | Scripts under each system below may be designed for any use (in other words, had they been system-agnostic, they might fit under any of the sub-headings in the "General Purpose Scripts" section above). | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==== Exalted, Second Edition ==== | ==== Exalted, Second Edition ==== | ||
* [[Script:Exalted Successes|Successes]] -- reports successes for d10 rolls per ''Exalted'' rules. | * [[Script:Exalted Successes|Successes]] -- reports successes for d10 rolls per ''Exalted'' rules. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==== Numenera ==== | ==== Numenera ==== | ||
Line 130: | Line 69: | ||
==== Pathfinder ==== | ==== Pathfinder ==== | ||
− | |||
− | |||
− | |||
* [[Script:CreatureGen|CreatureGen]] -- Generate combat ready tokens from PRD and D20PFSRD statblocks | * [[Script:CreatureGen|CreatureGen]] -- Generate combat ready tokens from PRD and D20PFSRD statblocks | ||
==== Savage Worlds ==== | ==== Savage Worlds ==== | ||
* [[Script:Raise Count|Raise Count]] -- Counts raises on a roll against a given target number | * [[Script:Raise Count|Raise Count]] -- Counts raises on a roll against a given target number | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Utility Scripts === | === Utility Scripts === |
Revision as of 02:02, 20 March 2015
Contents |
Roll20 Mod
Use Mods
- Use & Install
- Mod:Script Index & Suggestions
- Short Community Scripts
- Meta Scripts
- User Documentation
- Mod Scripts(Forum)
- Mod Update 2024🆕
- Macro Guide
Mod Development
Reference
- Objects
- Events
- Chat Events & Functions
- Utility Functions
- Function
- Roll20 object
- Token Markers
- Sandbox Model
- Debugging
Cookbook
The API Script Index is a listing of community-contributed API scripts that are available for use on Roll20. 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.
Scripts By Category
General Purpose Scripts
If your script incorporates specific game system rules, consider listing the script under that game system instead of one of these general purpose categories.
Combat Scripts
Combat scripts assist in making combat flow more easily. This can mean anything from automatically handling initiative to automating exchanges between combatants.
- InitiativeTracker -- Round counter and status effect manager with optional announcements to chat.
- Random Turnorder -- Randomly assigns a turn to selected tokens.
Tokens - Conditions / Status / Health
Tokens are used to represent player characters as well as non-player characters. Naturally, both occasionally get punched around a bit. Scripts in this category deal with the changing conditions of tokens, often but not necessarily as a result of combat.
- Blood And Honor -- Automatic blood spatter, pooling and trail effects
- Bloodied and Dead Status Markers -- Automatic bloodied and down icons for HP tracking
- Conditions and Status Tracker -- Tracks the status of tokens and announces them as the duration passes.
- Flight -- Mark how high tokens are flying
- Flip Tokens -- Flip graphics horizontally and/or vertically
- Marking Conditions -- Set status markers on targeted on individual tokens
Tokens - Movement
Scripts which are triggered by or change the location of tokens should generally be placed in this category.
- Auto Teleporting and Chat Based Teleporting -- Teleporting based on text commands or token locations.
- Collision Detection -- Handles collisions between player-controlled tokens and a subset of path objects on the page
- It's a Trap -- Script for setting traps and detecting collisions with them at any point during movement.
- No Token Rotation -- Prevents tokens from being rotated
- Slide Tokens -- Use an API command to move tokens along a waypoint path, instead of dragging the token and hitting space.
Lighting and Revealing
Dynamic lighting is a subscriber feature that changes what parts of the map are visible to the players as they move their tokens around. The light-blocking walls are achieved by paths on the walls
layer, and tokens are used as point light sources. Scripts which modify either the light emitted by tokens or the walls which block the light belong in this category.
- Dynamic Lighting Animation -- Animate a sequence of changes to the dynamic lighting layer
- The Darkness is Closing In -- Example script for reducing light on a token every time it moves.
Characters - Equipment
Most game systems have some form of equipment to make characters better. While scripts dealing with that equipment may necessarily bet system-specific, there are scripts which handle equipment in a more general fashion.
- Inventory Manager -- Inventory Management
Generators
Random content generation can extend the reach of your campaign while minimizing the GM's prep time. It may be difficult to use these scripts for an in-depth story-driven game, but they'll be great for a random dungeon crawl!
- Random Dungeon Generator -- Generates random dungeons with geomorphic tiles
Roleplay
Scripts which attempt to make the game more immersive belong in this category.
- Language Script -- A script for auto converting text to elven or dwarven.
- What Did He Say? -- Language based scripting
- Morality -- A dialog prompt that provides morality choices as decisions
System
Scripts in this category are a bit more meta than the ones listed above. These scripts assist with Roll20 itself more than they assist the game you're playing.
- Store Commands -- Store a series of commands for repeated execution
Game Specific Scripts
Scripts that deal with specific rules of a game system should be listed in a sub-heading here. If the appropriate game system is not listed, feel free to create the appropriate heading.
Scripts under each system below may be designed for any use (in other words, had they been system-agnostic, they might fit under any of the sub-headings in the "General Purpose Scripts" section above).
Exalted, Second Edition
- Successes -- reports successes for d10 rolls per Exalted rules.
Numenera
- Cypher Roller -- Script to automatically roll Cyphers in Numenera, with full descriptions.
Pathfinder
- CreatureGen -- Generate combat ready tokens from PRD and D20PFSRD statblocks
Savage Worlds
- Raise Count -- Counts raises on a roll against a given target number
Utility Scripts
These scripts are generally not intended to be used alone, but are often instead required by some of the above scripts. Alone, these scripts will not do anything for your campaign, but rather they create functions to be used by other scripts.
- CommandShell -- Framework for marshalling chat commands with POSIX-shell-style arguments, permissions, and duplicate-command checking.
- GMCode -- Generates a unique code to authenticate the GM.
- Interpreted sendChat -- Send a message to the chat as the same person or character that triggered a chat event
- IsGM Auth Module -- Provides a function isGM() for determining if a player id refers to a gm. Intended for use alongside other scripts.
- levenshteinDistance -- Measure the difference between strings
- splitArgs -- Split a string into arguments
- Token Collisions -- A library for detecting collisions among tokens during movement.
- Vector Math -- A library for vector mathematics.