Thread: PF2CreatureParser Extension
-
April 4th, 2022, 16:54 #171
You don't need to change that text. Just insert the word "Creature" prior to the level.
Add the type of spells after 'Divine' (I'm assuming Innate?)
Make sure you have blank lines between each ability so the parser knows where each one starts.
After making those 3 changes, the stat block parsed correctly for me. Here's the edited stat block:
Code:Nualia Warpriest of Lamashtu Creature 5 CE MEDIUM HUMANOID HUMAN AASIMAR Perception +11; darkvision Skills Intimidation +11 , Medicine +13 , Religion +11 , Survival +11 (Assurance), Lamashtu Lore +7 Str +4, Dex +1, Con +2, Int +0, Wis +4, Cha +2 Incredible initiative +2 to initiative Emblazoned Armament Weapon serves as holy symbol +1 status bonus to damage using the Falchion (already included) Intimidating Prowess +1 to intimidation Fighter Dedication AC 22 (23 with shield spell); Fort +11, Ref +8, Will +13 HP 63 (Toughness) Speed 25 feet Shield Block [[R]] Hardness 10 from shield spell. Once used cannot be used again for 10 minutes. Melee [[A]] +1 striking falchion +12 (sweep, forceful, emblazoned), Damage 2d10+5 slashing Ranged [[A]] composite longbow +9 (Deadly d10, Propulsive, Volley 30 ft.), Damage 1d8+2 piercing Divine Innate Spells DC 21, attack +11; 3rd Animal Form, Fear, Harm, Harm, Harm; 2nd Dispel Magic, See Invisibility, Spiritual Weapon; 1st Command, Protection, Sanctuary, Athletic Rush (focus); Cantrips (3rd) Light (innate), Detect Magic, Divine Lance, Message, Prestidigitation, Shield (hardness 10) Athletic Rush [[A]] (focus, transmutation, somatic) Duration 1 round. Your body fills with physical power and skill. You gain a +10-foot status bonus to Speed and a +2 status bonus to Athletics checks. As a part of Casting this Spell, you can use a Stride, Leap, Climb, or Swim action. The spell's bonuses apply during that action. Intimidating Glare [[A]] (Visual,Concentrate,Emotion,Mental) With just a glance you can shake an enemy’s resolve. Choose a creature within 30 feet of you who you’re aware of. Attempt an Intimidation check (adding 1 for Initmidating Prowess) against that target’s Will DC. The target must be able to clearly see you. Regardless of your result, the target is temporarily immune to your attempts to Demoralize it for 10 minutes. Critical Success The target becomes frightened 2. Success The target becomes frightened 1. Shield [[A]] Nualia casts shield whenever she has a 3rd action free
-
April 12th, 2022, 20:50 #172
- Join Date
- Nov 2020
- Posts
- 1
Really need to see a sample of what is expected for input. Can you make up a creature and paste the input to parse? Oh, sorry I didn't see the previous post.
Last edited by jayleew; April 12th, 2022 at 20:51. Reason: Blind
-
April 14th, 2022, 09:32 #173
-
June 25th, 2022, 17:49 #174
Version 1.2.7 uploaded to the forge, and attached to post #2. Spell parsing improvements and stability enhancements.
-
January 19th, 2023, 05:07 #175
-
February 13th, 2023, 12:01 #176
- Join Date
- Aug 2019
- Posts
- 24
For enhanced compatibility(after release 19 everything will became broken) I recommend to do this fix for adding Parcer tab. This part was taken from here:
https://github.com/MostTornBrain/Coh...npc_PFRPG2.xml
so, I am not the author of this method.
The fix is
<root>
<windowclass name="npc" merge="join">
<script>
<!--
For reasons I don't understand, trying to add the "parse" tab
via the usual window sheetdata merge, PFRPG2 does something wonky in
reaction to the <tabs_sheetdata>, so this needs to be done via an init function.
-->
function onInit()
tabs.addTab("parse", "tab_parse", false);
super.onInit();
end
</script>
<script file="campaign/scripts/npc.lua" />
<sheetdata>
<subwindow_record name="parse">
<class>npc_parse</class>
</subwindow_record>
<scrollbar_record>
<target>parse</target>
</scrollbar_record>
</sheetdata>
</windowclass>
In other words "tabs.addTab("parse", "tab_parse", false);" should be added to campaign/scripts/npc.lua" in onInit function and <script>....</script> should be removed
I have same problems with Map Parcels extention, so it can be fixed with the same way for pathfinder2.
The problem with hooks will be fixed tomorrow, according https://www.fantasygrounds.com/forum...l=1#post677884Last edited by rennyo; February 13th, 2023 at 15:40. Reason: fix
-
February 16th, 2023, 19:22 #177
I'll fix this when v19 comes out. Still seems to be working just fine currently.
-
February 16th, 2023, 20:00 #178
Version 1.2.8 has been released to the Forge. See post #1 for details (does not include the fix above yet).
-
February 16th, 2023, 21:57 #179Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
February 22nd, 2023, 15:22 #180
Hey Derrenan
I was wondering if you wanted to include a JSON converter in this extension? I have got the code to open up a JSON file that is saved on your hard drive and convert it into a LUA table. I started setting up the script to setValues to all the fields but I realized there is going to be a lot of duplication wrt that portion. Because its a table its pretty easy to find the correct values. If not its cool I can finish this off as I have time. Here is an image to show what I am talking about and a link to the website that was shared with me.
https://monster.pf2.tools/
Attachment 56313https://forge.fantasygrounds.com/shop/items/199/view
Old School Essentials Ruleset
https://www.dmsguild.com/product/352...eon-Builder-5E
5e Random Dungeon Generator!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks