Scripting question -1 reply

Please wait...

neilmakin1

I eat borg for breakfast

50 XP

6th March 2006

0 Uploads

53 Posts

0 Threads

#1 12 years ago

I was wandering if anyone knows how to increase the maximum strength of the shields in-game. I tried the line: pPlayer.GetShields().SetMaxShields(App.ShieldClass.LEFT_SHIELDS, NewLeft) But it wont accept .SetMaxShields. Any help would be appreciated




NCC1717

Dread thinks I'm a special person

50 XP

3rd May 2006

0 Uploads

943 Posts

0 Threads

#2 12 years ago

you need to go into the bc root dir and then scrip,ships,hardpoints find the name of you ship then click on the py file not the pyc file coz thats comp language anyway scrole down till you find the shild gen bit and find the 6 shild grids frount,back,left,right,top,bottom and edit the values next to each one of them to what ever you want. hope this helps




neilmakin1

I eat borg for breakfast

50 XP

6th March 2006

0 Uploads

53 Posts

0 Threads

#3 12 years ago

Well Im a noob to scripting, but Im currently working on a mod which will allow you to transfer power from one shield vector to another. But the game wont allow me to increase the strength of a shield vector over its maximum value. I was wondering if theres a way round this so that you could increase the strength of the fore shields by 150% say. Any ideas?




Defiant

Free GNU user

50 XP

28th March 2002

0 Uploads

742 Posts

0 Threads

#4 12 years ago

Use pShields.GetProperty().SetMaxShields() and always check the console if something doesn't work.




N1GH7H4WK

BC modder. So, what?

50 XP

27th April 2006

0 Uploads

580 Posts

0 Threads

#5 12 years ago

import MissionLib import App pPlayer = MissionLib.GetPlayer() pPlayer = App.ShipClass_Cast(pPlayer) pPlayer.GetShields().BoostShield(App.ShieldClass.SHIELD_TYPE, shieldvalue) That should work Take a look at BoostShields.py in QBautostart if you get stuck. As I see, BoostShield directly increases the shield strenght and recharges it to maximum power. That makes your shield a bit stronger every time you use it