it takes 1 second for 1% generator power up.
so this code will add 1 every second the battery's are under 9000.
when the battery's charge over 9000 it will not bounce back to zero, instead it will back 5 points every second, so if you have a ship say running at 60% it will go over 60 and charge the battery's, then back off a little and the battery's will lose some power and only need to power up a little rather from zero.
you could change the -=5 to -=1 and the generator will power down as fast as it powers up.
1| If :StoredBatteryPower<9000 THEN goto2 ELSE goto6 END
2| :FuelChamberUnitRateLimit+=1
3|
4|
5| goto1
6| :FuelChamberUnitRateLimit-=5
7|
8|
9| goto1
so this code will add 1 every second the battery's are under 9000.
when the battery's charge over 9000 it will not bounce back to zero, instead it will back 5 points every second, so if you have a ship say running at 60% it will go over 60 and charge the battery's, then back off a little and the battery's will lose some power and only need to power up a little rather from zero.
you could change the -=5 to -=1 and the generator will power down as fast as it powers up.
1| If :StoredBatteryPower<9000 THEN goto2 ELSE goto6 END
2| :FuelChamberUnitRateLimit+=1
3|
4|
5| goto1
6| :FuelChamberUnitRateLimit-=5
7|
8|
9| goto1