Request: NPC item donation
-
To any FLHook savvy coders out there, I was wondering if it were possible to have some sort of “donate” command, to be used on both players and NPCs - specifically, a way to donate Nanobots and Shield Batteries, cargo space on the target ship permitting. It’s often frustrating when in the middle of a fight I spot a wingman about to die, and while skilled player wingmen are able to trade during a fight, AI NPC wingmen can not, and since they only loot out-of-combat (the usual method of donating repairs to AI), it is often almost impossible to save my mate from imminent doom.
For syntax, I think “/donate (nanobot number) (shield battery number)” (with /d as a shortcut) would be a good way to go about it. This way, if you spot a mate about to perish, you can just target the ship and type “/d 10 5” to donate 10 Nanobots and 5 Shield Batteries from your hold - if you don’t have enough to donate, or the target can’t accept your full donation, it adjusts the amount accordingly - a “Your donation is too large” error would be the last thing we’d want to see on the battlefield =P
While I know player cargo functions are easily hooked, I haven’t heard much about NPC cargo functions - however, since they’re capable of themselves adding and subtracting to and from their cargo bays, I’d have to imagine the functions exist somewhere.
So, uhh, is this feasible? It’d be great if my Rogue underlings could survive through more than one Trade Lane raid. ^_^;
Thanks in advance.
-
Hey, AI are a huge part of Flak. Without friendlies of some sort at your side - player or AI - it is tough to last until the end of a fight, so anything I can do to extend the service life of wingmen would be a huge improvement. =P (two ships with 12 Nanos each is much more effective than one ship with 24)
Plus, I’ve gotta imagine this would be an improvement for player-player donations in the middle of combat (instead of using trade or jettisoning to space).