Darth yoda
New Member
- Joined
- Feb 27, 2013
- Messages
- 35
Hi guys.
I'm stumped on how do make an army builder for Warhammer 40K.
You get XXXX points to spend on an army and each unit costs a certain amount.
Some units, such as captains, you buy one at a time, while others, such as warriors you buy a unit of 10 (for 130 points) BUT you can add more for 13 points each..........Up to a maximum of 20 (for warriors).
Then you can buy a second warrior unit, and on.....
The problem Im having is trying to get an error check or formula to check the minimum (and add 130 points), check the max, then see if any extras were purchased at 13 points each.
Like this:
10 warriors..................130 points
12 warriors..................130 plus an extra 26 (13 X 2)
15 warriors..................130 plus 65 (13 X 5)
You guys have helped me alot and I really appreciate the effort you put into it. So heres another toughie!!!!
I'm stumped on how do make an army builder for Warhammer 40K.
You get XXXX points to spend on an army and each unit costs a certain amount.
Some units, such as captains, you buy one at a time, while others, such as warriors you buy a unit of 10 (for 130 points) BUT you can add more for 13 points each..........Up to a maximum of 20 (for warriors).
Then you can buy a second warrior unit, and on.....
The problem Im having is trying to get an error check or formula to check the minimum (and add 130 points), check the max, then see if any extras were purchased at 13 points each.
Like this:
10 warriors..................130 points
12 warriors..................130 plus an extra 26 (13 X 2)
15 warriors..................130 plus 65 (13 X 5)
You guys have helped me alot and I really appreciate the effort you put into it. So heres another toughie!!!!