Skip to content

Instantly share code, notes, and snippets.

View palikhov's full-sized avatar
🐉
E5E / SRD 5.1 rus / Excel GM Tools

Anton Palikhov palikhov

🐉
E5E / SRD 5.1 rus / Excel GM Tools
View GitHub Profile
@palikhov
palikhov / global_macros.txt
Created January 4, 2022 06:54 — forked from heysl/global_macros.txt
Roll20.net - useful Macros
*** Based on "D&D 5E by Roll20" Character Sheet v4.21 (https://wiki.roll20.net/D%26D_5E_by_Roll20) ***
! Select token to use !
! Don't forget to set 'In Bar' option in global macros list !
Initiative
%{selected|npc_init}
Resistances/Immunities
/w gm &{template:default} {{name=DR/Immunities: @{selected|npc_name}}} {{Dmg Resistance= @{selected|npc_resistances}}} {{Dmg Vulnerability= @{selected|npc_vulnerabilities}}} {{Dmg Immunity= @{selected|npc_immunities}}} {{Condition Immunity= @{selected|npc_condition_immunities}}}
@palikhov
palikhov / Spells - Druid
Created January 4, 2022 06:55 — forked from bradleyallanpatterson/Spells - Druid
Generic Roll20 Character Macro for spells - druid spells
/w @{character_name} &{template:atk} {{desc=**Spells**
**1st:**
**2nd:**
**3rd:**
**4th:**
@palikhov
palikhov / Spells - Paladin
Created January 4, 2022 06:55 — forked from bradleyallanpatterson/Spells - Paladin
Generic Roll20 Character Macro for spells - paladin spells
/w @{character_name} &{template:atk} {{desc=**Spells**
**1st:**
[Searing Smite](!
%{@{selected|character_name}|Spell_1_SearingSmite})
[Thunderous Smite](!
%{@{selected|character_name}|Spell_1_ThunderSmite})
}}
@palikhov
palikhov / Spells - Cleric
Created January 4, 2022 06:55 — forked from bradleyallanpatterson/Spells - Cleric
Generic Roll20 Character Macro for spells - cleric spells
/w @{character_name} &{template:atk} {{desc=**Spells**
**Cantrips:**
**1st:**
[Searing Smite](!
%{@{selected|character_name}|Spell_1_SearingSmite})
[Thunderous Smite](!
%{@{selected|character_name}|Spell_1_ThunderSmite})
**2nd:**
[Spiritual Weapon](!
%{@{selected|character_name}|Spell_2_SpiritualWeapon})
@palikhov
palikhov / Spells - Ranger
Created January 4, 2022 06:55 — forked from bradleyallanpatterson/Spells - Ranger
Generic Roll20 Character Macro for spells - ranger spells
/w @{character_name} &{template:atk} {{desc=**Spells**
**1st:**
[Cure Wounds](!
%{@{selected|character_name}|Spell_1_CureWounds})
[Detect Magic](!
%{@{selected|character_name}|Spell_1_Detect_Magic})
[Disguise Self](!
%{@{selected|character_name}|Spell_1_Disquise_Self})
[Detect Poison And Disease](!
%{@{selected|character_name}|Spell_1_Detect_Poison_Disease})
}}
@palikhov
palikhov / Spells - Wizard
Created January 4, 2022 06:55 — forked from bradleyallanpatterson/Spells - Wizard
Generic Roll20 Character Macro for spells - wizard spells
/w @{character_name} &{template:atk} {{desc=**Spellbook**
**Cantrips:**
[Chill Touch](!
%{@{selected|character_name}|Spell_0_ChillTouch})
[Fire Bolt](!
%{@{selected|character_name}|Spell_0_FireBolt})
**1st:**
[Burning Hands](!
%{@{selected|character_name}|Spell_1_BurningHands})
[Chromatic Orb](!
%{@{selected|character_name}|Spell_1_Chromatic_Orb})
[Magic Missile](!
%{@{selected|character_name}|Spell_1_MagicMissile})
@palikhov
palikhov / Character Stats
Created January 4, 2022 06:55 — forked from bradleyallanpatterson/Character Stats
Generic Roll20 Character Macro for skills initiative and saving throws
/w gm &{template:npcaction}{{rname=@{selected|character_name}}}{{name=@{selected|npc_type}
**HP: **@{selected|bar1} / @{selected|hp|max} | ** AC: ** @{selected|ac} | **Spd: ** @{selected|speed}
}}{{description=
[Initiative](~selected|INITIATIVE)
****
**Abilities**
[**Str @{selected|strength}** *(@{selected|strength_mod})*](~selected|npc_str) | [save](~selected|npc_str_save)
[**Dex @{selected|dexterity}** *(@{selected|dexterity_mod})*](~selected|npc_dec) | [save](~selected|npc_dex_save)
[**Con @{selected|constitution}** *(@{selected|constitution_mod})*](~selected|npc_con) | [save](~selected|npc_con_save)
[**Int @{selected|intelligence}** *(@{selected|intelligence_mod})*](~selected|npc_int) | [save](~selected|npc_int_save)
@palikhov
palikhov / spiritualWeapon.js
Created January 4, 2022 06:55 — forked from nolivo/spiritualWeapon.js
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;
!chatmenu @{selected|character_id} {template:npcaction}{{rname=@{selected|character_name}}}{{name=@{selected|npc_type}
**HP: **@{selected|bar1} / @{selected|hp|max} | ** AC: ** @{selected|npc_ac} | **Spd: ** @{selected|npc_speed}
**Languages: **@{selected|npc_languages}
**Senses: **@{selected|npc_senses}
 **Resists:: **@{selected|npc_resistances}
 **Immune: **@{selected|npc_immunities}
 **Cond. Immune: **@{selected|npc_condition_immunities}}}{{description=CHATMENU}} --separator: | --title:Ability Rolls --**Str @{selected|strength}** *(@{selected|strength_mod})* ,strength|**Dex @{selected|dexterity}** *(@{selected|dexterity_mod})*,dexterity|**Con @{selected|constitution}** *(@{selected|constitution_mod})* ,constitution|**Int @{selected|intelligence}** *(@{selected|intelligence_mod})* ,intelligence|**Wis @{selected|wisdom}** *(@{selected|wisdom_mod})*,wisdom|**Cha @{selected|charisma}** *(@{selected|charisma_mod})*,charisma --title:Saving Throws --Str,npc_str_save|Dex,npc_dex_save|Con,npc_con_save|Int,npc_in
!chatmenu @{selected|character_id} {template:npcaction}{{rname=@{selected|character_name}}}{{name=@{selected|class_display}
@{selected|race_display}, @{selected|background}
**Jump** - Long [[(@{selected|strength}/2)]] / [[@{selected|strength}]]ft. | High [[((@{selected|strength_mod}+2)/2)]] / [[@{selected|strength_mod}+2]] ft.
**HP: **@{selected|hp} / @{selected|hp|max} | ** AC: ** @{selected|ac} | **Spd: ** @{selected|speed} | **Passive: ** @{selected|passive_wisdom}}}{{description=CHATMENU }} --separator: |   --title:Ability Rolls --**Str @{selected|strength}** *(@{selected|strength_mod})* ,strength|**Dex @{selected|dexterity}** *(@{selected|dexterity_mod})*,dexterity|**Con @{selected|constitution}** *(@{selected|constitution_mod})* ,constitution|**Int @{selected|intelligence}** *(@{selected|intelligence_mod})* ,intelligence|**Wis @{selected|wisdom}** *(@{selected|wisdom_mod})*,wisdom|**Cha @{selected|charisma}** *(@{selected|charisma_mod})*,charisma --title:Saving Throws --Str,strength_save|Dex,dexterity_