Thanks, already started on my first mission. Although I am having some problems with the shield coding. I can get the shield to go up, although in my mission I want the ship to start with 30% or so shields. So, with Mularac's master coding, I started messing around with what he gave me.
SelectEx(s.shield & s.owner = m.play,
activateDevice(s.this,1);
);
m.play:shieldIntegrity:=10000000000;
To bring up the shields.
Along with:
e.max:=m.play:shieldIntegrity;
m.play:shieldIntegrity:=e.max*0.4;
To bring the shields down to about 40%... Although, this doesn't seem to work, and if not commented, does not let the shields to go up.
I've tried solving this by putting it in a separate Rule, separate State, and even in a separate Machine.
I've got no clue on how to get the shields to go up and than go down to 40%.. So I think I'll just leave that until later, or if I really can't figure it out, take the maximum Integrity of the shield in use and just get 40% of that and put it in the shield up code. I've tried that and it works. But the problem with that, as Mularac pointed out, would be if the shield maximum Integrity was changed from it's current value in the tactictypes.ini to something else, the 40% would no longer be 40% of the new value.
If you guys have any comments, or suggestions, I'd be glad to hear them and try them out.
Oh and big thanks to Mularac for starting me off in scripting. Real fun