And this is one of the weaknesses of the current pirate scan. Odds are only calculated based on counts of both parties. And to add a random element, a random number is added to both sides before doing the comparison. This random number will make that in the end a solitary pirate will find an "ODDS_EVEN". Maybe the "ODDS_BAD" should be used to add a long pause before a next scan?Commander McLane wrote:The AI-message is actually called "ODDS_BAD", and you are right, if the odds are calculated as bad, the pirate won't attack. Instead he will simply reach the "UPDATE"-message and begin another scan.
How does AI work in Oolite?
Moderators: winston, another_commander
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
UPS-Courier & DeepSpacePirates & others at the box and some older versions
"ODDS_BAD" should default to "flee" for pirates. Being badly outgunned and likely to be shot at just because they're a pirate = certain death. And by flee, I mean even use witchfuel injectors at the start.Smivs wrote:From the Pirate AI
...suggesting that the pirates will weigh up the odds before attacking. There is not an "Odds_Poor", so presumably this defaults to a 'Don't attack'.
Were it possible, could the pirates instead declare themselves as "escorts" and seek out a pirate "mothership", such as a Python or even a Cobra 3 to build their limited force around?
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
Pirates already form ship groups (they are called "wolf packs" in this case), which basically behave like mothers and escorts, with the only difference that there is no mother defined, but an attack on any one of them triggers a response of them all. On top of that pirate Pythons usually do have escorts, which of course will behave exactly like escorts.Switeck wrote:Were it possible, could the pirates instead declare themselves as "escorts" and seek out a pirate "mothership", such as a Python or even a Cobra 3 to build their limited force around?
- Cmdr Wyvern
- ---- E L I T E ----
- Posts: 1649
- Joined: Tue Apr 11, 2006 1:47 am
- Location: Somewhere in the great starry void
A part of the AI directs pirates to convene at a "loitering area", so it's not too uncommon to find large groups of retrobates hanging around waiting to spring an ambush.
When such a "loitering area" is encountered with a big gathering of pirates, expect a hairy furball indeed - the odds are definitely looking in their favor.
When such a "loitering area" is encountered with a big gathering of pirates, expect a hairy furball indeed - the odds are definitely looking in their favor.
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor