This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on("ready",function(){ | |
on("change:campaign:playerpageid",function(){ | |
setTimeout(function(){ | |
pingStartToken(); | |
},1500); | |
}); | |
on("chat:message",function(msg){ | |
if(msg.type=="api" && msg.content.indexOf("!pingStart")==0){ | |
pingStartToken(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!power {{ | |
--name|Ray of Frost | |
--leftsub|Ranged Spell Attack | |
--rightsub|60 ft Range | |
--npc_qualities_summary @{target|character_id} | |
--Attack:|[[ [$Atk] ?{Attack|Standard,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1} + @{spell_attack_bonus} ]] vs AC @{target|AC} | |
--?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? Damage:|[[ [$Dmg] 2d8 ]] | |
--?? $Atk.base == 20 ?? Critical Hit|[[ [$CritDmg] 4d8 ]] | |
--soundfx|_audio,play,nomenu|freezeRay | |
--vfx_opt|@{selected|token_id} @{target|token_id} beam-frost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on("chat:message", function(msg) | |
{ | |
if (msg.type == "api" && msg.content.indexOf("!customSpellbook") == 0){ | |
var args = msg.content.split(/\s+/); | |
var spellName = args[1].toLowerCase(); | |
var spellLevel = Number(args[2]); | |
var tokenid = msg.selected[0]._id; | |
var token = getObj("graphic",tokenid); | |
var charID = token.get("represents"); | |
var tokenName = token.get("name"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function updateRoll20AM(){ | |
sendChat("API","!roll20AM --config,remove"); | |
sendChat("API","!roll20AM --config,import"); | |
} | |
on("add:jukeboxtrack",function(){ | |
updateRoll20AM(); | |
}); | |
on("change:jukeboxtrack",function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on("ready",function(){ | |
on("change:campaign:playerpageid",function(){ | |
log("Here") | |
setTimeout(function(){ | |
pingStartToken(); | |
},1500); | |
}); | |
on("chat:message",function(msg){ | |
if(msg.type=="api" && msg.content.indexOf("!pingStart")==0){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on("ready",function(){ | |
on("chat:message",function(msg){ | |
if(msg.type=="api" && msg.content.indexOf("!gatherRumors")==0){ | |
var args = msg.content.split("--"); | |
var PC = args[1].trim(); | |
var NPC = args[2].trim(); | |
var checkType = args[3].trim().toLowerCase(); | |
var npcToken = getObj("graphic",NPC); | |
var pcSheet = getObj("character",PC); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on("ready",function(){ | |
on("chat:message",function(msg){ | |
if(msg.type=="api" && msg.content.indexOf("!ouija")==0){ | |
let args = msg.content.split("--"); | |
let commandText = args[1].trim().toLowerCase(); | |
let params = commandText.split("|"); | |
let command = params[0]; | |
let commandValue = params[1]; | |
let ouijaPage = findObjs({type:"page",name:"ouija"})[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on("chat:message",function(msg){ | |
if(msg.type=="api" && msg.content=="!partyMover"){ | |
buildPartyMoverMacro(); | |
} | |
}); | |
on("change:page:name",function(){ | |
buildPartyMoverMacro(); | |
sendChat("API","!mc refresh"); | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Great Weapon Fighting | |
&{template:default} {{name=Great Weapon Fighting}} {{Attack=[[1d20 + @{strength_mod}[STR] + @{pb}[PB]]] | [[1d20 + @{strength_mod}[STR] + @{pb}[PB]]]}} {{Standard Damage=[[ 2d6ro<2 + @{strength_mod}]]}} {{Crit (if applicable)=[[2d6ro<2]]}} | |
Halo of Spores | |
&{template:default} {{name=Halo of Spores}} {{Necrotic Damage=[[1d[[4 + 2 * {6, 10, 14}<@{level}]]]] }} {{Saving Throw = @{spell_save_dc} CON Save negates}} | |
Eldritch Blast | |
&{template:default} {{name=Eldritch Blast}} {{Attack = [[1d20ro1 + @{charisma_mod}]]}} {{Damage=[[ 1d10 + @{charisma_mod} [AgonizingBlast]+ @{pb} [Thunder] ]]}} | |
/fx beam-death @{selected|token_id} @{target|token_id} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on("ready",function() | |
{ | |
on("chat:message",function(msg){ | |
if(msg.type=="api" && msg.content.indexOf("!spiritualWeapon")==0 && playerIsGM(msg.playerid)) | |
{ | |
var selected = msg.selected; | |
if (selected===undefined) | |
{ | |
sendChat("API","Please select a character."); | |
return; |
OlderNewer