Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   Army Builder (http://forums.wolflair.com/forumdisplay.php?f=16)
-   -   Rounding up (http://forums.wolflair.com/showthread.php?t=12557)

UltraPrime March 4th, 2011 01:20 AM

Rounding up
 
When I am creating a unit that has a child unit whose size depends on parent, I'm running into errors as AB rounds to nearest, not up as I need.

Example - unit requires a child unit that equals 1 member per 3 parents. The formula I use is:

@minimum = count[base] / 3

For a 10-man parent unit, this creates a 3-man child unit. But it needs to be 4.

Any suggestions?

UltraPrime March 4th, 2011 05:52 AM

Nevermind, figured it out :D

Mr_Rose March 4th, 2011 08:11 AM

Well? Don't keep us in suspense man!

Also; pre-emptive bug report: remember to make sure Savage Orc Boar Boyz get the extra attack on their profile for two hand weapons.

UltraPrime March 7th, 2011 01:19 PM

Sorry, forgot to check back. Added following line to rule:

@minimum = round(result, 0, 1)


All times are GMT -8. The time now is 03:31 AM.

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