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

From Roll20 Wiki

Jump to: navigation, search
m
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{script overview
+
{{revdate}}{{script overview
 
|name=KABOOM
 
|name=KABOOM
 
|author={{user profile|558646|PaprikaCC}}
 
|author={{user profile|558646|PaprikaCC}}
Line 5: Line 5:
 
|dependencies={{api repository link|PathMath}}, {{api repository link|Vector Math}}, {{api repository link|MatrixMath}}
 
|dependencies={{api repository link|PathMath}}, {{api repository link|Vector Math}}, {{api repository link|MatrixMath}}
 
|lastmodified=2017-02-17}}
 
|lastmodified=2017-02-17}}
 +
{{main|API:Script Index}}
  
A script that displaces tokens based on their size, and distance from an explosion or implosion effect. KABOOM is primarily triggered through chat messages, although it also exposes a function so other scripts may use it in automated events or as a part of some other effect chain.
+
A script that displaces [[tokens]] based on their size & distance from an explosion or implosion effect. KABOOM is primarily triggered through chat messages, although it also exposes a function so other scripts may use it in automated events, or as a part of some other effect chain.
  
Detailed documentation is available here: https://github.com/Roll20/roll20-api-scripts/blob/master/KABOOM/README.md
+
==General==
 +
The basic chat command follows this format:
 +
<pre style="overflow:auto;white-space:pre-wrap;">!KABOOM effect-power [ effect-radius [ options [ --default-options]]] !KABOOM -15 50 no scatter --blood</pre>
 +
{{#evp:youtube|4E-NtcoJt2A|Making Things Explode with the KABOOM! API|right|430}}
 +
Help Command:
 +
<pre style="overflow:auto;white-space:pre-wrap;">!KABOOM --help</pre>
 +
 
 +
When you use KABOOM as a chat command, you need to have a token selected. ONLY <code>effect-power</code> is required. Everything else is optional.
 +
 
 +
'''Full documentation: {{repo|Roll20/roll20-api-scripts/blob/master/KABOOM/README.md README.md}}'''
 +
 
 +
* '''Parameters'''
 +
** <code>effect-power</code> is the strength of the force moving tokens away or towards from the explosion point. It is measured in the same units listed on the page. Effect-power can be negative if you want to pull things towards the object instead of pushing away.
 +
 
 +
** <code>effect-radius</code> is the maximum distance that the script search for objects to manipulate. If something is beyond this point, it will not move. Defaults to effect-power * explosion_ratio. This is always parsed as positive.
 +
 
 +
** <code>options</code> are either 'vfx', 'no vfx', 'no-vfx', 'invisible', 'invis' to change whether an explosion effect appears, or 'scatter' and 'no scatter' if you want to scatter tokens away from the explosion/implosion point more randomly.
 +
 
 +
==See Also==
 +
* [[Script:It's a Trap]] can be used with KABOOM
 +
 
 +
[[Category:API User Documentation]]
 +
[[Category:API Commands]]

Latest revision as of 10:57, 18 February 2022

API ScriptAuthor: PaprikaCC
Version: 1.2
Last Modified: 2017-02-17
Code: KABOOM
Dependencies: PathMath, Vector Math, MatrixMath
Conflicts: None

Main Page: API:Script Index

A script that displaces tokens based on their size & distance from an explosion or implosion effect. KABOOM is primarily triggered through chat messages, although it also exposes a function so other scripts may use it in automated events, or as a part of some other effect chain.

[edit] General

The basic chat command follows this format:

!KABOOM effect-power [ effect-radius [ options [ --default-options]]] !KABOOM -15 50 no scatter --blood
Making Things Explode with the KABOOM! API

Help Command:

!KABOOM --help

When you use KABOOM as a chat command, you need to have a token selected. ONLY effect-power is required. Everything else is optional.

Full documentation: README.md

  • Parameters
    • effect-power is the strength of the force moving tokens away or towards from the explosion point. It is measured in the same units listed on the page. Effect-power can be negative if you want to pull things towards the object instead of pushing away.
    • effect-radius is the maximum distance that the script search for objects to manipulate. If something is beyond this point, it will not move. Defaults to effect-power * explosion_ratio. This is always parsed as positive.
    • options are either 'vfx', 'no vfx', 'no-vfx', 'invisible', 'invis' to change whether an explosion effect appears, or 'scatter' and 'no scatter' if you want to scatter tokens away from the explosion/implosion point more randomly.

[edit] See Also