Skip to content

Instantly share code, notes, and snippets.

View RobinKuiper's full-sized avatar

Robin Kuiper RobinKuiper

View GitHub Profile
@RobinKuiper
RobinKuiper / combattracker.js
Created March 30, 2022 09:29
Combat Tracker v0.2.6 - D6
/*
* Version 0.2.6
* Made By Robin Kuiper
* Changes in Version 0.2.1, 0.2.6 by The Aaron
* Skype: RobinKuiper.eu
* Discord: Atheos#1095
* My Discord Server: https://discord.gg/AcC9VME
* Roll20: https://app.roll20.net/users/1226016/robin
* Roll20 Thread: https://app.roll20.net/forum/post/6349145/script-combattracker
* Github: https://github.com/RobinKuiper/Roll20APIScripts
{
"name": "dnd5e",
"title": "DnD5e - Fifth Edition System",
"description": "A system for playing the fifth edition of the worlds most popular role-playing game in the Foundry Virtual Tabletop environment.",
"version": "1.1.1",
"author": "Atropos",
"scripts": [],
"esmodules": ["dnd5e.js"],
"styles": ["dnd5e.css"],
"packs": [
CommandInvokationFailure: Gradle build failed.
F:\Software\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\OpenJDK\Windows\bin\java.exe -classpath "F:\Software\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.6.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
stderr[
D8: Program type already present: android.arch.core.internal.SafeIterableMap$Entry
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':transformDexArchiveWithExternalLibsDexMergerForRelease'.
/*
* Version 0.2.6
* Made By Robin Kuiper
* Changes in Version 0.2.1 by The Aaron
* Skype: RobinKuiper.eu
* Discord: Atheos#1095
* My Discord Server: https://discord.gg/AcC9VME
* Roll20: https://app.roll20.net/users/1226016/robin
* Roll20 Thread: https://app.roll20.net/forum/post/6349145/script-combattracker
* Github: https://github.com/RobinKuiper/Roll20APIScripts
{"config":{"command":"condition","sendOnlyToGM":false,"showDescOnStatusChange":true,"showIconInDescription":true},"conditions":{"blinded":{"name":"Blinded","description":"<p>A blinded creature can’t see and automatically fails any ability check that requires sight.</p> <p>Attack rolls against the creature have advantage, and the creature’s Attack rolls have disadvantage.</p>","icon":"bleeding-eye"},"charmed":{"name":"Charmed","description":"<p>A charmed creature can’t Attack the charmer or target the charmer with harmful Abilities or magical effects.</p> <p>The charmer has advantage on any ability check to interact socially with the creature.</p>","icon":"broken-heart"},"deafened":{"name":"Deafened","description":"<p>A deafened creature can’t hear and automatically fails any ability check that requires hearing.</p>","icon":"edge-crack"},"frightened":{"name":"Frightened","description":"<p>A frightened creature has disadvantage on Ability Checks and Attack rolls while the source of its fear is within line of si
/*
* Version 0.1.0
* Made By Robin Kuiper
* Skype: RobinKuiper.eu
* Discord: Atheos#1014
* Roll20: https://app.roll20.net/users/1226016/robin-k
* Github: https://github.com/RobinKuiper/Roll20APIScripts
* Reddit: https://www.reddit.com/user/robinkuiper/
* Patreon: https://patreon.com/robinkuiper
* Paypal.me: https://www.paypal.me/robinkuiper
&{template:npcaction} {{name=@{selected|token_name} }} {{rname=Shapeshift}} {{description=[Normal](!token-mod --set currentside|1 width|70 height|70 light_radius|60 light_dimradius|0 light_angle|360 --off light_otherplayers @{selected|token_id})
[Tiger](!token-mod --set currentside|4 width|140 height|140 light_radius|60 light_dimradius|0 light_angle|360 --off light_otherplayers @{selected|token_id}) }}
// Fire when the turnorder is changed.
on('change:campaign:turnorder', (obj, prev) => {
// Check if the turnorder is changed, otherwise cancel
if(obj.get('turnorder') === prev.turnorder) return;
// Parse the turnorder to an object, and sort it Ascending.
let turnorder = JSON.parse(obj.get('turnorder')).sort((a,b) => { return a.pr - b.pr });
// Set the new turnorder order.
obj.set('turnorder', JSON.stringify(turnorder));
!token-mod ?{Status|Concentrating, --set statusmarkers#!blue|Readying, --set statusmarkers#!stopwatch|-, |Blinded, --set statusmarkers#!bleeding-eye --flip light_hassight|Charmed, --set statusmarkers#!broken-heart|Deafened, --set statusmarkers#!edge-crack|Frightened, --set statusmarkers#!screaming|Grappled, --set statusmarkers#!grab|Invisibility, --set statusmarkers#!ninja-mask|Incapacitated, --set statusmarkers#!interdiction|Paralyzed, --set statusmarkers#!pummeled|Petrified, --set statusmarkers#!frozen-orb|Poisoned, --set statusmarkers#!chemical-bolt|Prone, --set statusmarkers#!back-pain|Restrained, --set statusmarkers#!fishing-net|Stunned, --set statusmarkers#!fist|Unconscious, --set statusmarkers#!sleepy|-, |Blessed, --set statusmarkers#!angel-outfit|Raging, --set statusmarkers#!overdrive|Marked, --set statusmarkers#!archery-target|-, |Dead, --set statusmarkers#=dead|-, |Clear Conditions, --set statusmarkers#-bleeding-eye#-broken-heart#-edge-crack#-screaming#-grab#-pummeled#-aura#-chemical-bolt#-back-pain
/w GM &{template:npcaction} {{rname=@{selected|Token_name} Status Board}} {{description=[Blinded](!token-mod --set statusmarkers|!bleeding-eye --flip light_hassight)
• A blinded creature can’t see and automatically fails any ability check that requires sight.
• Attack rolls against the creature have advantage, and the creature’s attack rolls have disadvantage.
[Charmed](!token-mod --set statusmarkers|!broken-heart)
• A charmed creature can't attack the charmer or target the charmer with harmful abilities or magical effects.
• The charmer has advantage on any ability check to interact socially with the creature.
[Deafened](!token-mod --set statusmarkers|!edge-crack)
• A deafened creature can’t hear and automatically fails any ability check that requires hearing.
[Frightened](!token-mod --set statusmarkers|!screaming)
• A frightened creature has disadvantage on ability checks and attack rolls while the source of its fear is within line of sight.