Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
I'm attempting to append / change the summary text of the vampires blood drain ability.
I've successfully managed to alter the description contained in the main text body utilising this code. Code:
First 1000 ~ change the Vampire Blood Drain text to our other benefit perform state.thing[xVamBlood].amendthing[description, replace(state.thing[xVamBlood].field[descript].text,"A vampire can suck blood from a grappled opponent; if the vampire establishes or maintains a pin, it drains blood, dealing 1d4 points of Constitution damage. The vampire heals 5 hit points or gains 5 temporary hit points for 1 hour (up to a maximum number of temporary hit points equal to its full normal hit points) each round it drains blood.","A vampire can suck blood from a grappled opponent; if the vampire establishes or maintains a pin, it drains blood, dealing 1d6 Constitution damage The vampire heals 10 hit points or gains 10 temporary hit points for 1 hour (up to a maximum number of temporary hit points equal to its full normal hit points) each round it drains blood.",0)] The following script compiles and appears to work correctly, However I'm unable to alter / change the ability summary text, I keep getting this error. HTML Code:
Cannot amend thing 'xVamBlood' with an empty name or description. Code:
First 1000 ~ change the Vampire Blood Drain summary to our new improved summary perform state.thing[xVamBlood].amendthing[description, replace(state.thing[xVamBlood].field[abSumm].text,"Suck blood for 1d4 CON dam and gain 5 Hp when pin foe","Suck blood for 1d6 CON dam and gain 10 Hp when pin foe",0)] Also tried #appendsumm just in case there was a macro to change the summary text. and tried amendthing[summary to no avail. ?? Dormio Forte Somnio Community Created Resources : Data Package Repositories : d20pfsrd Custom Character Sheets Community Server Setup (Packs) Hero Lab Help- Video Tutorials and Pathfinder FAQ Created by the community for the community
Last edited by bodrin; July 2nd, 2013 at 12:06 PM. |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
Just change field[abSumm].text directly.
|
#2 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
This may seem obvious to you but How?
I can't seem to alter the summary text at all, is it even possible utilising the scripts? I have numerous errors occuring Hero Lab was forced to stop compilation after the following errors were detected: Syntax error in 'eval' script for Thing 'fWoWRedFe' (Eval Script '#2') on line 3 -> Invalid use of a reserved word in script Last script tried Code:
perform state.thing[xVamBlood].amendthing[description, replace(state.thing[abSumm].field[text].text,"OUR TEXT SUMMARY HERE",0)] -> Reference to undeclared variable: 'state' Syntax error in 'eval' script for Thing 'fWoWRedFe' (Eval Script '#2') on line 3 -> Invalid amendthing syntax used Syntax error in 'eval' script for Thing 'fWoWRedFe' (Eval Script '#2') on line 3 -> Non-existent thing 'abSumm' used by script I also can't get all the instances of Blood Drain to disappear when I add my custom feat. I've tried a perform hero.childfound[xVamBlood].delete method but that doesn't seem to work. Priority 500 upwards Dormio Forte Somnio Community Created Resources : Data Package Repositories : d20pfsrd Custom Character Sheets Community Server Setup (Packs) Hero Lab Help- Video Tutorials and Pathfinder FAQ Created by the community for the community
Last edited by bodrin; July 3rd, 2013 at 08:50 AM. Reason: addendum |
#3 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Render 10000
Code:
hero.childfound[UNIQUEID].field[abSumm].text = "THIS IS THE NEW SUMMARY" Last edited by Aaron; July 3rd, 2013 at 08:54 AM. |
#4 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
Quote:
Banging head upon table, repeatedly. Banging head upon table, repeatedly. Banging head upon table, repeatedly. It's always that easy isn't it? Thank you. Now just to find out how to remove all the instances of Blood Drain except the new custom version. Dormio Forte Somnio Community Created Resources : Data Package Repositories : d20pfsrd Custom Character Sheets Community Server Setup (Packs) Hero Lab Help- Video Tutorials and Pathfinder FAQ Created by the community for the community
Last edited by bodrin; July 3rd, 2013 at 08:56 AM. Reason: Forgot to say thank you. |
|
#5 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
Okay I've now got a new yet related problem. I thought my earlier change the blood drain description script would work for the Lich template touch attack ability but I get a derived field error, presume the xLichTouch description field is altered differently?
Code:
First 1000 ~ change the Lich negative touch text to our other benefit perform state.thing[xLichTouch].amendthing[description, replace(state.thing[xLichTouch].field[descript].text,"OUR CUSTOM DESCRIPTION HERE",0)] Code:
hero.childfound[UNIQUEID].field[abSumm].text = "THIS IS THE NEW SUMMARY" Dormio Forte Somnio Community Created Resources : Data Package Repositories : d20pfsrd Custom Character Sheets Community Server Setup (Packs) Hero Lab Help- Video Tutorials and Pathfinder FAQ Created by the community for the community
|
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Usually the HL standard is to use the #appenddesc[] macro to append new text on to the Thing with the updated/changed rules. This way the gamer has all the original information and the info on how the ability was modified.
Wouldn't that be the better way to go and easier to use the Macro then? 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. |
#7 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
I've not worked with amendthings much, but I think the issue might be in the replace there in the middle. Try:
Code:
perform state.thing[xLichTouch].amendthing[description,"OUR CUSTOM DESCRIPTION HERE"] |
#8 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
ShadowChemosh is right, we do already have a macro which appends some text to the description, and that's what we usually use. You'd have to use Amendthing if you wanted to overwite the existing text though.
|
#9 |
Senior Member
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265
|
Quote:
Code:
perform state.thing[xLichTouch].amendthing[description,"Your touch attack deals 2d8 points of negative energy damage +1 point of damage per Hit Dice of the lich. If you use your touch attack to heal any undead (includng yourself) the undead heals at this improved rate."] HTML Code:
Syntax error in 'eval' script for Thing 'fWoWWitTou' (Eval Script '#3') on line 11 -> Invalid amendthing syntax used Code:
#appenddesc[xLichTouch,"{b}Withering Touch{/b}: Your touch attack deals 2d8 points of negative energy damage +1 point of damage per Hit Dice of the lich. If you use your touch attack to heal any undead (includng yourself) the undead heals at this improved rate."] Hero Lab was forced to stop compilation after the following errors were detected: HTML Code:
Syntax error in 'eval' script for Thing 'fWoWWitTou' (Eval Script '#4') on line 1 -> Invalid macro reference encountered in script Dormio Forte Somnio Community Created Resources : Data Package Repositories : d20pfsrd Custom Character Sheets Community Server Setup (Packs) Hero Lab Help- Video Tutorials and Pathfinder FAQ Created by the community for the community
|
|
#10 |
Thread Tools | |
Display Modes | |
|
|