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
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old June 1st, 2015, 03:46 PM
How do you use DescAppend in a script?
Frodie is offline   #1 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old June 1st, 2015, 03:54 PM
Same as any other text field. What do you want to do?
Aaron is offline   #2 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old June 1st, 2015, 04:06 PM
I am trying to add something to the tStartText
Frodie is offline   #3 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old June 1st, 2015, 04:41 PM
The text on the Journal page? Why would you want to change that?

Anyway, DescAppend is only for picks of the ability component, it doesn't interact with herofields at all. tStartText is derived, so I think you should be able to modify it with scripts directly, after PostAttr 10000 when it is set.
Aaron is offline   #4 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old June 1st, 2015, 05:56 PM
Cool, thank you
Frodie is offline   #5 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old June 1st, 2015, 06:06 PM
This the script and the error I get -

hero.child[journal].field[tStartText].text = "USD " & field[trkMax].value


Hero Lab was forced to stop compilation after the following errors were detected:

Syntax error in 'eval' script for Thing 'abGHMPUSD' (Eval Script '#2') on line 1
-> Attempt to access value-based field 'tStartText' as text.

Sorry forgot to add the "DescAppend" in
Frodie is offline   #6 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old June 1st, 2015, 09:52 PM
The pick you transition to is incorrect. Hero fields are on the totals pick, but can be referenced with the herofield transition:

herofield[tStartText].text

Are you trying to mod in a new currency type, like United States Dollars? If so, I don't think that's going to work, because the purchase mechanics are all internal. You could have a tracker on the in-play tab, but nothing you do is going to cause that to automatically go down when you buy something.
Aaron is offline   #7 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old June 2nd, 2015, 03:13 AM
Yea, it's a tracker and the user would have to keep track what is spent. I did try to have the tracker = the same as tMoney, but it really didn't work. But I didn't think it would.

Thank you again for your help and time!
Frodie is offline   #8 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old June 2nd, 2015, 06:16 AM
No problem. Wish custom currencies was something we could set up, but that would be a major project we don't have the resources for at the moment.
Aaron is offline   #9 Reply With Quote
Frodie
Senior Member
 
Join Date: May 2007
Location: Durham, NC
Posts: 1,747

Old June 2nd, 2015, 08:22 AM
NP, BTW what timing would you recommend?

I am trying this at render 10000

herofield[tStartText].field[descappend].text += field[trkMax].value

but keep getting errors

Hero Lab was forced to stop compilation after the following errors were detected:

Syntax error in 'eval' script for Thing 'abGHMPUSD' (Eval Script '#2') on line 1
-> Reference to undeclared variable: 'herofield'

Last edited by Frodie; June 2nd, 2015 at 08:40 AM.
Frodie 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:30 AM.


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