Skip to content

Instantly share code, notes, and snippets.

View OranShuster's full-sized avatar

Oran Shuster OranShuster

  • WIX
  • Tel Aviv,Israel
View GitHub Profile
Computer Information:
Manufacturer: ASUS
Model: System Product Name
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: 12th Gen Intel(R) Core(TM) i7-12700F
CPU Family: 0x6
CPU Model: 0x97
@OranShuster
OranShuster / gist:41273d9e0b47125036a78ec32a298ff7
Created June 27, 2024 12:52
Foundry VTT macro to calculate pythagorean distance
new Dialog({
title:'Example Dialog',
content:`
<form>
<div class="form-group">
<label>Distance</label>
<input type='text' name='distance'></input>
<label>Height</label>
<input type='text' name='height'></input>
</div>
/*
To use this macro, you just have to target someone and use it.
Added ability to reroll using a hero point when available.
Standby Spell now supported, if you have the feat it will:
1. Set a Standby Spell by calling to the Standby Spell macro, if one hasn't been set yet.
2. Dynamically filter the drop down list to only include spells you can substitute or spells you can spellstrike with,
depending on the current state of the use standby spell toggle.
*/
/* Throw warning if token is not selected*/