Skip to content

Instantly share code, notes, and snippets.

View oukag's full-sized avatar

Kyle Graham oukag

  • Cardinal Financial
View GitHub Profile
var handleammo = function (msg,character,player) {
if(msg.content.indexOf("ammo=") === -1) {
// UNABLE TO FIND AMMO
return;
}
var ammostr;
if(msg.content.indexOf("{{charname=") > -1) {
ammostr = (msg.content.split("ammo=")[1]||'').split(" {{charname=")[0];
}
else {
@oukag
oukag / 5eOGLInventoryTracker.js
Last active March 31, 2018 22:34
5e OGL equipped inventory tracking
/**
* Inventory Tracker for 5e OGL character sheet
*
* Allows for quick access to the equipped items of a character.
*
* Commands:
* !equipShow [--item|<ITEM_NAME> [--charid|<CHARACTER_ID>]]
* Shows the equipped item(s) for the character that belongs to the selected token.
* If no arguments are given, displays all equipped items of the character representing the selected token.
*
@oukag
oukag / 5e OGL monster manual saving throw macro
Last active August 22, 2017 14:55
5e OGL monster manual saving throw macro
@{wtype} &{template:default}{{name=Saving Throws}}{{Str Save=[[1d20+[[@{npcd_str_mod}*{1@{npc_str_save}0,0}=10+0@{npcd_str_save}]]]]|[[1d20+[[@{npcd_str_mod}*{1@{npcd_str_save}0,0}=10+0@{npcd_str_save}]]]]}}{{Dex Save=[[1d20+[[@{npcd_dex_mod}*{1@{npc_dex_save}0,0}=10+0@{npcd_dex_save}]]]]|[[1d20+[[@{npcd_dex_mod}*{1@{npcd_dex_save}0,0}=10+0@{npcd_dex_save}]]]]}}{{Con Save=[[1d20+[[@{npcd_con_mod}*{1@{npc_con_save}0,0}=10+0@{npcd_con_save}]]]]|[[1d20+[[@{npcd_con_mod}*{1@{npcd_con_save}0,0}=10+0@{npcd_con_save}]]]]}}{{Int Save=[[1d20+[[@{npcd_int_mod}*{1@{npc_int_save}0,0}=10+0@{npcd_int_save}]]]]|[[1d20+[[@{npcd_int_mod}*{1@{npcd_int_save}0,0}=10+0@{npcd_int_save}]]]]}}{{Wis Save=[[1d20+[[@{npcd_wis_mod}*{1@{npc_wis_save}0,0}=10+0@{npcd_wis_save}]]]]|[[1d20+[[@{npcd_wis_mod}*{1@{npcd_wis_save}0,0}=10+0@{npcd_wis_save}]]]]}}{{Cha Save=[[1d20+[[@{npcd_cha_mod}*{1@{npc_cha_save}0,0}=10+0@{npcd_cha_save}]]]]|[[1d20+[[@{npcd_cha_mod}*{1@{npcd_cha_save}0,0}=10+0@{npcd_cha_save}]]]]}}