Need mathematican for formula

Nerfpl

New Member
Reaction score
53
im looking for formula which will give me following resoults in such order
0,9,-9,18,-18,27,-27,36,-36,45,-45

pairs (like 36 and -36) can be swaped freely. so it either can be
0,-9,9,18,-18,-27,27 etc

i would like to use it in loop which runs x times depends on ability level so on level 2 it run 3 times, on level 3 5 times, etc

is it possible?
 

quraji

zap
Reaction score
144
Are the number of pairs equal to the number of times the loop is run, or what?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Set Value = 0
Set Help = 1
For each Integer A from 0 to ...
- Set Value = Value + Help * 9 * (Integer A)
- Set Help = 0 - Help
- ... do something with Value here
 

Nerfpl

New Member
Reaction score
53
thanks Acehart :thup:

Are the number of pairs equal to the number of times the loop is run, or what?
for each level loop will run X times where
X = Level of ability * 2 -1

i just came up with values needed for each level of ability. so if i shot missiles, they will equaly split on 2 halfs from 0 which is some unknown angle which depends on point of cast
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top