Forum Moderators: coopster
i want to set up a loop that for example adds 1 (like 4 + 1) to a colums in a row, and then adds 1 to the same column, at the next row, when the it comes to the last row, its starts over again..
THis is probably a louse explanation of my problem, but could anyone please help me to find the right direction? :)
Thanks!
The purpose of the loop is to calculate battles in a game im making..
And to do so that the losses is divided between the defenders/attackers, i thought making a such loop would be an ok idea..
so if a ex. ship takes out 1.2 units of another ship it would be like this:
first loop:
def 1: 30-1.2
def 2: 26-1.2
def 3: 32-1.2
second loop:
def 1: 28.8-1.2
def 2: 24.8-1.2
def 3: 30.8-1.2
and so on...