Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   DescAppend (http://forums.wolflair.com/showthread.php?t=53076)

Frodie June 1st, 2015 03:46 PM

DescAppend
 
How do you use DescAppend in a script?

Aaron June 1st, 2015 03:54 PM

Same as any other text field. What do you want to do?

Frodie June 1st, 2015 04:06 PM

I am trying to add something to the tStartText

Aaron 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.

Frodie June 1st, 2015 05:56 PM

Cool, thank you

Frodie 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

Aaron 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.

Frodie 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!

Aaron 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.

Frodie 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'


All times are GMT -8. The time now is 09:49 PM.

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