question to skilled modders (or to developer enthusiasts) how to use not standart fleet order "Land Army" ?

  • 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.

guitonielle

Corporal
13 Badges
May 18, 2020
38
27
  • Warlock 2: The Exiled
  • Warlock 2: Wrath of the Nagas
  • Stellaris
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Age of Wonders II
  • Stellaris: Apocalypse
  • Stellaris: Megacorp
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall - Revelations
  • Stellaris: Federations
  • Crusader Kings III
  • Stellaris: Nemesis
We all know about standart fleet orders which are listen in the wiki:

Code:
auto_move_to_planet
auto_follow_fleet
move_to
orbit_planet
clear_orders
force_return

But how to use not standart fleet orders about which is no message anywhere?

As example, I try to found how to force transport army to land planet.

All what i found...

Code:
every_owned_fleet = {
            switch = {
                # Set order name to fleet
                trigger = has_fleet_order
                    land_armies_order = { set_name = "LAND_ORDER" } # land troops
            }
}

But how to use this ?

I have tried script:

Code:
                random_system_planet = {
                    limit = {
                        OR = {
                            is_colony = yes
                            is_capital = yes
                        }
                        num_pops > 0  
                    }
                    save_event_target_as = mod_escape_point
                }
                every_fleet_in_system = {
                    limit = {
                        is_ship_class = shipclass_transport
                        owner = {
                            is_ai = yes
                        }
                        is_in_combat = no
                    }
                    clear_orders = yes
                    queue_actions = {
                        move_to = event_target:mod_escape_point
                        orbit_planet = event_target:mod_escape_point
                    }
                    switch = {
                        trigger = has_fleet_order
                        land_armies_order = { set_name = "LAND_ORDER" }
                    }                
                }        
            }

but... 0 results (( orders to fly to planet and to orbit it - works... but after, landing - doesn’t work.

I have tried to use search and i found also in the localisation:
FLEETORDER_LAND_ARMIES_ON_PLANET
FLEETORDER_LAND_ARMIES
but all my attemps to put these commands into scoped fleet effects or in queue_actions ===> fail :(

Skilled modders or developers can you show me the example how ai uses land army order that i would be able to repeat with mod?

mb my code is correct and i did small logic error after which landing dosn't work. But where is error? or how to write correct order?
 
Last edited: