Thank you for the script Defiant, much appreciated however...
I feel like such a hopeless noob. I look over the code and have no concrete idea of how it is supposed to work as it is let alone how I could adapt it to switch between primary and secondary shield generators pile both into one super strong shield.
The syntax is alien to me, the functions...I have no idea what some of them do. I go looking for them in App, Foundation and MissionLib only to find more and more imports in those scripts... >
![frown :(](http://bc-central.net/forums/Smileys/BCSmileys/frown.gif)
I have ran through the script over and over, some of the functions I understand but most of it...
GetAllShieldGenerators(pShip) You set up some form of array (list) comprised of all the shield subsystems and their properties that don't are not Primary(1)
SetUpShip(pShip) Not sure why you do what I think you are doing here.
"Make our 'real' shield generator undestroyable" ? Why, don't see how that even... ?
I also have no idea why you are setting the disabled (
SetDisabledPercentage(0.0) ) and repair complexity (
SetRepairComplexity(0.0) ) values, aren't they already set in the /scripts/ships/hardpoints/*.py file ?
RedefineShieldGenerators(pShip, ShieldGenerators) I know only that in this function you are piling all of the non-disabled shield values into one super shield
Init I only know it stands for Initialization and gets the script in motion but beyond that ... ?
All other functions Are some form of Python event handler that gets the details of the sub-system, check if it's a shield generator on the players ship and check the count of shield generators on the players ship then call
RedefineShieldGenerators if there is > 1. gennies
I say all of this because I want you to understand that I didn't simply download the script, glance at it and run straight here to cry about how it doesn't "do what I want". One of the worst things I think any programmer could endure is to try and help someone who doesn't understand the language.
I also want you to know that I don't like being spoon fed but I am also strongly against the notion of having to learn an entire language just to get a few features into one computer game.
I completely understand if you don't want to practically spoon-feed me everything or do all the work for me and post the script black-box style.