View previous topic :: View next topic |
|
Author |
Message |
Mouse140
Cadet 4th Class

Age: 26
Zodiac: 
Joined: 12 Jun 2006
Posts: 16

|
|
|

|
|
|
Ever notice how cranking the power level up to 125%+ has no negative effects on your ship? Well not anymore!
*cough*
As long as someone helps me with a couple of little scripting problems i'm hving since i'm still completely new too this...
1.) How do i get a script to loop? I've tried a couple diffrent methods and gotten absolutely nowere.
2.) I can't for the life of me get this thing to do basic math such as subtracting this and multiplying this to get a damage per script repeatal rate thingy. Anyone know why?
|
|
|
Back to top |
|
 |
Imperial_Destroyer
Rear Admiral

Age: 26
Zodiac: 
Joined: 01 Nov 2004
Posts: 1604
Location: Georgia

|
|
|

|
|
|
um, not to discourage you, but this has been done before, of sorts, the advanced power mod allows you to crank weapons and stuff to up too 200%, but weapons fired above 150% will damage themselves, though maybe you could look there for starters
|
_________________ did you hear the one where a lawyer had to teach a priest about ethics?
|
|
Back to top |
|
 |
Mouse140
Cadet 4th Class

Age: 26
Zodiac: 
Joined: 12 Jun 2006
Posts: 16

|
|
|

|
|
|
I thought i rembered something like that. (I just couldn't rember were. lol.) But in any event it should be applied to the other systems too so i will continue on my little project thanks. I would appreciate any help though.
|
|
|
Back to top |
|
 |
MLeo
Fleet Admiral

Age: 22
Zodiac: 
Joined: 26 Nov 2002
Posts: 11439
Location: Netherlands

|
|
|

|
|
|
What kind of loop do you need?
Code: | for i in <range(#) - list, tuple >: |
You can even hack a do while loop:
Code: | while 1:
if not <true>:
break |
Please note that things enclosed with < > aren't real things, but indicators.
For example, <true> means anything not 0 or None and in the for loop there are several things you can do.
You need to give us some more information on what you exactly want, because there are a lot of things in Python.
Also, I support Imperial_Destroyer's suggestion of looking that mod up, I believe it also damages other things when they are pushed beyond 150%.
|
_________________
How to beat the Black Screen Of Death and Script problems Also handles Console/Screen/Error report/dump.
BC Technical FAQ [Last updated 26/12/2005]
"Trust me, I'm a con artist" - Moist von Lipwig, "Going Postal, Discworld"
|
|
Back to top |
|
 |
|