BCU main page Bridge Commander Universe
...welcome to the new world.
 
 FAQFAQ  RanksRanks  RulesRules   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  Staff SiteStaff Site    RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

I would like help with a scripting problem.....

 
Post new topic   Reply to topic    Bridge Commander Universe Forum Index -> BC Scripting
View previous topic :: View next topic  
Author Message

Mouse140

Cadet 4th Class
Cadet 4th Class


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

Offline

 

 



Reply with quote

Post Posted: 08-01-2006 01:38 AM Post subject: I would like help with a scripting problem.....

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
View user's profile Send private message

Imperial_Destroyer

Rear Admiral
Rear Admiral


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

 

 



Reply with quote

Post Posted: 08-01-2006 03:25 AM Post subject:

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
View user's profile Send private message

Mouse140

Cadet 4th Class
Cadet 4th Class


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

Offline

 

 



Reply with quote

Post Posted: 08-01-2006 06:11 AM Post subject:

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
View user's profile Send private message

MLeo

Fleet Admiral
Fleet Admiral


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

 

 



Reply with quote

Post Posted: 08-02-2006 01:59 PM Post subject:

What kind of loop do you need?


Code:
while <true>:

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
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic

All times are GMT

Page 1 of 1
   Bridge Commander Universe Forum Index -> BC Scripting
 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group
Bridge Commander Universe is a Nightsoft company. All rights reserved.