Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
talsharien
Senior Member
 
Join Date: Mar 2013
Location: Leeds UK
Posts: 250

Old January 7th, 2016, 03:02 AM
I am creating a variation of an existing spell, Cure Light Wounds.

I create my variant and replace the original id (including making multiple versions of the spell to cover different caster levels for ranger etc) and it works with no problem, except that the description of the spell appears twice in the text.

This does not happen when I have created a custom spell which does not replace an existing spell so I assume that the problem lies there somewhere, any ideas ?
talsharien is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old January 7th, 2016, 07:36 AM
Add a script to your spell that deletes the SpInfo tag on that spell that is for the original Id - leave the one that's for the new Id in place. The description procedure looks for SpInfo tags other than the item's own and adds the text of that spell to the description of this one (that way, you don't have to re-type Restoration's description text when entering the text for Lesser Restoration (I'm not looking at the book right now, so that might be backwards)).

Replacement items get all the Identity tags from both themselves and the thing they replace, so it makes it look like an additional SpInfo tag was added.
Mathias is offline   #2 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old January 7th, 2016, 09:41 AM
To build upon this Feats do the same exact thing now. Whats worse is that when any other ability has two "SpInfo.?" tags they do NOT gain both spell affects anymore. I will need to report that as a bug.

Which tag is causing this on Feats? I assume "IsFeat.?".

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #3 Reply With Quote
talsharien
Senior Member
 
Join Date: Mar 2013
Location: Leeds UK
Posts: 250

Old January 7th, 2016, 10:28 AM
Thats excelent guys thanks, I did not realise ther desc procedure ran in that way.

And the feats duplicate was my next question so I can shelve that for now as well

talsharien is offline   #4 Reply With Quote
talsharien
Senior Member
 
Join Date: Mar 2013
Location: Leeds UK
Posts: 250

Old February 4th, 2016, 11:33 PM
IS there any chance that someone could give an example as to how to delete the SPInfo tag with a script as I am at a loss.
talsharien is offline   #5 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old February 5th, 2016, 07:08 AM
Pre-Levels/10000
Code:
perform delete[SpInfo.spSleep1]
replacing "spSleep1" with the Id of the spell whose tag you want to delete.

(and actually, the timing is very flexible - I just gave you a recommendation if this code is in its own script. If you need to script anything else on this spell, you can throw that line of code into whatever scripts you need).
Mathias is offline   #6 Reply With Quote
talsharien
Senior Member
 
Join Date: Mar 2013
Location: Leeds UK
Posts: 250

Old February 5th, 2016, 09:16 AM
Awesome dude, works like a charm
talsharien is offline   #7 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old February 5th, 2016, 09:30 AM
Quote:
Originally Posted by Mathias View Post
Pre-Levels/10000
Code:
perform delete[SpInfo.spSleep1]
replacing "spSleep1" with the Id of the spell whose tag you want to delete.

(and actually, the timing is very flexible - I just gave you a recommendation if this code is in its own script. If you need to script anything else on this spell, you can throw that line of code into whatever scripts you need).
This is a nice work around but any ETA when the "official" fix will be out for this issue. Its not just spells as it affects 'every' Thing that does a Replaces Thing ID in pathfinder now.

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #8 Reply With Quote
talsharien
Senior Member
 
Join Date: Mar 2013
Location: Leeds UK
Posts: 250

Old February 6th, 2016, 05:42 AM
For some reason this work around is not working when applied to the cure light wounds spell?
talsharien is offline   #9 Reply With Quote
osopolare
Junior Member
 
Join Date: Apr 2011
Posts: 21

Old November 28th, 2016, 10:07 PM
Quote:
Originally Posted by Mathias View Post
Pre-Levels/10000
Code:
perform delete[SpInfo.spSleep1]
replacing "spSleep1" with the Id of the spell whose tag you want to delete.

(and actually, the timing is very flexible - I just gave you a recommendation if this code is in its own script. If you need to script anything else on this spell, you can throw that line of code into whatever scripts you need).
Newb question here: I'm finding the same issue with some mundane equipment. Double description. I'm trying to make the same fix work but I can't figure out what the tag type is for an item description. How does one figure that out?

Thank you.
osopolare is offline   #10 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:57 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.