Senior Member
Volunteer Data File Contributor
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407
|
I'm trying to get the hardness loss to be automatically calculated for this ability.
Quote:
Quote:
Quote:
|
|||
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
#levelcount[Alchemist] levels/2,0,-1
does not make sense. I think what you want is to halve levels and then round down? That would be round(levels/2,0,-1) |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407
|
This is what I'm using:
Quote:
Hero Lab was forced to stop compilation after the following errors were detected: Quote:
Quote:
Quote:
|
||||
#3 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
#levelcount[Alchemist].value
Should be just: #levelcount[Alchemist] Anything with a # in front of it is a macro, and doesn't need a .value or .text after it, that is handled within the processes of the macro. Try this: Code:
~ If we're disabled, do nothing doneif (tagis[Helper.FtDisable] <> 0) var levels as number levels = #totallevelcount[] - #levelcount[Alchemist] field[trkMax].value += round(levels/2,0,-1) |
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: May 2010
Location: Mountlake Terrace, Washington
Posts: 407
|
Awesome! Thanks.
|
#5 |
|
|