-
November 7th, 2016, 08:26 #71
Is there a way to run this on load? That way I can assure that upon extension load, it can run this 'setup' scriptlet to attach it to the npc record type when it is loaded by the master index.
-
November 7th, 2016, 08:43 #72
You can call the script in your extension.xml and it will run when it loads the extension - eg at load time.
-
November 7th, 2016, 08:43 #73
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,564
Yes, just add it to any onInit function on any global script.
Regards,
JPG
-
November 7th, 2016, 11:06 #74Code:
38 <script> 39 function onInit() 40 LibraryData.addIndexButton("npc","cgen_button_launch"); 41 end 42 </script>
I'll look at it some time Wednesday; you can peek around the git hub in cgen/xml/windows/cgen_window.xml for where I should insert this; I haven't pushed any of these preliminary changes so it's currently at the masterindex hack. I'll be out and about the next two days to stop an angry orange man from duping more people.
-
November 7th, 2016, 12:16 #75
-
November 7th, 2016, 17:52 #76
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,564
All global scripts have to be named, so that one is probably not running.
Regards,
JPG
-
November 8th, 2016, 03:18 #77
Greetings Ken L,
I've downloaded, and am practicing with CGen. I have tried parsing a number of SRD entries, and they work quite well. However, my first attempt at trying a .pdf is failing miserably.
So, with that in mind, I have a question that is simple to ask, but might require the exchange of additional information. You tell me.
I pulled the text for "The Skinsaw Man" out of the Skinsaw Murders chapter of Rise of the Runelords, Anniversary Edition, Page 107. I have done various manipulations on it (based on your video guidance), and it parses. However, I can't seem to get the Offense block to parse correctly.
Let me know if you don't have the .pdf, and I'll post the relevant content (hopefully, an extract is covered under the Fair Use act).
Anyway, my question is this: What must be done to that example .pdf input, to have it correctly parse that NPC?
I have, pretty much, tried everything I can think of, and it never really gets the Attack section correct. I'm hoping, if you have the .pdf, that you can just show me what must be done to make that one work.
Thanks.
- s.west
-
November 8th, 2016, 03:20 #78Private 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!
-
November 8th, 2016, 04:16 #79
Patriarch
- Join Date
- Nov 2015
- Posts
- 378
Swest,
I copied from the pdf and found the following alterations necessary:
a) added in /+7 to war razor and changed the m-dash in between the 19 and 20 to a regular dash
b) changed "and" to "plus" under the bite damage (the parser prefers plus x plus y to plus x and y)
c) deleted the line break after the first "plus" for bite
The attacks parsed properly after those changes
-
November 8th, 2016, 04:23 #80
Patriarch
- Join Date
- Nov 2015
- Posts
- 378
Ken,
Don't know if it would be possible in future versions to include the most commonly used metamagic (extended, quickened, maximized, empowered) to the spell parsing? Right now my work-around has been to modify the statblock to move the metamagic to parenthesis after the spell name. It's been working, and the issue/error reporting has kept me from missing any, but if the code could be done, that'd been cool, too.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks