• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

DescAppend

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.
 
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
 
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.
 
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!
 
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.
 
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:
I think I see the issue with the script I am using:

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

but for some reason the tStartText will not accept "text", but if I change it to "value"

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

The script will load, but have no effect in the UI. IDK I tried to use "final", but that was a no go. Maybe this field can't be edited.
 
tStartText is a field. DescAppend is also a field. What your script there is trying to go from one field down to another field inside the first. Fields only appear on picks, so that makes no sense to the compiler, which is why you're getting an undeclared variable error.

As I said above, DescAppend doesn't enter into it, you want to modify the tStartText field directly. DescAppend is not on the totals pick, and it isn't used at all when the tStartText field on the totals pick is setting itself, so you should just put it out of your mind for this purpose.

Try something simple at first. Like

Code:
herofield[tStartText].text &= "BBBB"
 
Coolness, thank you again for all your help and time! But, the above script gets this error:

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

But, I think I just need to move on to something else and let this one go. Thank you again.
 
Last edited:
Huh, yeah, it looks like that is actually a value field instead of a text field. Weird. Since the text is generated by a finalize script rather than being stored in the field, you can't affect it from outside.
 
Back
Top