Indeed I saw that and that was quite nice. But the code just gets larger and larger, so I thought I'd suggest simplifying it a bit.Oh Pieter, I worked really hard to get 3 cases of stringlogs depending on if only pchar, any officer or both
had refilled their ammo.
[...]
I have the same idea when you refill from the GPS yourself. I would prefer not to have it changed. If there's nothing wrong of course.
I think GetOfficersIndex 0 is the player, so all characters can be included in the same loop, for example.
That reduces a lot of double code (double code has been driving me completely nuts at my day job lately....

Maybe you could use a string variable to store the characters that got resupplied?
Something like this, for example:
Code:
string SuppliedBy = "The Gunner";
if (AMMOMOD_ABLECAPTAIN) = "you";
string SuppliedChars = "";
if (Player is supplied) SuppliedChars = "you";
if (Officers are supplied) SuppliedChars = "your officers";
if (Player AND Officers are supplied) SuppliedChars = "you and your officers";
LogIt(TranslateString("", SuppliedBy + " supplied " + SuppliedChars + " with " + Ammunition!"));
It might also be worth putting some of this stuff into separate functions as I think the same section of code needs to be called from quests_common.c AND from the itemsbox.c interface.
Just to try and simplify it all? Just thought I'd suggest it for your consideration.
I'll leave it up to you what you want to do in the end.
