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
​// ==UserScript==
// @name betteR20-5etools
// @namespace https://5e.tools/
// @license MIT (https://opensource.org/licenses/MIT)
// @version 1.16.21
// @updateURL https://get.5e.tools/script/betteR20-5etools.user.js
// @downloadURL https://get.5e.tools/script/betteR20-5etools.user.js
// @description Enhance your Roll20 experience
// @author 5egmegaanon/astranauta/MrLabRat/TheGiddyLimit/DBAWiseMan/BDeveau/Remuz/Callador Julaan/Erogroth/Stormy/FlayedOne
' Title1 style => text size = +5
Sub bbcodeTitle1()
Dim i As Integer
Dim aRange As Range
For i = 1 To ActiveDocument.Paragraphs.Count
If ActiveDocument.Paragraphs(i).style = ActiveDocument.Styles(wdStyleHeading1) Then
ActiveDocument.Paragraphs(i).style = wdStyleNormal
Set aRange = ActiveDocument.Range(Start:=ActiveDocument.Paragraphs(i).Range.Start, End:=ActiveDocument.Paragraphs(i).Range.End - 1)
Option Explicit
Declare Function GlobalUnlock Lib "kernel32" (ByVal hMem As Long) As Long
Declare Function GlobalLock Lib "kernel32" (ByVal hMem As Long) As Long
Declare Function GlobalAlloc Lib "kernel32" (ByVal wFlags As Long, ByVal dwBytes As Long) As Long
Declare Function CloseClipboard Lib "User32" () As Long
Declare Function OpenClipboard Lib "User32" (ByVal hwnd As Long) As Long
Declare Function EmptyClipboard Lib "User32" () As Long
Declare Function lstrcpy Lib "kernel32" (ByVal lpString1 As Any, ByVal lpString2 As Any) As Long
Declare Function SetClipboardData Lib "User32" (ByVal wFormat As Long, ByVal hMem As Long) As Long
Public Const GHND = &H42
@palikhov
palikhov / outlook-signature-update.vbs
Created February 4, 2021 00:07 — forked from Warsaalk/outlook-signature-update.vbs
Outlook signature distribution logon script - Template
' Global variables
Set objShell = CreateObject("WScript.Shell")
Set objUser = CreateObject("ADSystemInfo")
Set objCurrentUser = GetObject("LDAP://" & objUser.UserName)
' Outlook signature location, for Outlook 2010, 2013 & 2016
appData = objShell.ExpandEnvironmentStrings("%APPDATA%")
outlookSignatures = appData & "\Microsoft\Signatures"
' Signature locations
@palikhov
palikhov / outlook_ADsign.vbs
Created February 4, 2021 00:34 — forked from kvantor/outlook_ADsign.vbs
Скрипт создания корпоративной подписи и наведения порядка в MS Outlook
' Скрипт создания корпоративной подписи и наведения порядка в MS Outlook
' Работает в Outlook 2000 - 2010.
' Делает очень полезные вещи:
' - Выставляет имя отправителя почты из поля DisplayName в домене
' - Отключает HTML-просмотр писем и отправку писем в HTML.
' - Создаёт простую текстовую подпись и выставляет её для всех учеток.
' Если есть вопросы или жгучее желание дать мне денег\набить морду -
' моя электропочта [email protected] .
' Конфигурационные параметры:
@palikhov
palikhov / lay_on_hands
Created May 21, 2021 19:29
Foundry lay on hands macro
/**
* System: D&D5e
* Apply lay-on-hands feat to a target character. Asks the player how many HP to heal and
* verifies the entered value is within range before marking down usage counter. If the player
* has OWNER permissions of target (such as GM or self-heal) the HP are applied automatically;
* otherwise, a 'roll' message appears allowing the target character to right-click to apply healing.
*/
let confirmed = false;
let actorData = actor || canvas.tokens.controlled[0] || game.user.character;
@palikhov
palikhov / smite
Created May 21, 2021 19:30
Foundry smite macro
/*
* The Smite macro emulates the Divine Smite feature of Paladins in DnD 5e. A spell slot level to use
* can be selected, which increases the number of damage dice, and smiting a fiend or undead
* will also increase the number of damage dice.
*
* If a token is not selected, the macro will default back to the default character for the Actor.
* This allows for the GM to cast the macro on behalf a character that possesses it,
* without requiring that a PC have their character selected.
* To execute the macro a target MUST be specified and, unless configured otherwise, the character must have an available spell slot.
* Make your regular attack and then if you choose to use Divine Smite, run this macro.
@palikhov
palikhov / animate_objects
Created May 21, 2021 19:37
Foundry Animate objects attack macro
/*
* Animate Object Attacks.
* Initial version stolen from somewhere but I forgot from where
*/
const details = {
"e-blast" : { "size": 1, "atk": 11, "dmg": "1d10 + 5" },
};
// Use select token or some defaults if nothing is selected.
const actorData = actor || canvas.tokens.controlled[0] || game.user.character;
@palikhov
palikhov / gist:4efac3e53b135788399bc9356be76996
Created November 3, 2021 19:11 — forked from tawilliams/gist:ad613962b9a298d54ba2baf77cf0d494
Waterdeep interactive website import to Foundry VTT (First Function is to define wait, Second function, between comments, is folder code grabber)
async function wait (ms) {
return new Promise(resolve=>{
setTimeout(resolve,ms);
});
}
/* utility to get my existing folder names + IDs
game.folders.forEach((value) => {
console.log(value.data.name + " " + value.data._id)
})
@palikhov
palikhov / 2Eto5E-conversion-summary.md
Created November 3, 2021 23:50 — forked from petersgiles/2Eto5E-conversion-summary.md
2E to 5E simple conversion guidelines

Updated 10 February 2015 (added link to Monster Traits and Actions)

This is the third in my series of conversion documents for D&D 5th Edition. (You can find the one for Next here and the one for 3.5/3E/Pathfinder here.) I created this document by comparing the 5E versions of monsters from the Monster Manual with their 2E counterparts. I also referred to two sources for converting monsters from 2E to 3E: Wizards’ official