We all know about standart fleet orders which are listen in the wiki:
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...
But how to use this ?
I have tried script:
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?
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: