- Moved wizard spell list to data lists

- Pulled out wizard template to separate file for later inserts. Easier to handle all sections
- Updated combine file to also handle adding correct white spacing for inserts
This commit is contained in:
Peter Bjerg Mogensen
2021-02-05 16:44:28 +01:00
parent 6523576052
commit bdeb2be036
6 changed files with 449 additions and 592 deletions
+216 -227
View File
@@ -3524,61 +3524,11 @@
<div class="sheet-flex-wrap">
<fieldset name="repeating_spells-wiz1" class="repeating_spells-wiz1">
<div class="sheet-flex-item">
<table class="sheet-default-header-every-third-column">
<table>
<tr>
<td>Spell name:</td>
<td>
<select name="attr_spell-select" title="@{repeating_spells-wiz1_$X_spell-select}" class="sheet-spell-select">
<option value="0" selected="selected">Custom</option>
<option value="Affect Normal Fires">Affect Normal Fires</option>
<option value="Alarm">Alarm</option>
<option value="Armor">Armor</option>
<option value="Audible Glamer">Audible Glamer</option>
<option value="Burning Hands">Burning Hands</option>
<option value="Cantrip">Cantrip</option>
<option value="Change Self">Change Self</option>
<option value="Charm Person">Charm Person</option>
<option value="Chill Touch">Chill Touch</option>
<option value="Color Spray">Color Spray</option>
<option value="Comprehend Languages">Comprehend Languages</option>
<option value="Dancing Lights">Dancing Lights</option>
<option value="Detect Magic">Detect Magic</option>
<option value="Detect Undead">Detect Undead</option>
<option value="Enlarge">Enlarge</option>
<option value="Erase">Erase</option>
<option value="Feather Fall">Feather Fall</option>
<option value="Find Familiar">Find Familiar</option>
<option value="Friends">Friends</option>
<option value="Gaze Reflection">Gaze Reflection</option>
<option value="Grease">Grease</option>
<option value="Hold Portal">Hold Portal</option>
<option value="Hypnotism">Hypnotism</option>
<option value="Identify">Identify</option>
<option value="Jump">Jump</option>
<option value="Light">Light</option>
<option value="Magic Missile">Magic Missile</option>
<option value="Mending">Mending</option>
<option value="Message">Message</option>
<option value="Mount">Mount</option>
<option value="Nystu's Magical Aura">Nystu's Magical Aura</option>
<option value="Phantasmal Force">Phantasmal Force</option>
<option value="Protection From Evil">Protection From Evil</option>
<option value="Read Magic">Read Magic</option>
<option value="Shield">Shield</option>
<option value="Shocking Grasp">Shocking Grasp</option>
<option value="Sleep">Sleep</option>
<option value="Spider Climb">Spider Climb</option>
<option value="Spook">Spook</option>
<option value="Taunt">Taunt</option>
<option value="Tenser's Floating Disc">Tenser's Floating Disc</option>
<option value="Unseen Servant">Unseen Servant</option>
<option value="Ventriloquism">Ventriloquism</option>
<option value="Wall of Fog">Wall of Fog</option>
<option value="Wizard Mark">Wizard Mark</option>
</select>
</td>
<td><input type="text" name="attr_spell-name" title="@{repeating_spells-wiz1_$X_spell-name}" class="sheet-spell" placeholder="Spell name"></td>
<td>Casting time:</td>
<td class="sheet-default-header">Spell name:</td>
<td><input type="text" name="attr_spell-name" title="@{repeating_spells-wiz1_$X_spell-name}" class="sheet-spell-big" placeholder="Spell name" list="wiz1-spells"></td>
<td class="sheet-default-header">Casting time:</td>
<td><input type="text" name="attr_spell-cast-time" title="@{repeating_spells-wiz1_$X_spell-cast-time}" class="sheet-short" placeholder="Cast time"></td>
<td><button type="roll" name="roll_spell-init" title="@{repeating_spells-wiz1_$X_spell-init}" value="/gmroll [[{([[1d10]]+@{spell-cast-time}), 1}kh1]] [Initiative (@{spell-name})]&{tracker}">Initiative</button></td>
</tr>
@@ -3794,60 +3744,11 @@
<div class="sheet-flex-wrap">
<fieldset name="repeating_spells-wiz2" class="repeating_spells-wiz2">
<div class="sheet-flex-item">
<table class="sheet-default-header-every-third-column">
<table>
<tr>
<td>Spell name:</td>
<td>
<select name="attr_spell-select" title="@{repeating_spells-wiz2_$X_spell-select}" class="sheet-spell-select">
<option value="0" selected="selected">Custom</option>
<option value="Alter Self">Alter Self</option>
<option value="Bind">Bind</option>
<option value="Blindness">Blindness</option>
<option value="Blur">Blur</option>
<option value="Choke">Choke</option>
<option value="Continual Light">Continual Light</option>
<option value="Darkness, 15' Radius">Darkness, 15' Radius</option>
<option value="Deafness">Deafness</option>
<option value="Deeppockets">Deeppockets</option>
<option value="Detect Evil">Detect Evil</option>
<option value="Detect Invisibility">Detect Invisibility</option>
<option value="ESP">ESP</option>
<option value="Flaming Sphere">Flaming Sphere</option>
<option value="Fog Cloud">Fog Cloud</option>
<option value="Fools' Gold">Fools' Gold</option>
<option value="Forget">Forget</option>
<option value="Glitterdust">Glitterdust</option>
<option value="Hypnotic Pattern">Hypnotic Pattern</option>
<option value="Improved Phantasmal Force">Improved Phantasmal Force</option>
<option value="Invisibility">Invisibility</option>
<option value="Irritation">Irritation</option>
<option value="Knock">Knock</option>
<option value="Know Alignment">Know Alignment</option>
<option value="Leomund's Trap">Leomund's Trap</option>
<option value="Levitate">Levitate</option>
<option value="Locate Object">Locate Object</option>
<option value="Magic Mouth">Magic Mouth</option>
<option value="Melf's Acid Arrow">Melf's Acid Arrow</option>
<option value="Mirror Image">Mirror Image</option>
<option value="Misdirection">Misdirection</option>
<option value="Protection From Cantrips">Protection From Cantrips</option>
<option value="Pyrotechnics">Pyrotechnics</option>
<option value="Ray of Enfeeblement">Ray of Enfeeblement</option>
<option value="Rope Tricks">Rope Tricks</option>
<option value="Scare">Scare</option>
<option value="Shatter">Shatter</option>
<option value="Spectral Hand">Spectral Hand</option>
<option value="Stinking Cloud">Stinking Cloud</option>
<option value="Strength">Strength</option>
<option value="Summon Swarm">Summon Swarm</option>
<option value="Tasha's Uncontrollable Hideous Laughter">Tasha's Uncontrollable Hideous Laughter</option>
<option value="Web">Web</option>
<option value="Whispering Wind">Whispering Wind</option>
<option value="Wizard Lock">Wizard Lock</option>
</select>
</td>
<td><input type="text" name="attr_spell-name" title="@{repeating_spells-wiz2_$X_spell-name}" class="sheet-spell" placeholder="Spell name"></td>
<td>Casting time:</td>
<td class="sheet-default-header">Spell name:</td>
<td><input type="text" name="attr_spell-name" title="@{repeating_spells-wiz2_$X_spell-name}" class="sheet-spell-big" placeholder="Spell name" list="wiz2-spells"></td>
<td class="sheet-default-header">Casting time:</td>
<td><input type="text" name="attr_spell-cast-time" title="@{repeating_spells-wiz2_$X_spell-cast-time}" class="sheet-short" placeholder="Cast time"></td>
<td><button type="roll" name="roll_spell-init" title="@{repeating_spells-wiz2_$X_spell-init}" value="/gmroll [[{([[1d10]]+@{spell-cast-time}), 1}kh1]] [Initiative (@{spell-name})]&{tracker}">Initiative</button></td>
</tr>
@@ -3865,45 +3766,43 @@
</tr>
</table>
<input type="checkbox" class="sheet-show-spell-details sheet-show-spell-hack" title="Show spell details"/><span class="sheet-show-spell-hack"></span><label class="sheet-show-spell-hack">Show spell details</label>
<div class="sheet-spell-details">
<table class="sheet-default-header-odd-column">
<tr>
<td>Level:</td>
<td><input type="text" name="attr_spell-level" title="@{repeating_spells-wiz2_$X_spell-level}" class="sheet-spell-half" placeholder="Spell level"></td>
<td>School:</td>
<td><input type="text" name="attr_spell-school" title="@{repeating_spells-wiz2_$X_spell-school}" class="sheet-spell-half" placeholder="School"></td>
<td>Compoenets:</td>
<td><input type="text" name="attr_spell-components" title="@{repeating_spells-wiz2_$X_spell-components}" class="sheet-spell-half" placeholder="Components"></td>
</tr>
<tr>
<td>Range:</td>
<td><input type="text" name="attr_spell-range" title="@{repeating_spells-wiz2_$X_spell-range}" class="sheet-spell-half" placeholder="Range"></td>
<td>Area of Effect:</td>
<td><input type="text" name="attr_spell-aoe" title="@{repeating_spells-wiz2_$X_spell-aoe}" class="sheet-spell-half" placeholder="Area of Effect"></td>
<td>Duration:</td>
<td><input type="text" name="attr_spell-duration" title="@{repeating_spells-wiz2_$X_spell-duration}" class="sheet-spell-half" placeholder="Duration"></td>
</tr>
<tr>
<td>Damage:</td>
<td><input type="text" name="attr_spell-damage" title="@{repeating_spells-wiz2_$X_spell-damage}" class="sheet-spell-half" placeholder="[[Damage]]"></td>
<td>Damage type:</td>
<td><input type="text" name="attr_spell-damage-type" title="@{repeating_spells-wiz2_$X_spell-damage-type}" class="sheet-spell-half" placeholder="Damage type"></td>
<td>Saving throw:</td>
<td><input type="text" name="attr_spell-saving-throw" title="@{repeating_spells-wiz2_$X_spell-saving-throw}" class="sheet-spell-half" placeholder="Saving Throw"></td>
</tr>
<tr>
<td>Healing:</td>
<td><input type="text" name="attr_spell-healing" title="@{repeating_spells-wiz2_$X_spell-healing}" class="sheet-spell-half" placeholder="[[Healing]]"></td>
<td>Materials:</td>
<td><input type="text" name="attr_spell-materials" title="@{repeating_spells-wiz2_$X_spell-materials}" class="sheet-spell-half" placeholder="Materials"></td>
<td>Book reference:</td>
<td><input type="text" name="attr_spell-reference" title="@{repeating_spells-wiz2_$X_spell-reference}" class="sheet-spell-half" placeholder="Book Reference"></td>
</tr>
</table>
</div>
<table class="sheet-default-header-odd-column sheet-spell-details">
<tr>
<td>Level:</td>
<td><input type="text" name="attr_spell-level" title="@{repeating_spells-wiz2_$X_spell-level}" class="sheet-spell-half" placeholder="Spell level"></td>
<td>School:</td>
<td><input type="text" name="attr_spell-school" title="@{repeating_spells-wiz2_$X_spell-school}" class="sheet-spell-half" placeholder="School"></td>
<td>Compoenets:</td>
<td><input type="text" name="attr_spell-components" title="@{repeating_spells-wiz2_$X_spell-components}" class="sheet-spell-half" placeholder="Components"></td>
</tr>
<tr>
<td>Range:</td>
<td><input type="text" name="attr_spell-range" title="@{repeating_spells-wiz2_$X_spell-range}" class="sheet-spell-half" placeholder="Range"></td>
<td>Area of Effect:</td>
<td><input type="text" name="attr_spell-aoe" title="@{repeating_spells-wiz2_$X_spell-aoe}" class="sheet-spell-half" placeholder="Area of Effect"></td>
<td>Duration:</td>
<td><input type="text" name="attr_spell-duration" title="@{repeating_spells-wiz2_$X_spell-duration}" class="sheet-spell-half" placeholder="Duration"></td>
</tr>
<tr>
<td>Damage:</td>
<td><input type="text" name="attr_spell-damage" title="@{repeating_spells-wiz2_$X_spell-damage}" class="sheet-spell-half" placeholder="[[Damage]]"></td>
<td>Damage type:</td>
<td><input type="text" name="attr_spell-damage-type" title="@{repeating_spells-wiz2_$X_spell-damage-type}" class="sheet-spell-half" placeholder="Damage type"></td>
<td>Saving throw:</td>
<td><input type="text" name="attr_spell-saving-throw" title="@{repeating_spells-wiz2_$X_spell-saving-throw}" class="sheet-spell-half" placeholder="Saving Throw"></td>
</tr>
<tr>
<td>Healing:</td>
<td><input type="text" name="attr_spell-healing" title="@{repeating_spells-wiz2_$X_spell-healing}" class="sheet-spell-half" placeholder="[[Healing]]"></td>
<td>Materials:</td>
<td><input type="text" name="attr_spell-materials" title="@{repeating_spells-wiz2_$X_spell-materials}" class="sheet-spell-half" placeholder="Materials"></td>
<td>Book reference:</td>
<td><input type="text" name="attr_spell-reference" title="@{repeating_spells-wiz2_$X_spell-reference}" class="sheet-spell-half" placeholder="Book Reference"></td>
</tr>
</table>
<table class="sheet-spell-effect">
<tr>
<td class="sheet-spell-effect"><textarea name="attr_spell-effect" title="@{repeating_spells-wiz2_$X_spell-effect}" placeholder="Insert Spell effects." style="margin: 0; height: 60px"></textarea></td>
<td style="width: 100%"><textarea name="attr_spell-effect" title="@{repeating_spells-wiz2_$X_spell-effect}" placeholder="Insert Spell effects." style="margin: 0; height: 60px"></textarea></td>
<td>
<button type="roll" name="roll_spell-cast" title="%{repeating_spells-wiz2_$X_spell-cast}" value="@{spell-effect}" style="margin-bottom: 5px">Roll Spell Effects</button>
<br>
@@ -4065,52 +3964,11 @@
<div class="sheet-flex-wrap">
<fieldset name="repeating_spells-wiz3" class="repeating_spells-wiz3">
<div class="sheet-flex-item">
<table class="sheet-default-header-every-third-column">
<table>
<tr>
<td>Spell name:</td>
<td>
<select name="attr_spell-select" title="@{repeating_spells-wiz3_$X_spell-select}" class="sheet-spell-select">
<option value="0" selected="selected">Custom</option>
<option value="Blink">Blink</option>
<option value="Clairaudience">Clairaudience</option>
<option value="Clairvoyance">Clairvoyance</option>
<option value="Delude">Delude</option>
<option value="Dispel Magic">Dispel Magic</option>
<option value="Explosive Runes">Explosive Runes</option>
<option value="Feign Death">Feign Death</option>
<option value="Fireball">Fireball</option>
<option value="Flame Arrow">Flame Arrow</option>
<option value="Fly">Fly</option>
<option value="Gust of Wind">Gust of Wind</option>
<option value="Haste">Haste</option>
<option value="Hold Person">Hold Person</option>
<option value="Hold Undead">Hold Undead</option>
<option value="Illusionary Script">Illusionary Script</option>
<option value="Infravision">Infravision</option>
<option value="Invisibility, 10\' Radius">Invisibility, 10\' Radius</option>
<option value="Item">Item</option>
<option value="Leomund\'s Tiny Hut">Leomund\'s Tiny Hut</option>
<option value="Lightning Bolt">Lightning Bolt</option>
<option value="Melf\'s Minute Meteors">Melf\'s Minute Meteors</option>
<option value="Monster Summoning I">Monster Summoning I</option>
<option value="Nondetection">Nondetection</option>
<option value="Phantom Steed">Phantom Steed</option>
<option value="Protection from Evil, 10\' Radius">Protection from Evil, 10\' Radius</option>
<option value="Protection From Normal Missiles">Protection From Normal Missiles</option>
<option value="Secret Page">Secret Page</option>
<option value="Sepia Snake Sigil">Sepia Snake Sigil</option>
<option value="Slow">Slow</option>
<option value="Spectral Force">Spectral Force</option>
<option value="Suggestion">Suggestion</option>
<option value="Tongues">Tongues</option>
<option value="Vampiric Touch">Vampiric Touch</option>
<option value="Water Breathing">Water Breathing</option>
<option value="Wind Wall">Wind Wall</option>
<option value="Wraithform">Wraithform</option>
</select>
</td>
<td><input type="text" name="attr_spell-name" title="@{repeating_spells-wiz3_$X_spell-name}" class="sheet-spell" placeholder="Spell name"></td>
<td>Casting time:</td>
<td class="sheet-default-header">Spell name:</td>
<td><input type="text" name="attr_spell-name" title="@{repeating_spells-wiz3_$X_spell-name}" class="sheet-spell-big" placeholder="Spell name" list="wiz3-spells"></td>
<td class="sheet-default-header">Casting time:</td>
<td><input type="text" name="attr_spell-cast-time" title="@{repeating_spells-wiz3_$X_spell-cast-time}" class="sheet-short" placeholder="Cast time"></td>
<td><button type="roll" name="roll_spell-init" title="@{repeating_spells-wiz3_$X_spell-init}" value="/gmroll [[{([[1d10]]+@{spell-cast-time}), 1}kh1]] [Initiative (@{spell-name})]&{tracker}">Initiative</button></td>
</tr>
@@ -4128,45 +3986,43 @@
</tr>
</table>
<input type="checkbox" class="sheet-show-spell-details sheet-show-spell-hack" title="Show spell details"/><span class="sheet-show-spell-hack"></span><label class="sheet-show-spell-hack">Show spell details</label>
<div class="sheet-spell-details">
<table class="sheet-default-header-odd-column">
<tr>
<td>Level:</td>
<td><input type="text" name="attr_spell-level" title="@{repeating_spells-wiz3_$X_spell-level}" class="sheet-spell-half" placeholder="Spell level"></td>
<td>School:</td>
<td><input type="text" name="attr_spell-school" title="@{repeating_spells-wiz3_$X_spell-school}" class="sheet-spell-half" placeholder="School"></td>
<td>Compoenets:</td>
<td><input type="text" name="attr_spell-components" title="@{repeating_spells-wiz3_$X_spell-components}" class="sheet-spell-half" placeholder="Components"></td>
</tr>
<tr>
<td>Range:</td>
<td><input type="text" name="attr_spell-range" title="@{repeating_spells-wiz3_$X_spell-range}" class="sheet-spell-half" placeholder="Range"></td>
<td>Area of Effect:</td>
<td><input type="text" name="attr_spell-aoe" title="@{repeating_spells-wiz3_$X_spell-aoe}" class="sheet-spell-half" placeholder="Area of Effect"></td>
<td>Duration:</td>
<td><input type="text" name="attr_spell-duration" title="@{repeating_spells-wiz3_$X_spell-duration}" class="sheet-spell-half" placeholder="Duration"></td>
</tr>
<tr>
<td>Damage:</td>
<td><input type="text" name="attr_spell-damage" title="@{repeating_spells-wiz3_$X_spell-damage}" class="sheet-spell-half" placeholder="[[Damage]]"></td>
<td>Damage type:</td>
<td><input type="text" name="attr_spell-damage-type" title="@{repeating_spells-wiz3_$X_spell-damage-type}" class="sheet-spell-half" placeholder="Damage type"></td>
<td>Saving throw:</td>
<td><input type="text" name="attr_spell-saving-throw" title="@{repeating_spells-wiz3_$X_spell-saving-throw}" class="sheet-spell-half" placeholder="Saving Throw"></td>
</tr>
<tr>
<td>Healing:</td>
<td><input type="text" name="attr_spell-healing" title="@{repeating_spells-wiz3_$X_spell-healing}" class="sheet-spell-half" placeholder="[[Healing]]"></td>
<td>Materials:</td>
<td><input type="text" name="attr_spell-materials" title="@{repeating_spells-wiz3_$X_spell-materials}" class="sheet-spell-half" placeholder="Materials"></td>
<td>Book reference:</td>
<td><input type="text" name="attr_spell-reference" title="@{repeating_spells-wiz3_$X_spell-reference}" class="sheet-spell-half" placeholder="Book Reference"></td>
</tr>
</table>
</div>
<table class="sheet-default-header-odd-column sheet-spell-details">
<tr>
<td>Level:</td>
<td><input type="text" name="attr_spell-level" title="@{repeating_spells-wiz3_$X_spell-level}" class="sheet-spell-half" placeholder="Spell level"></td>
<td>School:</td>
<td><input type="text" name="attr_spell-school" title="@{repeating_spells-wiz3_$X_spell-school}" class="sheet-spell-half" placeholder="School"></td>
<td>Compoenets:</td>
<td><input type="text" name="attr_spell-components" title="@{repeating_spells-wiz3_$X_spell-components}" class="sheet-spell-half" placeholder="Components"></td>
</tr>
<tr>
<td>Range:</td>
<td><input type="text" name="attr_spell-range" title="@{repeating_spells-wiz3_$X_spell-range}" class="sheet-spell-half" placeholder="Range"></td>
<td>Area of Effect:</td>
<td><input type="text" name="attr_spell-aoe" title="@{repeating_spells-wiz3_$X_spell-aoe}" class="sheet-spell-half" placeholder="Area of Effect"></td>
<td>Duration:</td>
<td><input type="text" name="attr_spell-duration" title="@{repeating_spells-wiz3_$X_spell-duration}" class="sheet-spell-half" placeholder="Duration"></td>
</tr>
<tr>
<td>Damage:</td>
<td><input type="text" name="attr_spell-damage" title="@{repeating_spells-wiz3_$X_spell-damage}" class="sheet-spell-half" placeholder="[[Damage]]"></td>
<td>Damage type:</td>
<td><input type="text" name="attr_spell-damage-type" title="@{repeating_spells-wiz3_$X_spell-damage-type}" class="sheet-spell-half" placeholder="Damage type"></td>
<td>Saving throw:</td>
<td><input type="text" name="attr_spell-saving-throw" title="@{repeating_spells-wiz3_$X_spell-saving-throw}" class="sheet-spell-half" placeholder="Saving Throw"></td>
</tr>
<tr>
<td>Healing:</td>
<td><input type="text" name="attr_spell-healing" title="@{repeating_spells-wiz3_$X_spell-healing}" class="sheet-spell-half" placeholder="[[Healing]]"></td>
<td>Materials:</td>
<td><input type="text" name="attr_spell-materials" title="@{repeating_spells-wiz3_$X_spell-materials}" class="sheet-spell-half" placeholder="Materials"></td>
<td>Book reference:</td>
<td><input type="text" name="attr_spell-reference" title="@{repeating_spells-wiz3_$X_spell-reference}" class="sheet-spell-half" placeholder="Book Reference"></td>
</tr>
</table>
<table class="sheet-spell-effect">
<tr>
<td class="sheet-spell-effect"><textarea name="attr_spell-effect" title="@{repeating_spells-wiz3_$X_spell-effect}" placeholder="Insert Spell effects." style="margin: 0; height: 60px"></textarea></td>
<td style="width: 100%"><textarea name="attr_spell-effect" title="@{repeating_spells-wiz3_$X_spell-effect}" placeholder="Insert Spell effects." style="margin: 0; height: 60px"></textarea></td>
<td>
<button type="roll" name="roll_spell-cast" title="%{repeating_spells-wiz3_$X_spell-cast}" value="@{spell-effect}" style="margin-bottom: 5px">Roll Spell Effects</button>
<br>
@@ -17071,6 +16927,140 @@
<option value="Warhammer"></option>
</datalist>
<datalist id="wiz1-spells">
<option value="Affect Normal Fires"></option>
<option value="Alarm"></option>
<option value="Armor"></option>
<option value="Audible Glamer"></option>
<option value="Burning Hands"></option>
<option value="Cantrip"></option>
<option value="Change Self"></option>
<option value="Charm Person"></option>
<option value="Chill Touch"></option>
<option value="Color Spray"></option>
<option value="Comprehend Languages"></option>
<option value="Dancing Lights"></option>
<option value="Detect Magic"></option>
<option value="Detect Undead"></option>
<option value="Enlarge"></option>
<option value="Erase"></option>
<option value="Feather Fall"></option>
<option value="Find Familiar"></option>
<option value="Friends"></option>
<option value="Gaze Reflection"></option>
<option value="Grease"></option>
<option value="Hold Portal"></option>
<option value="Hypnotism"></option>
<option value="Identify"></option>
<option value="Jump"></option>
<option value="Light"></option>
<option value="Magic Missile"></option>
<option value="Mending"></option>
<option value="Message"></option>
<option value="Mount"></option>
<option value="Nystu's Magical Aura"></option>
<option value="Phantasmal Force"></option>
<option value="Protection From Evil"></option>
<option value="Read Magic"></option>
<option value="Shield"></option>
<option value="Shocking Grasp"></option>
<option value="Sleep"></option>
<option value="Spider Climb"></option>
<option value="Spook"></option>
<option value="Taunt"></option>
<option value="Tenser's Floating Disc"></option>
<option value="Unseen Servant"></option>
<option value="Ventriloquism"></option>
<option value="Wall of Fog"></option>
<option value="Wizard Mark"></option>
</datalist>
<datalist id="wiz2-spells">
<option value="Alter Self"></option>
<option value="Bind"></option>
<option value="Blindness"></option>
<option value="Blur"></option>
<option value="Choke">Wizard's Handbook</option>
<option value="Continual Light"></option>
<option value="Darkness, 15' Radius"></option>
<option value="Deafness"></option>
<option value="Deeppockets"></option>
<option value="Detect Evil"></option>
<option value="Detect Invisibility"></option>
<option value="ESP"></option>
<option value="Flaming Sphere"></option>
<option value="Fog Cloud"></option>
<option value="Fools' Gold"></option>
<option value="Forget"></option>
<option value="Glitterdust"></option>
<option value="Hypnotic Pattern"></option>
<option value="Improved Phantasmal Force"></option>
<option value="Invisibility"></option>
<option value="Irritation"></option>
<option value="Knock"></option>
<option value="Know Alignment"></option>
<option value="Leomund's Trap"></option>
<option value="Levitate"></option>
<option value="Locate Object"></option>
<option value="Magic Mouth"></option>
<option value="Melf's Acid Arrow"></option>
<option value="Mirror Image"></option>
<option value="Misdirection"></option>
<option value="Protection From Cantrips"></option>
<option value="Pyrotechnics"></option>
<option value="Ray of Enfeeblement"></option>
<option value="Rope Tricks"></option>
<option value="Scare"></option>
<option value="Shatter"></option>
<option value="Spectral Hand"></option>
<option value="Stinking Cloud"></option>
<option value="Strength"></option>
<option value="Summon Swarm"></option>
<option value="Tasha's Uncontrollable Hideous Laughter"></option>
<option value="Web"></option>
<option value="Whispering Wind"></option>
<option value="Wizard Lock"></option>
</datalist>
<datalist id="wiz3-spells">
<option value="Blink"></option>
<option value="Clairaudience"></option>
<option value="Clairvoyance"></option>
<option value="Delude"></option>
<option value="Dispel Magic"></option>
<option value="Explosive Runes"></option>
<option value="Feign Death"></option>
<option value="Fireball"></option>
<option value="Flame Arrow"></option>
<option value="Fly"></option>
<option value="Gust of Wind"></option>
<option value="Haste"></option>
<option value="Hold Person"></option>
<option value="Hold Undead"></option>
<option value="Illusionary Script"></option>
<option value="Infravision"></option>
<option value="Invisibility, 10' Radius"></option>
<option value="Item"></option>
<option value="Leomund's Tiny Hut"></option>
<option value="Lightning Bolt"></option>
<option value="Melf's Minute Meteors"></option>
<option value="Monster Summoning I"></option>
<option value="Nondetection"></option>
<option value="Phantom Steed"></option>
<option value="Protection from Evil, 10' Radius"></option>
<option value="Protection From Normal Missiles"></option>
<option value="Secret Page"></option>
<option value="Sepia Snake Sigil"></option>
<option value="Slow"></option>
<option value="Spectral Force"></option>
<option value="Suggestion"></option>
<option value="Tongues"></option>
<option value="Vampiric Touch"></option>
<option value="Water Breathing"></option>
<option value="Wind Wall"></option>
<option value="Wraithform"></option>
</datalist>
<rolltemplate class="sheet-rolltemplate-2Edefault">
<div class="sheet-template-container">
<div class="sheet-default-head">
@@ -18065,7 +18055,6 @@ var TAS = TAS || (function(){
/* ---- END: TheAaronSheet.js ---- */
/* ---- Attributes tables start ---- */
const strengthTable = {};
strengthTable['strengthhit'] = ['Error','-5','-3','-3','-2','-2','-1','-1','0','0','0','0','0','0','0','0','0','+1','+1','+3','+3','+4','+4','+5','+6','+7'];
+4
View File
@@ -83,6 +83,10 @@
.charsheet input.sheet-spell {
width: 215px;
}
.charsheet select.sheet-spell-big,
.charsheet input.sheet-spell-big {
width: 295px;
}
.charsheet select.sheet-long,
.charsheet input.sheet-long {
width: 400px;
+19 -2
View File
@@ -2,14 +2,31 @@
$sourceFolder = 'D:\git\roll20-character-sheets\AD&D 2E Revised'
$outputFile = 'D:\git\roll20-character-sheets\AD&D 2E Revised\2ESheet.html'
$replaceConstant = '#REPLACE#'
$content = Get-Content -Path $inputFile
$inserts = ($content | Select-String -Pattern 'insert_')
$inserts | ForEach-Object {
$fileName = $_.Line.Split('_')[1]
$_
$split = $_.Line.Split('_')
$whiteSpace = $split[0].Replace('insert', '')
$fileName = $split[1]
$file = Get-ChildItem -Path $sourceFolder -Filter $fileName -Recurse
$content = $content -replace $_.Line, (Get-Content -Path $file.FullName -Raw)
$fileContent = Get-Content -Path $file.FullName
if ($whiteSpace.Length -gt 0) {
for ($i = 0; $i -lt $fileContent.Length; $i++)
{
$fileContent[$i] = $whiteSpace + $fileContent[$i]
}
}
$rawContent = $fileContent -join "`n"
if ($split.Length -gt 2 -and $rawContent.Contains($replaceConstant)) {
$rawContent = $rawContent.Replace($replaceConstant, $split[2])
}
$content = $content -replace $_.Line, ($rawContent)
}
$content | Set-Content -Path $outputFile
+3 -363
View File
@@ -3521,129 +3521,7 @@
<h4><b>Spells Memorized</b></h4>
<br>
<br>
<div class="sheet-flex-wrap">
<fieldset name="repeating_spells-wiz1" class="repeating_spells-wiz1">
<div class="sheet-flex-item">
<table class="sheet-default-header-every-third-column">
<tr>
<td>Spell name:</td>
<td>
<select name="attr_spell-select" title="@{repeating_spells-wiz1_$X_spell-select}" class="sheet-spell-select">
<option value="0" selected="selected">Custom</option>
<option value="Affect Normal Fires">Affect Normal Fires</option>
<option value="Alarm">Alarm</option>
<option value="Armor">Armor</option>
<option value="Audible Glamer">Audible Glamer</option>
<option value="Burning Hands">Burning Hands</option>
<option value="Cantrip">Cantrip</option>
<option value="Change Self">Change Self</option>
<option value="Charm Person">Charm Person</option>
<option value="Chill Touch">Chill Touch</option>
<option value="Color Spray">Color Spray</option>
<option value="Comprehend Languages">Comprehend Languages</option>
<option value="Dancing Lights">Dancing Lights</option>
<option value="Detect Magic">Detect Magic</option>
<option value="Detect Undead">Detect Undead</option>
<option value="Enlarge">Enlarge</option>
<option value="Erase">Erase</option>
<option value="Feather Fall">Feather Fall</option>
<option value="Find Familiar">Find Familiar</option>
<option value="Friends">Friends</option>
<option value="Gaze Reflection">Gaze Reflection</option>
<option value="Grease">Grease</option>
<option value="Hold Portal">Hold Portal</option>
<option value="Hypnotism">Hypnotism</option>
<option value="Identify">Identify</option>
<option value="Jump">Jump</option>
<option value="Light">Light</option>
<option value="Magic Missile">Magic Missile</option>
<option value="Mending">Mending</option>
<option value="Message">Message</option>
<option value="Mount">Mount</option>
<option value="Nystu's Magical Aura">Nystu's Magical Aura</option>
<option value="Phantasmal Force">Phantasmal Force</option>
<option value="Protection From Evil">Protection From Evil</option>
<option value="Read Magic">Read Magic</option>
<option value="Shield">Shield</option>
<option value="Shocking Grasp">Shocking Grasp</option>
<option value="Sleep">Sleep</option>
<option value="Spider Climb">Spider Climb</option>
<option value="Spook">Spook</option>
<option value="Taunt">Taunt</option>
<option value="Tenser's Floating Disc">Tenser's Floating Disc</option>
<option value="Unseen Servant">Unseen Servant</option>
<option value="Ventriloquism">Ventriloquism</option>
<option value="Wall of Fog">Wall of Fog</option>
<option value="Wizard Mark">Wizard Mark</option>
</select>
</td>
<td><input type="text" name="attr_spell-name" title="@{repeating_spells-wiz1_$X_spell-name}" class="sheet-spell" placeholder="Spell name"></td>
<td>Casting time:</td>
<td><input type="text" name="attr_spell-cast-time" title="@{repeating_spells-wiz1_$X_spell-cast-time}" class="sheet-short" placeholder="Cast time"></td>
<td><button type="roll" name="roll_spell-init" title="@{repeating_spells-wiz1_$X_spell-init}" value="/gmroll [[{([[1d10]]+@{spell-cast-time}), 1}kh1]] [Initiative (@{spell-name})]&{tracker}">Initiative</button></td>
</tr>
</table>
<table class="sheet-default-header-first-column sheet-inline">
<tr>
<td>Cast / Memorized:</td>
<td><input type="number" name="attr_spell-cast-value" title="@{repeating_spells-wiz1_$X_spell-cast-value}" value="0" class="sheet-short"><b> / </b><input type="number" name="attr_spell-memorized" title="@{repeating_spells-wiz1_$X_spell-memorized}" value="0" class="sheet-short"></td>
</tr>
</table>
<table class="sheet-default-header-first-column sheet-inline">
<tr>
<td>Spell Points / Arc Used:</td>
<td><input type="number" name="attr_spell-points" title="@{repeating_spells-wiz1_$X_spell-points}" class="sheet-short" value="0"><b> / </b><input type="number" name="attr_spell-arc" title="@{repeating_spells-wiz1_$X_spell-arc}" class="sheet-short" value="0"></td>
</tr>
</table>
<input type="checkbox" class="sheet-show-spell-details sheet-show-spell-hack" title="Show spell details"/><span class="sheet-show-spell-hack"></span><label class="sheet-show-spell-hack">Show spell details</label>
<table class="sheet-default-header-odd-column sheet-spell-details">
<tr>
<td>Level:</td>
<td><input type="text" name="attr_spell-level" title="@{repeating_spells-wiz1_$X_spell-level}" class="sheet-spell-half" placeholder="Spell level"></td>
<td>School:</td>
<td><input type="text" name="attr_spell-school" title="@{repeating_spells-wiz1_$X_spell-school}" class="sheet-spell-half" placeholder="School"></td>
<td>Compoenets:</td>
<td><input type="text" name="attr_spell-components" title="@{repeating_spells-wiz1_$X_spell-components}" class="sheet-spell-half" placeholder="Components"></td>
</tr>
<tr>
<td>Range:</td>
<td><input type="text" name="attr_spell-range" title="@{repeating_spells-wiz1_$X_spell-range}" class="sheet-spell-half" placeholder="Range"></td>
<td>Area of Effect:</td>
<td><input type="text" name="attr_spell-aoe" title="@{repeating_spells-wiz1_$X_spell-aoe}" class="sheet-spell-half" placeholder="Area of Effect"></td>
<td>Duration:</td>
<td><input type="text" name="attr_spell-duration" title="@{repeating_spells-wiz1_$X_spell-duration}" class="sheet-spell-half" placeholder="Duration"></td>
</tr>
<tr>
<td>Damage:</td>
<td><input type="text" name="attr_spell-damage" title="@{repeating_spells-wiz1_$X_spell-damage}" class="sheet-spell-half" placeholder="[[Damage]]"></td>
<td>Damage type:</td>
<td><input type="text" name="attr_spell-damage-type" title="@{repeating_spells-wiz1_$X_spell-damage-type}" class="sheet-spell-half" placeholder="Damage type"></td>
<td>Saving throw:</td>
<td><input type="text" name="attr_spell-saving-throw" title="@{repeating_spells-wiz1_$X_spell-saving-throw}" class="sheet-spell-half" placeholder="Saving Throw"></td>
</tr>
<tr>
<td>Healing:</td>
<td><input type="text" name="attr_spell-healing" title="@{repeating_spells-wiz1_$X_spell-healing}" class="sheet-spell-half" placeholder="[[Healing]]"></td>
<td>Materials:</td>
<td><input type="text" name="attr_spell-materials" title="@{repeating_spells-wiz1_$X_spell-materials}" class="sheet-spell-half" placeholder="Materials"></td>
<td>Book reference:</td>
<td><input type="text" name="attr_spell-reference" title="@{repeating_spells-wiz1_$X_spell-reference}" class="sheet-spell-half" placeholder="Book Reference"></td>
</tr>
</table>
<table class="sheet-spell-effect">
<tr>
<td style="width: 100%"><textarea name="attr_spell-effect" title="@{repeating_spells-wiz1_$X_spell-effect}" placeholder="Insert Spell effects." style="margin: 0; height: 60px"></textarea></td>
<td>
<button type="roll" name="roll_spell-cast" title="%{repeating_spells-wiz1_$X_spell-cast}" value="@{spell-effect}" style="margin-bottom: 5px">Roll Spell Effects</button>
<br>
<button type="roll" name="roll_spell-template" title="%{repeating_spells-wiz1_$X_spell-template}" value="&{template:2Espell}{{title=@{spell-name}}}{{splevel=@{spell-level}}}{{school=@{spell-school}}}{{components=@{spell-components}}}{{time=@{spell-cast-time}}}{{range=@{spell-range}}}{{duration=@{spell-duration}}}{{aoe=@{spell-aoe}}}{{save=@{spell-saving-throw}}}{{damage=@{spell-damage}}}{{damagetype=@{spell-damage-type}}}{{healing=@{spell-healing}}}{{reference=@{spell-reference}}}{{materials=@{spell-materials}}}{{effects=@{spell-effect}}}">Roll Template</button>
</td>
</tr>
</table>
<hr>
</div>
</fieldset>
</div>
insert_wizard-spell-template.html_wiz1
<div class="sheet-3colrow">
<div class="sheet-col">
<fieldset name="repeating_spells" class="repeating_spells">
@@ -3791,130 +3669,7 @@
<h4><b>Spells Memorized</b></h4>
<br>
<br>
<div class="sheet-flex-wrap">
<fieldset name="repeating_spells-wiz2" class="repeating_spells-wiz2">
<div class="sheet-flex-item">
<table class="sheet-default-header-every-third-column">
<tr>
<td>Spell name:</td>
<td>
<select name="attr_spell-select" title="@{repeating_spells-wiz2_$X_spell-select}" class="sheet-spell-select">
<option value="0" selected="selected">Custom</option>
<option value="Alter Self">Alter Self</option>
<option value="Bind">Bind</option>
<option value="Blindness">Blindness</option>
<option value="Blur">Blur</option>
<option value="Choke">Choke</option>
<option value="Continual Light">Continual Light</option>
<option value="Darkness, 15' Radius">Darkness, 15' Radius</option>
<option value="Deafness">Deafness</option>
<option value="Deeppockets">Deeppockets</option>
<option value="Detect Evil">Detect Evil</option>
<option value="Detect Invisibility">Detect Invisibility</option>
<option value="ESP">ESP</option>
<option value="Flaming Sphere">Flaming Sphere</option>
<option value="Fog Cloud">Fog Cloud</option>
<option value="Fools' Gold">Fools' Gold</option>
<option value="Forget">Forget</option>
<option value="Glitterdust">Glitterdust</option>
<option value="Hypnotic Pattern">Hypnotic Pattern</option>
<option value="Improved Phantasmal Force">Improved Phantasmal Force</option>
<option value="Invisibility">Invisibility</option>
<option value="Irritation">Irritation</option>
<option value="Knock">Knock</option>
<option value="Know Alignment">Know Alignment</option>
<option value="Leomund's Trap">Leomund's Trap</option>
<option value="Levitate">Levitate</option>
<option value="Locate Object">Locate Object</option>
<option value="Magic Mouth">Magic Mouth</option>
<option value="Melf's Acid Arrow">Melf's Acid Arrow</option>
<option value="Mirror Image">Mirror Image</option>
<option value="Misdirection">Misdirection</option>
<option value="Protection From Cantrips">Protection From Cantrips</option>
<option value="Pyrotechnics">Pyrotechnics</option>
<option value="Ray of Enfeeblement">Ray of Enfeeblement</option>
<option value="Rope Tricks">Rope Tricks</option>
<option value="Scare">Scare</option>
<option value="Shatter">Shatter</option>
<option value="Spectral Hand">Spectral Hand</option>
<option value="Stinking Cloud">Stinking Cloud</option>
<option value="Strength">Strength</option>
<option value="Summon Swarm">Summon Swarm</option>
<option value="Tasha's Uncontrollable Hideous Laughter">Tasha's Uncontrollable Hideous Laughter</option>
<option value="Web">Web</option>
<option value="Whispering Wind">Whispering Wind</option>
<option value="Wizard Lock">Wizard Lock</option>
</select>
</td>
<td><input type="text" name="attr_spell-name" title="@{repeating_spells-wiz2_$X_spell-name}" class="sheet-spell" placeholder="Spell name"></td>
<td>Casting time:</td>
<td><input type="text" name="attr_spell-cast-time" title="@{repeating_spells-wiz2_$X_spell-cast-time}" class="sheet-short" placeholder="Cast time"></td>
<td><button type="roll" name="roll_spell-init" title="@{repeating_spells-wiz2_$X_spell-init}" value="/gmroll [[{([[1d10]]+@{spell-cast-time}), 1}kh1]] [Initiative (@{spell-name})]&{tracker}">Initiative</button></td>
</tr>
</table>
<table class="sheet-default-header-first-column sheet-inline">
<tr>
<td>Cast / Memorized:</td>
<td><input type="number" name="attr_spell-cast-value" title="@{repeating_spells-wiz2_$X_spell-cast-value}" value="0" class="sheet-short"><b> / </b><input type="number" name="attr_spell-memorized" title="@{repeating_spells-wiz2_$X_spell-memorized}" value="0" class="sheet-short"></td>
</tr>
</table>
<table class="sheet-default-header-first-column sheet-inline">
<tr>
<td>Spell Points / Arc Used:</td>
<td><input type="number" name="attr_spell-points" title="@{repeating_spells-wiz2_$X_spell-points}" class="sheet-short" value="0"><b> / </b><input type="number" name="attr_spell-arc" title="@{repeating_spells-wiz2_$X_spell-arc}" class="sheet-short" value="0"></td>
</tr>
</table>
<input type="checkbox" class="sheet-show-spell-details sheet-show-spell-hack" title="Show spell details"/><span class="sheet-show-spell-hack"></span><label class="sheet-show-spell-hack">Show spell details</label>
<div class="sheet-spell-details">
<table class="sheet-default-header-odd-column">
<tr>
<td>Level:</td>
<td><input type="text" name="attr_spell-level" title="@{repeating_spells-wiz2_$X_spell-level}" class="sheet-spell-half" placeholder="Spell level"></td>
<td>School:</td>
<td><input type="text" name="attr_spell-school" title="@{repeating_spells-wiz2_$X_spell-school}" class="sheet-spell-half" placeholder="School"></td>
<td>Compoenets:</td>
<td><input type="text" name="attr_spell-components" title="@{repeating_spells-wiz2_$X_spell-components}" class="sheet-spell-half" placeholder="Components"></td>
</tr>
<tr>
<td>Range:</td>
<td><input type="text" name="attr_spell-range" title="@{repeating_spells-wiz2_$X_spell-range}" class="sheet-spell-half" placeholder="Range"></td>
<td>Area of Effect:</td>
<td><input type="text" name="attr_spell-aoe" title="@{repeating_spells-wiz2_$X_spell-aoe}" class="sheet-spell-half" placeholder="Area of Effect"></td>
<td>Duration:</td>
<td><input type="text" name="attr_spell-duration" title="@{repeating_spells-wiz2_$X_spell-duration}" class="sheet-spell-half" placeholder="Duration"></td>
</tr>
<tr>
<td>Damage:</td>
<td><input type="text" name="attr_spell-damage" title="@{repeating_spells-wiz2_$X_spell-damage}" class="sheet-spell-half" placeholder="[[Damage]]"></td>
<td>Damage type:</td>
<td><input type="text" name="attr_spell-damage-type" title="@{repeating_spells-wiz2_$X_spell-damage-type}" class="sheet-spell-half" placeholder="Damage type"></td>
<td>Saving throw:</td>
<td><input type="text" name="attr_spell-saving-throw" title="@{repeating_spells-wiz2_$X_spell-saving-throw}" class="sheet-spell-half" placeholder="Saving Throw"></td>
</tr>
<tr>
<td>Healing:</td>
<td><input type="text" name="attr_spell-healing" title="@{repeating_spells-wiz2_$X_spell-healing}" class="sheet-spell-half" placeholder="[[Healing]]"></td>
<td>Materials:</td>
<td><input type="text" name="attr_spell-materials" title="@{repeating_spells-wiz2_$X_spell-materials}" class="sheet-spell-half" placeholder="Materials"></td>
<td>Book reference:</td>
<td><input type="text" name="attr_spell-reference" title="@{repeating_spells-wiz2_$X_spell-reference}" class="sheet-spell-half" placeholder="Book Reference"></td>
</tr>
</table>
</div>
<table class="sheet-spell-effect">
<tr>
<td class="sheet-spell-effect"><textarea name="attr_spell-effect" title="@{repeating_spells-wiz2_$X_spell-effect}" placeholder="Insert Spell effects." style="margin: 0; height: 60px"></textarea></td>
<td>
<button type="roll" name="roll_spell-cast" title="%{repeating_spells-wiz2_$X_spell-cast}" value="@{spell-effect}" style="margin-bottom: 5px">Roll Spell Effects</button>
<br>
<button type="roll" name="roll_spell-template" title="%{repeating_spells-wiz2_$X_spell-template}" value="&{template:2Espell}{{title=@{spell-name}}}{{splevel=@{spell-level}}}{{school=@{spell-school}}}{{components=@{spell-components}}}{{time=@{spell-cast-time}}}{{range=@{spell-range}}}{{duration=@{spell-duration}}}{{aoe=@{spell-aoe}}}{{save=@{spell-saving-throw}}}{{damage=@{spell-damage}}}{{damagetype=@{spell-damage-type}}}{{healing=@{spell-healing}}}{{reference=@{spell-reference}}}{{materials=@{spell-materials}}}{{effects=@{spell-effect}}}">Roll Template</button>
</td>
</tr>
</table>
<hr>
</div>
</fieldset>
</div>
insert_wizard-spell-template.html_wiz2
<div class="sheet-3colrow">
<div class="sheet-col">
<fieldset name="repeating_spells4" class="repeating_spells4">
@@ -4062,122 +3817,7 @@
<h4><b>Spells Memorized</b></h4>
<br>
<br>
<div class="sheet-flex-wrap">
<fieldset name="repeating_spells-wiz3" class="repeating_spells-wiz3">
<div class="sheet-flex-item">
<table class="sheet-default-header-every-third-column">
<tr>
<td>Spell name:</td>
<td>
<select name="attr_spell-select" title="@{repeating_spells-wiz3_$X_spell-select}" class="sheet-spell-select">
<option value="0" selected="selected">Custom</option>
<option value="Blink">Blink</option>
<option value="Clairaudience">Clairaudience</option>
<option value="Clairvoyance">Clairvoyance</option>
<option value="Delude">Delude</option>
<option value="Dispel Magic">Dispel Magic</option>
<option value="Explosive Runes">Explosive Runes</option>
<option value="Feign Death">Feign Death</option>
<option value="Fireball">Fireball</option>
<option value="Flame Arrow">Flame Arrow</option>
<option value="Fly">Fly</option>
<option value="Gust of Wind">Gust of Wind</option>
<option value="Haste">Haste</option>
<option value="Hold Person">Hold Person</option>
<option value="Hold Undead">Hold Undead</option>
<option value="Illusionary Script">Illusionary Script</option>
<option value="Infravision">Infravision</option>
<option value="Invisibility, 10\' Radius">Invisibility, 10\' Radius</option>
<option value="Item">Item</option>
<option value="Leomund\'s Tiny Hut">Leomund\'s Tiny Hut</option>
<option value="Lightning Bolt">Lightning Bolt</option>
<option value="Melf\'s Minute Meteors">Melf\'s Minute Meteors</option>
<option value="Monster Summoning I">Monster Summoning I</option>
<option value="Nondetection">Nondetection</option>
<option value="Phantom Steed">Phantom Steed</option>
<option value="Protection from Evil, 10\' Radius">Protection from Evil, 10\' Radius</option>
<option value="Protection From Normal Missiles">Protection From Normal Missiles</option>
<option value="Secret Page">Secret Page</option>
<option value="Sepia Snake Sigil">Sepia Snake Sigil</option>
<option value="Slow">Slow</option>
<option value="Spectral Force">Spectral Force</option>
<option value="Suggestion">Suggestion</option>
<option value="Tongues">Tongues</option>
<option value="Vampiric Touch">Vampiric Touch</option>
<option value="Water Breathing">Water Breathing</option>
<option value="Wind Wall">Wind Wall</option>
<option value="Wraithform">Wraithform</option>
</select>
</td>
<td><input type="text" name="attr_spell-name" title="@{repeating_spells-wiz3_$X_spell-name}" class="sheet-spell" placeholder="Spell name"></td>
<td>Casting time:</td>
<td><input type="text" name="attr_spell-cast-time" title="@{repeating_spells-wiz3_$X_spell-cast-time}" class="sheet-short" placeholder="Cast time"></td>
<td><button type="roll" name="roll_spell-init" title="@{repeating_spells-wiz3_$X_spell-init}" value="/gmroll [[{([[1d10]]+@{spell-cast-time}), 1}kh1]] [Initiative (@{spell-name})]&{tracker}">Initiative</button></td>
</tr>
</table>
<table class="sheet-default-header-first-column sheet-inline">
<tr>
<td>Cast / Memorized:</td>
<td><input type="number" name="attr_spell-cast-value" title="@{repeating_spells-wiz3_$X_spell-cast-value}" value="0" class="sheet-short"><b> / </b><input type="number" name="attr_spell-memorized" title="@{repeating_spells-wiz3_$X_spell-memorized}" value="0" class="sheet-short"></td>
</tr>
</table>
<table class="sheet-default-header-first-column sheet-inline">
<tr>
<td>Spell Points / Arc Used:</td>
<td><input type="number" name="attr_spell-points" title="@{repeating_spells-wiz3_$X_spell-points}" class="sheet-short" value="0"><b> / </b><input type="number" name="attr_spell-arc" title="@{repeating_spells-wiz3_$X_spell-arc}" class="sheet-short" value="0"></td>
</tr>
</table>
<input type="checkbox" class="sheet-show-spell-details sheet-show-spell-hack" title="Show spell details"/><span class="sheet-show-spell-hack"></span><label class="sheet-show-spell-hack">Show spell details</label>
<div class="sheet-spell-details">
<table class="sheet-default-header-odd-column">
<tr>
<td>Level:</td>
<td><input type="text" name="attr_spell-level" title="@{repeating_spells-wiz3_$X_spell-level}" class="sheet-spell-half" placeholder="Spell level"></td>
<td>School:</td>
<td><input type="text" name="attr_spell-school" title="@{repeating_spells-wiz3_$X_spell-school}" class="sheet-spell-half" placeholder="School"></td>
<td>Compoenets:</td>
<td><input type="text" name="attr_spell-components" title="@{repeating_spells-wiz3_$X_spell-components}" class="sheet-spell-half" placeholder="Components"></td>
</tr>
<tr>
<td>Range:</td>
<td><input type="text" name="attr_spell-range" title="@{repeating_spells-wiz3_$X_spell-range}" class="sheet-spell-half" placeholder="Range"></td>
<td>Area of Effect:</td>
<td><input type="text" name="attr_spell-aoe" title="@{repeating_spells-wiz3_$X_spell-aoe}" class="sheet-spell-half" placeholder="Area of Effect"></td>
<td>Duration:</td>
<td><input type="text" name="attr_spell-duration" title="@{repeating_spells-wiz3_$X_spell-duration}" class="sheet-spell-half" placeholder="Duration"></td>
</tr>
<tr>
<td>Damage:</td>
<td><input type="text" name="attr_spell-damage" title="@{repeating_spells-wiz3_$X_spell-damage}" class="sheet-spell-half" placeholder="[[Damage]]"></td>
<td>Damage type:</td>
<td><input type="text" name="attr_spell-damage-type" title="@{repeating_spells-wiz3_$X_spell-damage-type}" class="sheet-spell-half" placeholder="Damage type"></td>
<td>Saving throw:</td>
<td><input type="text" name="attr_spell-saving-throw" title="@{repeating_spells-wiz3_$X_spell-saving-throw}" class="sheet-spell-half" placeholder="Saving Throw"></td>
</tr>
<tr>
<td>Healing:</td>
<td><input type="text" name="attr_spell-healing" title="@{repeating_spells-wiz3_$X_spell-healing}" class="sheet-spell-half" placeholder="[[Healing]]"></td>
<td>Materials:</td>
<td><input type="text" name="attr_spell-materials" title="@{repeating_spells-wiz3_$X_spell-materials}" class="sheet-spell-half" placeholder="Materials"></td>
<td>Book reference:</td>
<td><input type="text" name="attr_spell-reference" title="@{repeating_spells-wiz3_$X_spell-reference}" class="sheet-spell-half" placeholder="Book Reference"></td>
</tr>
</table>
</div>
<table class="sheet-spell-effect">
<tr>
<td class="sheet-spell-effect"><textarea name="attr_spell-effect" title="@{repeating_spells-wiz3_$X_spell-effect}" placeholder="Insert Spell effects." style="margin: 0; height: 60px"></textarea></td>
<td>
<button type="roll" name="roll_spell-cast" title="%{repeating_spells-wiz3_$X_spell-cast}" value="@{spell-effect}" style="margin-bottom: 5px">Roll Spell Effects</button>
<br>
<button type="roll" name="roll_spell-template" title="%{repeating_spells-wiz3_$X_spell-template}" value="&{template:2Espell}{{title=@{spell-name}}}{{splevel=@{spell-level}}}{{school=@{spell-school}}}{{components=@{spell-components}}}{{time=@{spell-cast-time}}}{{range=@{spell-range}}}{{duration=@{spell-duration}}}{{aoe=@{spell-aoe}}}{{save=@{spell-saving-throw}}}{{damage=@{spell-damage}}}{{damagetype=@{spell-damage-type}}}{{healing=@{spell-healing}}}{{reference=@{spell-reference}}}{{materials=@{spell-materials}}}{{effects=@{spell-effect}}}">Roll Template</button>
</td>
</tr>
</table>
<hr>
</div>
</fieldset>
</div>
insert_wizard-spell-template.html_wiz3
<div class="sheet-3colrow">
<div class="sheet-col">
<fieldset name="repeating_spells7" class="repeating_spells7">
+134
View File
@@ -304,4 +304,138 @@
<option value="Staff sling (Bullet)"></option>
<option value="Staff sling (Stone)"></option>
<option value="Warhammer"></option>
</datalist>
<datalist id="wiz1-spells">
<option value="Affect Normal Fires"></option>
<option value="Alarm"></option>
<option value="Armor"></option>
<option value="Audible Glamer"></option>
<option value="Burning Hands"></option>
<option value="Cantrip"></option>
<option value="Change Self"></option>
<option value="Charm Person"></option>
<option value="Chill Touch"></option>
<option value="Color Spray"></option>
<option value="Comprehend Languages"></option>
<option value="Dancing Lights"></option>
<option value="Detect Magic"></option>
<option value="Detect Undead"></option>
<option value="Enlarge"></option>
<option value="Erase"></option>
<option value="Feather Fall"></option>
<option value="Find Familiar"></option>
<option value="Friends"></option>
<option value="Gaze Reflection"></option>
<option value="Grease"></option>
<option value="Hold Portal"></option>
<option value="Hypnotism"></option>
<option value="Identify"></option>
<option value="Jump"></option>
<option value="Light"></option>
<option value="Magic Missile"></option>
<option value="Mending"></option>
<option value="Message"></option>
<option value="Mount"></option>
<option value="Nystu's Magical Aura"></option>
<option value="Phantasmal Force"></option>
<option value="Protection From Evil"></option>
<option value="Read Magic"></option>
<option value="Shield"></option>
<option value="Shocking Grasp"></option>
<option value="Sleep"></option>
<option value="Spider Climb"></option>
<option value="Spook"></option>
<option value="Taunt"></option>
<option value="Tenser's Floating Disc"></option>
<option value="Unseen Servant"></option>
<option value="Ventriloquism"></option>
<option value="Wall of Fog"></option>
<option value="Wizard Mark"></option>
</datalist>
<datalist id="wiz2-spells">
<option value="Alter Self"></option>
<option value="Bind"></option>
<option value="Blindness"></option>
<option value="Blur"></option>
<option value="Choke">Wizard's Handbook</option>
<option value="Continual Light"></option>
<option value="Darkness, 15' Radius"></option>
<option value="Deafness"></option>
<option value="Deeppockets"></option>
<option value="Detect Evil"></option>
<option value="Detect Invisibility"></option>
<option value="ESP"></option>
<option value="Flaming Sphere"></option>
<option value="Fog Cloud"></option>
<option value="Fools' Gold"></option>
<option value="Forget"></option>
<option value="Glitterdust"></option>
<option value="Hypnotic Pattern"></option>
<option value="Improved Phantasmal Force"></option>
<option value="Invisibility"></option>
<option value="Irritation"></option>
<option value="Knock"></option>
<option value="Know Alignment"></option>
<option value="Leomund's Trap"></option>
<option value="Levitate"></option>
<option value="Locate Object"></option>
<option value="Magic Mouth"></option>
<option value="Melf's Acid Arrow"></option>
<option value="Mirror Image"></option>
<option value="Misdirection"></option>
<option value="Protection From Cantrips"></option>
<option value="Pyrotechnics"></option>
<option value="Ray of Enfeeblement"></option>
<option value="Rope Tricks"></option>
<option value="Scare"></option>
<option value="Shatter"></option>
<option value="Spectral Hand"></option>
<option value="Stinking Cloud"></option>
<option value="Strength"></option>
<option value="Summon Swarm"></option>
<option value="Tasha's Uncontrollable Hideous Laughter"></option>
<option value="Web"></option>
<option value="Whispering Wind"></option>
<option value="Wizard Lock"></option>
</datalist>
<datalist id="wiz3-spells">
<option value="Blink"></option>
<option value="Clairaudience"></option>
<option value="Clairvoyance"></option>
<option value="Delude"></option>
<option value="Dispel Magic"></option>
<option value="Explosive Runes"></option>
<option value="Feign Death"></option>
<option value="Fireball"></option>
<option value="Flame Arrow"></option>
<option value="Fly"></option>
<option value="Gust of Wind"></option>
<option value="Haste"></option>
<option value="Hold Person"></option>
<option value="Hold Undead"></option>
<option value="Illusionary Script"></option>
<option value="Infravision"></option>
<option value="Invisibility, 10' Radius"></option>
<option value="Item"></option>
<option value="Leomund's Tiny Hut"></option>
<option value="Lightning Bolt"></option>
<option value="Melf's Minute Meteors"></option>
<option value="Monster Summoning I"></option>
<option value="Nondetection"></option>
<option value="Phantom Steed"></option>
<option value="Protection from Evil, 10' Radius"></option>
<option value="Protection From Normal Missiles"></option>
<option value="Secret Page"></option>
<option value="Sepia Snake Sigil"></option>
<option value="Slow"></option>
<option value="Spectral Force"></option>
<option value="Suggestion"></option>
<option value="Tongues"></option>
<option value="Vampiric Touch"></option>
<option value="Water Breathing"></option>
<option value="Wind Wall"></option>
<option value="Wraithform"></option>
</datalist>
@@ -0,0 +1,73 @@
<div class="sheet-flex-wrap">
<fieldset name="repeating_spells-#REPLACE#" class="repeating_spells-#REPLACE#">
<div class="sheet-flex-item">
<table>
<tr>
<td class="sheet-default-header">Spell name:</td>
<td><input type="text" name="attr_spell-name" title="@{repeating_spells-#REPLACE#_$X_spell-name}" class="sheet-spell-big" placeholder="Spell name" list="#REPLACE#-spells"></td>
<td class="sheet-default-header">Casting time:</td>
<td><input type="text" name="attr_spell-cast-time" title="@{repeating_spells-#REPLACE#_$X_spell-cast-time}" class="sheet-short" placeholder="Cast time"></td>
<td><button type="roll" name="roll_spell-init" title="@{repeating_spells-#REPLACE#_$X_spell-init}" value="/gmroll [[{([[1d10]]+@{spell-cast-time}), 1}kh1]] [Initiative (@{spell-name})]&{tracker}">Initiative</button></td>
</tr>
</table>
<table class="sheet-default-header-first-column sheet-inline">
<tr>
<td>Cast / Memorized:</td>
<td><input type="number" name="attr_spell-cast-value" title="@{repeating_spells-#REPLACE#_$X_spell-cast-value}" value="0" class="sheet-short"><b> / </b><input type="number" name="attr_spell-memorized" title="@{repeating_spells-#REPLACE#_$X_spell-memorized}" value="0" class="sheet-short"></td>
</tr>
</table>
<table class="sheet-default-header-first-column sheet-inline">
<tr>
<td>Spell Points / Arc Used:</td>
<td><input type="number" name="attr_spell-points" title="@{repeating_spells-#REPLACE#_$X_spell-points}" class="sheet-short" value="0"><b> / </b><input type="number" name="attr_spell-arc" title="@{repeating_spells-#REPLACE#_$X_spell-arc}" class="sheet-short" value="0"></td>
</tr>
</table>
<input type="checkbox" class="sheet-show-spell-details sheet-show-spell-hack" title="Show spell details"/><span class="sheet-show-spell-hack"></span><label class="sheet-show-spell-hack">Show spell details</label>
<table class="sheet-default-header-odd-column sheet-spell-details">
<tr>
<td>Level:</td>
<td><input type="text" name="attr_spell-level" title="@{repeating_spells-#REPLACE#_$X_spell-level}" class="sheet-spell-half" placeholder="Spell level"></td>
<td>School:</td>
<td><input type="text" name="attr_spell-school" title="@{repeating_spells-#REPLACE#_$X_spell-school}" class="sheet-spell-half" placeholder="School"></td>
<td>Compoenets:</td>
<td><input type="text" name="attr_spell-components" title="@{repeating_spells-#REPLACE#_$X_spell-components}" class="sheet-spell-half" placeholder="Components"></td>
</tr>
<tr>
<td>Range:</td>
<td><input type="text" name="attr_spell-range" title="@{repeating_spells-#REPLACE#_$X_spell-range}" class="sheet-spell-half" placeholder="Range"></td>
<td>Area of Effect:</td>
<td><input type="text" name="attr_spell-aoe" title="@{repeating_spells-#REPLACE#_$X_spell-aoe}" class="sheet-spell-half" placeholder="Area of Effect"></td>
<td>Duration:</td>
<td><input type="text" name="attr_spell-duration" title="@{repeating_spells-#REPLACE#_$X_spell-duration}" class="sheet-spell-half" placeholder="Duration"></td>
</tr>
<tr>
<td>Damage:</td>
<td><input type="text" name="attr_spell-damage" title="@{repeating_spells-#REPLACE#_$X_spell-damage}" class="sheet-spell-half" placeholder="[[Damage]]"></td>
<td>Damage type:</td>
<td><input type="text" name="attr_spell-damage-type" title="@{repeating_spells-#REPLACE#_$X_spell-damage-type}" class="sheet-spell-half" placeholder="Damage type"></td>
<td>Saving throw:</td>
<td><input type="text" name="attr_spell-saving-throw" title="@{repeating_spells-#REPLACE#_$X_spell-saving-throw}" class="sheet-spell-half" placeholder="Saving Throw"></td>
</tr>
<tr>
<td>Healing:</td>
<td><input type="text" name="attr_spell-healing" title="@{repeating_spells-#REPLACE#_$X_spell-healing}" class="sheet-spell-half" placeholder="[[Healing]]"></td>
<td>Materials:</td>
<td><input type="text" name="attr_spell-materials" title="@{repeating_spells-#REPLACE#_$X_spell-materials}" class="sheet-spell-half" placeholder="Materials"></td>
<td>Book reference:</td>
<td><input type="text" name="attr_spell-reference" title="@{repeating_spells-#REPLACE#_$X_spell-reference}" class="sheet-spell-half" placeholder="Book Reference"></td>
</tr>
</table>
<table class="sheet-spell-effect">
<tr>
<td style="width: 100%"><textarea name="attr_spell-effect" title="@{repeating_spells-#REPLACE#_$X_spell-effect}" placeholder="Insert Spell effects." style="margin: 0; height: 60px"></textarea></td>
<td>
<button type="roll" name="roll_spell-cast" title="%{repeating_spells-#REPLACE#_$X_spell-cast}" value="@{spell-effect}" style="margin-bottom: 5px">Roll Spell Effects</button>
<br>
<button type="roll" name="roll_spell-template" title="%{repeating_spells-#REPLACE#_$X_spell-template}" value="&{template:2Espell}{{title=@{spell-name}}}{{splevel=@{spell-level}}}{{school=@{spell-school}}}{{components=@{spell-components}}}{{time=@{spell-cast-time}}}{{range=@{spell-range}}}{{duration=@{spell-duration}}}{{aoe=@{spell-aoe}}}{{save=@{spell-saving-throw}}}{{damage=@{spell-damage}}}{{damagetype=@{spell-damage-type}}}{{healing=@{spell-healing}}}{{reference=@{spell-reference}}}{{materials=@{spell-materials}}}{{effects=@{spell-effect}}}">Roll Template</button>
</td>
</tr>
</table>
<hr>
</div>
</fieldset>
</div>