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

Pancakelord

Lord of Pancakes
44 Badges
Apr 7, 2018
3.375
12.291
  • Cities: Skylines - Green Cities
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Ancient Relics
  • Cities: Skylines - Mass Transit
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Imperator: Rome
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Cities: Skylines Industries
  • Imperator: Rome Deluxe Edition
  • Magicka: Wizard Wars Founder Wizard
  • Stellaris: Nemesis
  • Europa Universalis IV
  • Stellaris: Necroids
  • Sword of the Stars
  • Crusader Kings III
  • War of the Roses
  • Cities: Skylines
  • Stellaris: Federations
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Stellaris: Lithoids
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Stellaris - Path to Destruction bundle
  • Stellaris: Megacorp
  • Stellaris: Synthetic Dawn
  • Crusader Kings II
  • Stellaris
  • Cities: Skylines Deluxe Edition
  • Sword of the Stars II
  • March of the Eagles
  • Darkest Hour
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
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
        }
    }