True, but with limited and simplistic programming you have situation as OP described. He envisioned that when you have cargo then probability of pirate appearing is high. So to take advantage of it he equipped himself of a "bait" cargo. What he didn't considered was lazy programming that virtually forced every NPC in the instance to turn hostile the moment he showed up there.
The OP didn't say anything about lazy programming or him getting bait. They simply described being attacked by pirates. The OP didn't say that they envisioned anything in their post. I did some testing myself, and didn't notice the probability of a pirate appearing going up due to cargo possession. There are zones where there is a lot of them, and they attack you after the scan
if you have cargo. I usually go around with an empty bay (I do tourists), so I often see them saying things such as
"Lets see what you have..." or
"Nothing? How do you losers get your food?" or
"How will I feed my family tonight?!".
This is my gripe - there is no variation in response. You have cargo, you get hostile response. Period. IF-THEN. No middle ground.
My code is fine
No, your code is wrong because in it, the pirate performs a scan if cargo is possessed. As I said earlier on, I usually fly with an empty cargo bay, and they scan me but do not attack because I don't have any cargo. I don't get what you don't like about NPC pirates - how would you like them improved?
1st - that was not the point of OPs situation
2nd - being a trader it's not an option. Likewise I can say a bounty hunter not to go to conflict zones and not to shoot other ships so he won't be shoot back.
I wasn't replying to the OP anyways, I replied to your post. I did trading back in my early days of the game - as far as I remember, it is simply going from station to station - the only pirate threat is interdictions, which are quite easy to evade with NPC pilots. As long as you stay out of conflict zones and signal sources with a threat, you should be fine. I don't get your point regarding bounty hunters - that's different. I'm simply saying that as a trader, you should avoid combat. If you do get into that kind of situation, you have several options:
1. Attempt to run.
2. Try fighting back.
3. Comply with the pirate and give your cargo.
It's your decision. Most people probably go for the first option, because cargo vessels tend to be poorly armed.
Call me weirdo but I play for my own amusement, not to deliver it to others. If I decide that being pirated is fun I'll go open. Until then I enjoy my Moebius private group.
Everyone is entitled to their own opinion of course - not an open type of player myself, but judging by your previous post, you seemed unhappy with the NPC pirates. If you want more realistic pirates, you can go to open - there's plenty of them there. Some people find open more entertaining, so you are getting your own amusement and at the same time delivering it to others. Good luck!
