Skip to content

Instantly share code, notes, and snippets.

@goblinHordes
Created November 19, 2013 02:50
Show Gist options
  • Save goblinHordes/7539483 to your computer and use it in GitHub Desktop.
Save goblinHordes/7539483 to your computer and use it in GitHub Desktop.
Example import of Pathfinder SRD data
var monsterAttributes = ['AC', 'XP', 'CR', 'Size', 'HP', 'HD', 'Fort', 'Ref', 'Will',
'Str', 'Dex', 'Con', 'Int', 'Wis', 'Cha'];
var monsterManual = [
{
"Name": "Janiven",
"CR": "2",
"XP": "600",
"Race": "human",
"Class": "ranger 3",
"MonsterSource": null,
"Alignment": "CG",
"Size": "Medium",
"Type": "humanoid",
"SubType": null,
"Init": "+3 (+5 urban)",
"Senses": "Perception +9 (+11 urban)",
"Aura": null,
"AC": "AC 17, touch 13, flat-footed 14",
"AC_Mods": "(+4 armor, +2 Dex, +1 dodge)",
"HP": "24",
"HD": "(3d10+3)",
"HP_Mods": null,
"Saves": "Fort +4, Ref +5, Will +2",
"Fort": "4",
"Ref": "5",
"Will": "2",
"Save_Mods": null,
"DefensiveAbilities": null,
"DR": null,
"Immune": null,
"Resist": null,
"SR": null,
"Weaknesses": null,
"Speed": "35 ft.",
"Speed_Mod": null,
"Melee": "mwk longsword +4 (1d8/19-20)",
"Ranged": "mwk longbow +7 (1d8/x3)",
"Space": "5 ft.",
"Reach": "5 ft.",
"SpecialAttacks": "favored enemy (human +2)",
"SpellLikeAbilities": null,
"SpellsKnown": null,
"SpellsPrepared": null,
"SpellDomains": null,
"AbilityScores": "Str 10, Dex 15, Con 12, Int 10, Wis 13, Cha 14",
"AbilityScore_Mods": null,
"BaseAtk": "3",
"CMB": "3",
"CMD": "16",
"Feats": "Alertness, Dodge, Endurance, Fleet, Precise Shot",
"Skills": "Diplomacy +3, Handle Animal +6, Heal +4, Intimidate +6, Knowledge (history) +1, Knowledge (local) +3, Knowledge (nature) +4, Perception +9 (+11 urban), Ride +5, Sense Motive +8, Stealth +8 (+10 urban), Survival +7 (+11 urban), Swim +3",
"RacialMods": null,
"Languages": "Common",
"SQ": "favored terrain (urban +2), track +1, wild empathy +5",
"Environment": null,
"Organization": null,
"Treasure": null,
"Description_Visual": null,
"Group": null,
"Source": "AP 25",
"IsTemplate": "0",
"SpecialAbilities": null,
"Description": null,
"FullText": "<link rel=\"stylesheet\"href=\"PF.css\"><div class=\"heading\"><p class=\"alignleft\">Janiven</p><p class=\"alignright\">CR 2</p><div style=\"clear: both;\"></div></div><div><h5><b>XP </b>600</h5><h5>Female human ranger 3</h5><h5>CG Medium humanoid </h5><h5><b>Init </b>+3 (+5 urban); <b>Senses </b>Perception +9 (+11 urban)</h5></div><hr/><div><h5><b>DEFENSE</b></h5></div><hr/><div><h5><b>AC </b>AC 17, touch 13, flat-footed 14 (+4 armor, +2 Dex, +1 dodge)</h5><h5><b>hp </b>24 (3d10+3)</h5><h5><b>Fort </b>+4, <b>Ref </b>+5, <b>Will </b>+2</h5></div><hr/><div><h5><b>OFFENSE</b></h5></div><hr/><div><h5><b>Spd </b>35 ft.</h5><h5><b>Melee </b>mwk longsword +4 (1d8/19-20)</h5><h5><b>Ranged </b>mwk longbow +7 (1d8/x3)</h5><h5><b>Special Attacks </b>favored enemy (human +2)</h5></div><hr/><div><h5><b>TACTICS</b></h5></div><hr/><div><h5><b>Before Combat </b>Janiven tries to find a place to where she can safely fire her bow at enemies, preferably somewhere with cover or higher ground.</h5><h5><b>During Combat </b>Janiven prefers to fight at range and uses her great speed to keep out of reach of melee opponents for as long as she can, leading pursuers near her allies if possible.</h5><h5><b>Morale </b>Janiven surrenders at 4 hp if she believes her opponents will spare her life, otherwise she flees.</h5></div><hr/><div><h5><b>STATISTICS</b></h5></div><hr/><div><h5><b>Str</b> 10, <b>Dex</b> 15, <b>Con</b> 12, <b>Int</b> 10, <b>Wis</b> 13, <b>Cha</b> 14</h5><h5><b>Base Atk </b>+3; <b>CMB </b>+3; <b>CMD </b>16</h5><h5><b>Feats </b>Alertness, Dodge, Endurance, Fleet, Precise Shot</h5><h5><b>Skills </b>Diplomacy +3, Handle Animal +6, Heal +4, Intimidate +6, Knowledge (history) +1, Knowledge (local) +3, Knowledge (nature) +4, Perception +9 (+11 urban), Ride +5, Sense Motive +8, Stealth +8 (+10 urban), Survival +7 (+11 urban), Swim +3</h5><h5><b>Languages </b>Common</h5><h5><b>SQ </b>favored terrain (urban +2), track +1, wild empathy +5</h5><h5><b>Combat Gear </b><i>potion of cure light wounds</i>; <b>Other Gear </b>masterwork chain shirt, masterwork longsword, masterwork longbow with 20 arrows, sunrod, 35 gp</h5></div>",
"Gender": "Female",
"Bloodline": null,
"ProhibitedSchools": null,
"BeforeCombat": "Janiven tries to find a place to where she can safely fire her bow at enemies, preferably somewhere with cover or higher ground.",
"DuringCombat": "Janiven prefers to fight at range and uses her great speed to keep out of reach of melee opponents for as long as she can, leading pursuers near her allies if possible.",
"Morale": "Janiven surrenders at 4 hp if she believes her opponents will spare her life, otherwise she flees.",
"Gear": "potion of cure light wounds",
"OtherGear": "masterwork chain shirt, masterwork longsword, masterwork longbow with 20 arrows, sunrod, 35 gp",
"Vulnerability": null,
"Note": null,
"CharacterFlag": "0",
"CompanionFlag": "0",
"Fly": "0",
"Climb": "0",
"Burrow": "0",
"Swim": "0",
"Land": "1",
"TemplatesApplied": null,
"OffenseNote": null,
"BaseStatistics": null,
"ExtractsPrepared": null,
"AgeCategory": "adult",
"Mystery": null,
"ClassArchetypes": null,
"Patron": null,
"CompanionFamiliarLink": "NULL",
"FocusedSchool": null,
"Traits": null,
"AlternateNameForm": null,
"LinkText": null,
"id": "2",
"UniqueMonster": "0",
"ThassilonianSpecialization": null,
"Variant": "0",
"MR": "0",
"Mythic": "0",
"MT": "0"
},
{
"Name": "Hellknight Armigers",
"CR": "1/3",
"XP": "135",
"Race": "human",
"Class": "warrior 1",
"MonsterSource": null,
"Alignment": "LN",
"Size": "Medium",
"Type": "Humanoid",
"SubType": "(human)",
"Init": "0",
"Senses": "Perception +0",
"Aura": null,
"AC": "16, touch 10, flat-footed 16",
"AC_Mods": "(+6 armor)",
"HP": "9",
"HD": "(1d10+4)",
"HP_Mods": null,
"Saves": "Fort +3, Ref +0, Will -1",
"Fort": "3",
"Ref": "0",
"Will": "-1",
"Save_Mods": null,
"DefensiveAbilities": null,
"DR": null,
"Immune": null,
"Resist": null,
"SR": null,
"Weaknesses": null,
"Speed": "20 ft.",
"Speed_Mod": null,
"Melee": "longsword +2 (1d8+1/19-20)",
"Ranged": "light crossbow +1 (1d8/19-20)",
"Space": "5 ft.",
"Reach": "5 ft.",
"SpecialAttacks": null,
"SpellLikeAbilities": null,
"SpellsKnown": null,
"SpellsPrepared": null,
"SpellDomains": null,
"AbilityScores": "Str 13, Dex 11, Con 12, Int 10, Wis 9, Cha 8",
"AbilityScore_Mods": null,
"BaseAtk": "1",
"CMB": "2",
"CMD": "12",
"Feats": "Power Attack, Toughness",
"Skills": "Climb +0, Intimidate +3, Perception +0",
"RacialMods": null,
"Languages": "Common",
"SQ": null,
"Environment": null,
"Organization": null,
"Treasure": null,
"Description_Visual": null,
"Group": null,
"Source": "AP 25",
"IsTemplate": "0",
"SpecialAbilities": null,
"Description": null,
"FullText": "<link rel=\"stylesheet\"href=\"PF.css\"><div class=\"heading\"><p class=\"alignleft\">Hellknight Armigers</p><p class=\"alignright\">CR 1/3</p><div style=\"clear: both;\"></div></div><div><h5><b>XP </b>135</h5><h5>male human warrior 1</h5><h5>LN Medium Humanoid (human)</h5><h5><b>Init </b>+0; <b>Senses </b>Perception +0</h5></div><hr/><div><h5><b>DEFENSE</b></h5></div><hr/><div><h5><b>AC </b>16, touch 10, flat-footed 16 (+6 armor)</h5><h5><b>hp </b>9 (1d10+4)</h5><h5><b>Fort </b>+3, <b>Ref </b>+0, <b>Will </b>-1</h5></div><hr/><div><h5><b>OFFENSE</b></h5></div><hr/><div><h5><b>Spd </b>20 ft.</h5><h5><b>Melee </b>longsword +2 (1d8+1/19-20)</h5><h5><b>Ranged </b>light crossbow +1 (1d8/19-20)</h5></div><hr/><div><h5><b>TACTICS</b></h5></div><hr/><div><h5><b>During Combat </b>Hellknight armigers compete not only with other groups, but with each other. An armiger does not team up with others to focus attacks on single foes as a result, and if one drops a PC, he takes the next round to gloat and crow over his triumph unless there are other foes immediately adjacent to attack. He drinks a healing potion if reduced to 3 or fewer hit points.</h5><h5><b>Morale </b>Hellknight</h5></div><hr/><div><h5><b>STATISTICS</b></h5></div><hr/><div><h5><b>Str</b> 13, <b>Dex</b> 11, <b>Con</b> 12, <b>Int</b> 10, <b>Wis</b> 9, <b>Cha</b> 8</h5><h5><b>Base Atk </b>+1; <b>CMB </b>+2; <b>CMD </b>12</h5><h5><b>Feats </b>Power Attack, Toughness</h5><h5><b>Skills </b>Climb +0, Intimidate +3, Perception +0</h5><h5><b>Languages </b>Common</h5><h5><b>Combat Gear </b><i>potion of cure light wounds</i>; <b>Other Gear </b>chainmail, longsword, light crossbow with 20 bolts</h5></div>",
"Gender": "Male",
"Bloodline": null,
"ProhibitedSchools": null,
"BeforeCombat": null,
"DuringCombat": "Hellknight armigers compete not only with other groups, but with each other. An armiger does not team up with others to focus attacks on single foes as a result, and if one drops a PC, he takes the next round to gloat and crow over his triumph unless there are other foes immediately adjacent to attack. He drinks a healing potion if reduced to 3 or fewer hit points.",
"Morale": "Hellknight",
"Gear": "potion of cure light wounds",
"OtherGear": "chainmail, longsword, light crossbow with 20 bolts",
"Vulnerability": null,
"Note": null,
"CharacterFlag": "0",
"CompanionFlag": "0",
"Fly": "0",
"Climb": "0",
"Burrow": "0",
"Swim": "0",
"Land": "1",
"TemplatesApplied": null,
"OffenseNote": null,
"BaseStatistics": null,
"ExtractsPrepared": null,
"AgeCategory": "adult",
"Mystery": null,
"ClassArchetypes": null,
"Patron": null,
"CompanionFamiliarLink": "NULL",
"FocusedSchool": null,
"Traits": null,
"AlternateNameForm": null,
"LinkText": null,
"id": "3",
"UniqueMonster": "0",
"ThassilonianSpecialization": null,
"Variant": "0",
"MR": "0",
"Mythic": "0",
"MT": "0"
},
{
"Name": "Sewer Goblin",
"CR": "1/2",
"XP": "200",
"Race": "Goblin",
"Class": "rogue 1",
"MonsterSource": "Bestiary 156",
"Alignment": "NE",
"Size": "Small",
"Type": "humanoid",
"SubType": "(goblinoid)",
"Init": "1",
"Senses": "darkvision 60 ft.; Perception -1",
"Aura": null,
"AC": "16, touch 14, flat-footed 13",
"AC_Mods": "(+2 armor, +3 Dex, +1 size)",
"HP": "9",
"HD": "(1d8+1)",
"HP_Mods": null,
"Saves": "Fort +1, Ref +5, Will +1",
"Fort": "1",
"Ref": "5",
"Will": "1",
"Save_Mods": null,
"DefensiveAbilities": null,
"DR": null,
"Immune": null,
"Resist": null,
"SR": null,
"Weaknesses": null,
"Speed": "30 ft.",
"Speed_Mod": null,
"Melee": "2 broken dogslicers -6 (1d4-1)",
"Ranged": null,
"Space": "5 ft.",
"Reach": "5 ft.",
"SpecialAttacks": "sneak attack +1d6",
"SpellLikeAbilities": null,
"SpellsKnown": null,
"SpellsPrepared": null,
"SpellDomains": null,
"AbilityScores": "Str 13, Dex 16, Con 13, Int 8, Wis 12, Cha 8",
"AbilityScore_Mods": null,
"BaseAtk": "0",
"CMB": "0",
"CMD": "13",
"Feats": "Two-Weapon Fighting",
"Skills": "Acrobatics +7, Bluff +3, Climb +5, Escape Artist +7, Perception +5, Sleight of Hand +7, Stealth +15, Swim +5",
"RacialMods": "+4 Ride, +4 Stealth",
"Languages": "Goblin",
"SQ": "trapfinding",
"Environment": null,
"Organization": null,
"Treasure": null,
"Description_Visual": null,
"Group": null,
"Source": "AP 25",
"IsTemplate": "0",
"SpecialAbilities": null,
"Description": null,
"FullText": "<link rel=\"stylesheet\"href=\"PF.css\"><div class=\"heading\"><p class=\"alignleft\">Sewer Goblin</p><p class=\"alignright\">CR 1/2</p><div style=\"clear: both;\"></div></div><div><h5><b>XP </b>200</h5><h5>Goblin rogue 1 (Bestiary 156)</h5><h5>NE Small humanoid (goblinoid)</h5><h5><b>Init </b>+1; <b>Senses </b>darkvision 60 ft.; Perception -1</h5></div><hr/><div><h5><b>DEFENSE</b></h5></div><hr/><div><h5><b>AC </b>16, touch 14, flat-footed 13 (+2 armor, +3 Dex, +1 size)</h5><h5><b>hp </b>9 (1d8+1)</h5><h5><b>Fort </b>+1, <b>Ref </b>+5, <b>Will </b>+1</h5></div><hr/><div><h5><b>OFFENSE</b></h5></div><hr/><div><h5><b>Spd </b>30 ft.</h5><h5><b>Melee </b>2 broken dogslicers -6 (1d4-1)</h5><h5><b>Special Attacks </b>sneak attack +1d6</h5></div><hr/><div><h5><b>STATISTICS</b></h5></div><hr/><div><h5><b>Str</b> 13, <b>Dex</b> 16, <b>Con</b> 13, <b>Int</b> 8, <b>Wis</b> 12, <b>Cha</b> 8</h5><h5><b>Base Atk </b>+0; <b>CMB </b>+0; <b>CMD </b>13</h5><h5><b>Feats </b>Two-Weapon Fighting</h5><h5><b>Skills </b>Acrobatics +7, Bluff +3, Climb +5, Escape Artist +7, Perception +5, Sleight of Hand +7, Stealth +15, Swim +5; <b>Racial Modifiers </b>+4 Ride, +4 Stealth</h5><h5><b>Languages </b>Goblin</h5><h5><b>SQ </b>trapfinding</h5><h5><b>Gear </b>leather armor, two broken dogslicers</h5></div>",
"Gender": null,
"Bloodline": null,
"ProhibitedSchools": null,
"BeforeCombat": null,
"DuringCombat": null,
"Morale": null,
"Gear": "leather armor, two broken dogslicers",
"OtherGear": null,
"Vulnerability": null,
"Note": null,
"CharacterFlag": "0",
"CompanionFlag": "0",
"Fly": "0",
"Climb": "0",
"Burrow": "0",
"Swim": "0",
"Land": "1",
"TemplatesApplied": null,
"OffenseNote": null,
"BaseStatistics": null,
"ExtractsPrepared": null,
"AgeCategory": "adult",
"Mystery": null,
"ClassArchetypes": null,
"Patron": null,
"CompanionFamiliarLink": "NULL",
"FocusedSchool": null,
"Traits": null,
"AlternateNameForm": null,
"LinkText": null,
"id": "4",
"UniqueMonster": "0",
"ThassilonianSpecialization": null,
"Variant": "0",
"MR": "0",
"Mythic": "0",
"MT": "0"
},
{
"Name": "Shanwen Shanwen",
"CR": "1/2",
"XP": "200",
"Race": "human",
"Class": "cleric of Asmodeus 1",
"MonsterSource": null,
"Alignment": "LE",
"Size": "Medium",
"Type": "humanoid",
"SubType": null,
"Init": "-1",
"Senses": "Perception +3",
"Aura": null,
"AC": "18, touch 9, flat-footed 18",
"AC_Mods": "(+9 armor, -1 Dex)",
"HP": "14",
"HD": "(1d8+6)",
"HP_Mods": null,
"Saves": "Fort +4, Ref -1, Will +4",
"Fort": "4",
"Ref": "-1",
"Will": "4",
"Save_Mods": null,
"DefensiveAbilities": null,
"DR": null,
"Immune": null,
"Resist": null,
"SR": null,
"Weaknesses": null,
"Speed": "20 ft.",
"Speed_Mod": null,
"Melee": "heavy mace +1 (1d8+1)",
"Ranged": "Large heavy crossbow -3 (2d6/19-20) or fire bolt -1 (1d6 fire)",
"Space": "5 ft.",
"Reach": "5 ft.",
"SpecialAttacks": "channel negative energy 3/day (1d6, DC 10)",
"SpellLikeAbilities": "Domain Spell-Like Abilities (CL 1st) 5/day-fire bolt, touch of law",
"SpellsKnown": null,
"SpellsPrepared": "Cleric Spells Prepared (CL 1st) 1st-command (DC 13), cure light wounds, burning handsD (DC 13) 0-light, mending, stabilize",
"SpellDomains": "(Fire, Law)",
"AbilityScores": "Str 12, Dex 8, Con 14, Int 13, Wis 15, Cha 10",
"AbilityScore_Mods": null,
"BaseAtk": "0",
"CMB": "1",
"CMD": "10",
"Feats": "Heavy Armor Proficiency, Toughness",
"Skills": "Heal +6, Knowledge (planes) +5, Knowledge (religion) +5, Perception +3",
"RacialMods": null,
"Languages": "Common, Infernal",
"SQ": null,
"Environment": null,
"Organization": null,
"Treasure": null,
"Description_Visual": null,
"Group": null,
"Source": "AP 25",
"IsTemplate": "0",
"SpecialAbilities": null,
"Description": null,
"FullText": "<link rel=\"stylesheet\"href=\"PF.css\"><div class=\"heading\"><p class=\"alignleft\">Shanwen Shanwen</p><p class=\"alignright\">CR 1/2</p><div style=\"clear: both;\"></div></div><div><h5><b>XP </b>200</h5><h5>Male human cleric of Asmodeus 1</h5><h5>LE Medium humanoid </h5><h5><b>Init </b>-1; <b>Senses </b>Perception +3</h5></div><hr/><div><h5><b>DEFENSE</b></h5></div><hr/><div><h5><b>AC </b>18, touch 9, flat-footed 18 (+9 armor, -1 Dex)</h5><h5><b>hp </b>14 (1d8+6)</h5><h5><b>Fort </b>+4, <b>Ref </b>-1, <b>Will </b>+4</h5></div><hr/><div><h5><b>OFFENSE</b></h5></div><hr/><div><h5><b>Spd </b>20 ft.</h5><h5><b>Melee </b>heavy mace +1 (1d8+1)</h5><h5><b>Ranged </b>Large heavy crossbow -3 (2d6/19-20) or </br>fire bolt -1 (1d6 fire)</h5><h5><b>Special Attacks </b>channel negative energy 3/day (1d6, DC 10)</h5><h5><b>Domain Spell-Like Abilities</b> (CL 1st)</br><i>5/day&mdash;fire bolt</i>, <i>touch of law</i></h5></h5><h5><b>Cleric Spells Prepared</b> (CL 1st)</br><i>1st&mdash;command</i> (DC 13),<i> cure light wounds</i>, <i>burning hands</i><sup>D</sup> (DC 13)</br><i>0&mdash;light</i>,<i> mending</i>, <i>stabilize</i></h5></h5><h5><b>D</b> domain spell (Fire, Law)</h5></div><hr/><div><h5><b>TACTICS</b></h5></div><hr/><div><h5><b>During Combat </b>Shanwen clambers up to use the Large crossbow, but if a PC makes it to his carriage, he uses burning hands against the largest group of foes. He only channels negative energy if he's surrounded by enemies and no Hellknights are in the area.</h5><h5><b>Morale </b>Shanwen is too proud to surrender, and fights until defeated.</h5></div><hr/><div><h5><b>STATISTICS</b></h5></div><hr/><div><h5><b>Str</b> 12, <b>Dex</b> 8, <b>Con</b> 14, <b>Int</b> 13, <b>Wis</b> 15, <b>Cha</b> 10</h5><h5><b>Base Atk </b>+0; <b>CMB </b>+1; <b>CMD </b>10</h5><h5><b>Feats </b>Heavy Armor Proficiency, Toughness</h5><h5><b>Skills </b>Heal +6, Knowledge (planes) +5, Knowledge (religion) +5, Perception +3</h5><h5><b>Languages </b>Common, Infernal</h5><h5><b>Combat Gear </b><i>potion of cure light wounds</i>; <b>Other Gear </b>full plate, heavy mace, wooden holy symbol, prison carriage key</h5></div>",
"Gender": "Male",
"Bloodline": null,
"ProhibitedSchools": null,
"BeforeCombat": null,
"DuringCombat": "Shanwen clambers up to use the Large crossbow, but if a PC makes it to his carriage, he uses burning hands against the largest group of foes. He only channels negative energy if he's surrounded by enemies and no Hellknights are in the area.",
"Morale": "Shanwen is too proud to surrender, and fights until defeated.",
"Gear": "potion of cure light wounds",
"OtherGear": "full plate, heavy mace, wooden holy symbol, prison carriage key",
"Vulnerability": null,
"Note": null,
"CharacterFlag": "0",
"CompanionFlag": "0",
"Fly": "0",
"Climb": "0",
"Burrow": "0",
"Swim": "0",
"Land": "1",
"TemplatesApplied": null,
"OffenseNote": null,
"BaseStatistics": null,
"ExtractsPrepared": null,
"AgeCategory": "adult",
"Mystery": null,
"ClassArchetypes": null,
"Patron": null,
"CompanionFamiliarLink": "NULL",
"FocusedSchool": null,
"Traits": null,
"AlternateNameForm": null,
"LinkText": null,
"id": "5",
"UniqueMonster": "0",
"ThassilonianSpecialization": null,
"Variant": "0",
"MR": "0",
"Mythic": "0",
"MT": "0"
},
{
"Name": "Arael",
"CR": "2",
"XP": "600",
"Race": "half-elf",
"Class": "cleric of Iomedae 3",
"MonsterSource": null,
"Alignment": "LG",
"Size": "Medium",
"Type": "humanoid",
"SubType": null,
"Init": "1",
"Senses": "low-light vision; Perception +4",
"Aura": null,
"AC": "17, touch 11, flat-footed 16",
"AC_Mods": "(+6 armor, +1 Dex)",
"HP": "20",
"HD": "(3d8+3)",
"HP_Mods": null,
"Saves": "Fort +4, Ref +2, Will +5",
"Fort": "4",
"Ref": "2",
"Will": "5",
"Save_Mods": null,
"DefensiveAbilities": null,
"DR": null,
"Immune": null,
"Resist": null,
"SR": null,
"Weaknesses": null,
"Speed": "20 ft.",
"Speed_Mod": null,
"Melee": "mwk longsword +3 (1d8/19-20)",
"Ranged": "light crossbow +3 (1d8/19-20)",
"Space": "5 ft.",
"Reach": "5 ft.",
"SpecialAttacks": "channel positive energy 5/day (2d6, DC 13)",
"SpellLikeAbilities": "Domain Spell-Like Abilities (CL 3rd) 5/day-battle rage, touch of good",
"SpellsKnown": null,
"SpellsPrepared": "Cleric Spells Prepared (CL 3rd) 2nd-hold person (DC 14), sound burst (already cast), spiritual weaponD 1st-bless (2), protection from evilD, shield of faith (already cast) 0-guidance, light, stabilize, virtue",
"SpellDomains": "(Good, War)",
"AbilityScores": "Str 10, Dex 12, Con 13, Int 10, Wis 15, Cha 14",
"AbilityScore_Mods": null,
"BaseAtk": "2",
"CMB": "2",
"CMD": "13",
"Feats": "Alignment Channel, Pick Alignment, Brew Potion, Skill Focus (Knowledge [local])",
"Skills": "Diplomacy +8, Heal +6, Knowledge (history) +4, Knowledge (local) +4, Knowledge (planes) +4, Knowledge (religion) +4, Sense Motive +6",
"RacialMods": null,
"Languages": "Common, Elven",
"SQ": "elf blood, elven immunities",
"Environment": null,
"Organization": null,
"Treasure": null,
"Description_Visual": null,
"Group": null,
"Source": "AP 25",
"IsTemplate": "0",
"SpecialAbilities": null,
"Description": null,
"FullText": "<link rel=\"stylesheet\"href=\"PF.css\"><div class=\"heading\"><p class=\"alignleft\">Arael</p><p class=\"alignright\">CR 2</p><div style=\"clear: both;\"></div></div><div><h5><b>XP </b>600</h5><h5>Male half-elf cleric of Iomedae 3</h5><h5>LG Medium humanoid </h5><h5><b>Init </b>+1; <b>Senses </b>low-light vision; Perception +4</h5></div><hr/><div><h5><b>DEFENSE</b></h5></div><hr/><div><h5><b>AC </b>17, touch 11, flat-footed 16 (+6 armor, +1 Dex)</h5><h5><b>hp </b>20 (3d8+3)</h5><h5><b>Fort </b>+4, <b>Ref </b>+2, <b>Will </b>+5</h5></div><hr/><div><h5><b>OFFENSE</b></h5></div><hr/><div><h5><b>Spd </b>20 ft.</h5><h5><b>Melee </b>mwk longsword +3 (1d8/19-20)</h5><h5><b>Ranged </b>light crossbow +3 (1d8/19-20)</h5><h5><b>Special Attacks </b>channel positive energy 5/day (2d6, DC 13)</h5><h5><b>Domain Spell-Like Abilities</b> (CL 3rd)</br><i>5/day&mdash;battle rage</i>, <i>touch of good</i></h5></h5><h5><b>Cleric Spells Prepared</b> (CL 3rd)</br><i>2nd&mdash;hold person</i> (DC 14), <i>sound burst</i> (already cast),<i> spiritual weaponD</i> </br><i>1st&mdash;bless</i> (2), <i>protection from evil</i><sup>D</sup>, <i>shield of faith</i> (already cast)</br><i>0&mdash;guidance</i>,<i> light</i>,<i> stabilize</i>, <i>virtue</i></h5></h5><h5><b>D</b> domain spell (Good, War)</h5></div><hr/><div><h5><b>TACTICS</b></h5></div><hr/><div><h5><b>Before Combat </b>Arael casts guidance and virtue on any unskilled rebels present and protection from evil and shield of faith on anyone he believes is especially vulnerable.</h5><h5><b>During Combat </b>Arael casts bless if he has allies, uses sound burst in the hopes of stunning multiple opponents, and hold person to disable a dangerous adversary.</h5><h5><b>Morale </b>Arael surrenders when he reaches 5 hp if he believes his foe will accept a surrender. He is willing to hold off an enemy even at great risk to himself if it gives his allies more time to succeed at a task or escape, but prefers to make a tactical retreat rather than dying needlessly.</h5></div><hr/><div><h5><b>STATISTICS</b></h5></div><hr/><div><h5><b>Str</b> 10, <b>Dex</b> 12, <b>Con</b> 13, <b>Int</b> 10, <b>Wis</b> 15, <b>Cha</b> 14</h5><h5><b>Base Atk </b>+2; <b>CMB </b>+2; <b>CMD </b>13</h5><h5><b>Feats </b>Alignment Channel, Pick Alignment, Brew Potion, Skill Focus (Knowledge [local])</h5><h5><b>Skills </b>Diplomacy +8, Heal +6, Knowledge (history) +4, Knowledge (local) +4, Knowledge (planes) +4, Knowledge (religion) +4, Sense Motive +6</h5><h5><b>Languages </b>Common, Elven</h5><h5><b>SQ </b>elf blood, elven immunities</h5><h5><b>Combat Gear </b><i>potion of cure light wounds</i>, <i>potion of bull's strength</i>; <b>Other Gear </b>breastplate, masterwork longsword, dagger, light crossbow, 20 bolts, 60 gp</h5></div>",
"Gender": "Male",
"Bloodline": null,
"ProhibitedSchools": null,
"BeforeCombat": "Arael casts guidance and virtue on any unskilled rebels present and protection from evil and shield of faith on anyone he believes is especially vulnerable.",
"DuringCombat": "Arael casts bless if he has allies, uses sound burst in the hopes of stunning multiple opponents, and hold person to disable a dangerous adversary.",
"Morale": "Arael surrenders when he reaches 5 hp if he believes his foe will accept a surrender. He is willing to hold off an enemy even at great risk to himself if it gives his allies more time to succeed at a task or escape, but prefers to make a tactical retreat rather than dying needlessly.",
"Gear": "potion of cure light wounds, potion of bull's strength",
"OtherGear": "breastplate, masterwork longsword, dagger, light crossbow, 20 bolts, 60 gp",
"Vulnerability": null,
"Note": null,
"CharacterFlag": "0",
"CompanionFlag": "0",
"Fly": "0",
"Climb": "0",
"Burrow": "0",
"Swim": "0",
"Land": "1",
"TemplatesApplied": null,
"OffenseNote": null,
"BaseStatistics": null,
"ExtractsPrepared": null,
"AgeCategory": "adult",
"Mystery": null,
"ClassArchetypes": null,
"Patron": null,
"CompanionFamiliarLink": "NULL",
"FocusedSchool": null,
"Traits": null,
"AlternateNameForm": null,
"LinkText": null,
"id": "6",
"UniqueMonster": "0",
"ThassilonianSpecialization": null,
"Variant": "0",
"MR": "0",
"Mythic": "0",
"MT": "0"
}
]
on('ready', function() {
_.each(monsterManual, function (monsterData){
log(monsterData.Name);
var character = createObj('character', {
name: monsterData.Name,
gmnotes: monsterData.FullText,
});
//*/
_.each(monsterAttributes, function(attr) {
var max = "";
var cur = "";
var re;
switch(attr){
case 'AC':
cur = parseInt(monsterData[attr].match(/(\d+)/)[1]);
break;
case 'Str':
case 'Dex':
case 'Con':
case 'Int':
case 'Wis':
case 'Cha':
re = new RegExp(attr + "\\s*(\\d*).*");
cur = parseInt(monsterData['AbilityScores'].match(re)[1]);
break;
case 'HD':
case 'Size':
case 'CR':
cur = monsterData[attr];
break;
case 'HP':
cur = parseInt(monsterData[attr]);
max = cur;
break;
default:
cur = parseInt(monsterData[attr]);
break;
}
log([attr, cur, max].join(':'))
createObj('attribute', {
_characterid: character.id,
name: attr,
max: max,
current: cur
});
//*/
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment