Skip to content

Instantly share code, notes, and snippets.

View joewetmore's full-sized avatar

JoeWetmore joewetmore

  • Denver, CO
View GitHub Profile
@nolivo
nolivo / spiritualWeapon.js
Last active January 4, 2022 06:55
A script for use with Roll20 to summon a spiritual weapon to the right of a selected character's token
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;
// Github: https://gist.github.com/finalfrog/124f67ad84204546caf16fffd84115e4
//
// =Inspired by=
// MapChange by TheWhiteWolves (https://github.com/TheWhiteWolves/MapChange.git)
// Teleporter Without Movement Tracker by DarokinB (https://gist.github.com/DarokinB/5806230)
// =Author=
// FinalFrog
// =Contact=
// https://app.roll20.net/users/585874/finalfrog
//