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
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old July 2nd, 2013, 11:59 AM
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)]
I'm using this code after investigating the ability fields and spotting that the summary is identified with the ID abSumm.

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)]
I've tried altering the phase / Priority to Render 10000.

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.
bodrin is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old July 2nd, 2013, 12:27 PM
Just change field[abSumm].text directly.
Mathias is offline   #2 Reply With Quote
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old July 3rd, 2013, 08:43 AM
Quote:
Originally Posted by Mathias View Post
Just change field[abSumm].text directly.
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)]
Syntax error in 'eval' script for Thing 'fWoWRedFe' (Eval Script '#2') on line 3
-> 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
bodrin is offline   #3 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old July 3rd, 2013, 08:49 AM
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.
Aaron is offline   #4 Reply With Quote
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old July 3rd, 2013, 08:56 AM
Quote:
Originally Posted by Aaron View Post
Render 10000
Code:
hero.childfound[UNIQUEID].field[abSumm].text = "THIS IS THE NEW SUMMARY"
Banging head upon table, repeatedly.
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.
bodrin is offline   #5 Reply With Quote
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old July 3rd, 2013, 10:57 AM
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)]
The summary text script works without a hitch though.

Code:
hero.childfound[UNIQUEID].field[abSumm].text = "THIS IS THE NEW SUMMARY"
Weird?!?@??

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
bodrin is offline   #6 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old July 3rd, 2013, 11:36 AM
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.
ShadowChemosh is offline   #7 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old July 3rd, 2013, 11:45 AM
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"]
Aaron is offline   #8 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old July 3rd, 2013, 11:46 AM
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.
Aaron is offline   #9 Reply With Quote
bodrin
Senior Member
 
Join Date: Feb 2007
Location: Nottinghamshire, United Kingdom
Posts: 1,265

Old July 4th, 2013, 06:58 AM
Quote:
Originally Posted by Aaron View Post
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.
Tried the example provided

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."]
and got this error

HTML Code:
Syntax error in 'eval' script for Thing 'fWoWWitTou' (Eval Script '#3') on line 11
  -> Invalid amendthing syntax used
also tried this macro

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."]
resulting in this error message

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
Officially befuddled!?@%£%%£$!?

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
bodrin 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 11:32 PM.


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