So one of the paragons has a relic that enables all ships to jumpdrive for 3months, irrespective of the drive fitted on the ship,
So we have this in game_rules
# Which can be used to exclude/blacklist fleets (e.g. imagine an admiral with a "fear of jumpdrives trait" that disables his fleets from jumping" - but cant be used to whitelist fleets that have ships which lack "jumpdrive = yes" components
# Simple blacklist based on destination systems
This in Ship Components (psi jump drive etc) - is what typically allows a ship to jump.
And in the new relic
Specifically it seems the "jump_drive_allowed" country_flag is what lets any ship in your country scope make a jump-drive jump. Even if they dont have a drive (though still not to a blacklisted system - and I havent tested what happens with my earlier hypothetical about an admiral with a trait preventing jumping, per a fear of jumpdrives).
It seems like this string "jump_drive_allowed" only appears here in the entire 3.8.2 game folder, and so is likely being detected in code, rather than script, somehow.
Does anyone know if this only works on the country scope? or if it can run on an admiral, or fleet, letting you give fleets discrete jump-ability - e.g. after killing enough ships a fleet gets a temporary ability to make a single jump.
So we have this in game_rules
# Which can be used to exclude/blacklist fleets (e.g. imagine an admiral with a "fear of jumpdrives trait" that disables his fleets from jumping" - but cant be used to whitelist fleets that have ships which lack "jumpdrive = yes" components
Code:
# THIS = Fleet
can_jump_drive = {
always = yes # Moved cooldown to code
}
# Simple blacklist based on destination systems
Code:
# Root = country attempting to target system for movement
# This = system being targeted
can_enter_system_by_jump = {
custom_tooltip = {
# success_text = "debug: can jump"
fail_text = cannot_jump_to_system
# Sealed system
OR = {
NOT = { has_star_flag = sealed_system }
AND = {
root = { has_country_flag = entered_sealed_system }
has_star_flag = sealed_system
}
}
# L-Cluster
NOT = { has_star_flag = lcluster }
}
}
This in Ship Components (psi jump drive etc) - is what typically allows a ship to jump.
JavaScript:
jumpdrive = yes
And in the new relic
Specifically it seems the "jump_drive_allowed" country_flag is what lets any ship in your country scope make a jump-drive jump. Even if they dont have a drive (though still not to a blacklisted system - and I havent tested what happens with my earlier hypothetical about an admiral with a trait preventing jumping, per a fear of jumpdrives).
It seems like this string "jump_drive_allowed" only appears here in the entire 3.8.2 game folder, and so is likely being detected in code, rather than script, somehow.
Does anyone know if this only works on the country scope? or if it can run on an admiral, or fleet, letting you give fleets discrete jump-ability - e.g. after killing enough ships a fleet gets a temporary ability to make a single jump.
Code:
active_effect = {
add_modifier = {
modifier = "paragon_relic_wormhole_key"
days = 100
}
custom_tooltip = relic_triumph_cooldown
hidden_effect = {
add_modifier = {
modifier = "relic_activation_cooldown"
days = @triumph_duration
}
}
set_timed_country_flag = {
flag = jump_drive_allowed
days = 100
}
}