Senior Member
Join Date: Mar 2013
Location: Leeds UK
Posts: 250
|
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 ? |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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. |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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. |
#3 |
Senior Member
Join Date: Mar 2013
Location: Leeds UK
Posts: 250
|
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 |
#4 |
Senior Member
Join Date: Mar 2013
Location: Leeds UK
Posts: 250
|
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.
|
#5 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Pre-Levels/10000
Code:
perform delete[SpInfo.spSleep1] (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). |
#6 |
Senior Member
Join Date: Mar 2013
Location: Leeds UK
Posts: 250
|
Awesome dude, works like a charm
|
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
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. |
|
#8 |
Senior Member
Join Date: Mar 2013
Location: Leeds UK
Posts: 250
|
For some reason this work around is not working when applied to the cure light wounds spell?
|
#9 |
Junior Member
Join Date: Apr 2011
Posts: 21
|
Quote:
Thank you. |
|
#10 |
|
|