• 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

Rounding up on tracker?

Enforcer84

Well-known member
I am futzing with an ability that gives points, to use to spend on abilities like a sorcerer, the calculation is 1/2 level rounded up...the default charge calculation for Half-Level rounds down.

Is there a round up mechanic somewhere?
 
Search this page for the round function and how to make it go in either direction.

To use an example, let's say you have two variables X (the result) and Y (the number you want rounded down). You put:

X = round(Y,0,-1)

The 0 represents the number of decimal places you want (in this case zero). The -1 tells it to round down.
 
Sweeeeet.

I used this, but I'm not sure if this is technically correct:

doneif (tagis[Helper.Disable] <> 0)

field[trkMax].value += round(field[xAllLev].value/2, 1,1)


I wasn't sure what "Class Levels" field there was. So I checked UseOwnLev and that seems to work! Happy days.
 
Back
Top