• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Foraven

Major
17 Badges
May 14, 2016
544
168
  • Sword of the Stars II
  • Stellaris: Humanoids Species Pack
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Shadowrun Returns
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
I'm currently crafting some modified pirate event and i'm looking for a way for the existing pirate fleet to replace their lost ships when they go back to their pirate base. From what i could see from existing events, new fleets with new leaders are spawned but i have yet to see any instance where an existing fleet gets reinforced. I don't fully understand Solaris scripting yet but it seem to me the right place for this should be in the repeating queue where the fleet go back and forth between targets and the home base. No idea how to script it properly though.
 
I'm not at home and can't test it right now, but isn't it just a matter of looping the pirate faction fleets (any_owned_fleet), checking if it's near the home base with the distance command and then calling create_ship in it's scope?
 
  • 1
Reactions:
I haven't experimented with this method yet, but you could have the pirate fleet send itself events to regularly check whether it was ready to go home and reinforce with new ships.

EDIT: i.e. a recursive event
 
  • 1
Reactions:
I'm not at home and can't test it right now, but isn't it just a matter of looping the pirate faction fleets (any_owned_fleet), checking if it's near the home base with the distance command and then calling create_ship in it's scope?

I'm still learning the ins and out of event scripting, but from the little i know it seem like something that could work. Need some code to try it out though.