ID:174723
Jul 23 2003, 7:18 pm
|
|
ok i know you can use something like damage= src.str-M.def but can you do something that represents exponents. like src.str(to the power of ten)-M.def? thanks.
|
In response to Hendrix
|
|
the coding there was just an example. but besides that, (to the power of ten) does not mean (times ten) it means the certain number (say 3) times itself ten times. it would look like 3*3*3*3*3*3*3*3*3*3. i want to know how to write that so i can use it in my coding.
|
In response to Siefer
|
|
Ok so
i can't think of an easy way of doing this the only way i can think of is to make a formula that equalls the same. like dam = usr.hp * usr.hp + (usr.hp * usr.hp + (usr.hp * usr.hp))//continue this |
"to the tenth power" = times ten right if so do this dam = (usr.strength * 10) i think you can add that -5 after the 10 like (usr.str * 10 - 5) not sure though(havent been coding in a while) if not well i dont know.. you can use such procs to determine the outcome you want like round, rand and sqrt if you dont already know of these.