Can I make a district unbuildable? (But still obtainable via effect)

  • Victoria 3 - Sign up now!

    The journey begins, sign up now and get a special in-game item when the game is released.


  • Crusader Kings III Available Now!

    The realm rejoices as Paradox Interactive announces the launch of Crusader Kings III, the latest entry in the publisher’s grand strategy role-playing game franchise. Advisors may now jockey for positions of influence and adversaries should save their schemes for another day, because on this day Crusader Kings III can be purchased on Steam, the Paradox Store, and other major online retailers.


    Real Strategy Requires Cunning
  • Crusader Kings II Expansion Subscription

    Subscribe to the CK II Expansion and enjoy unlimited access to 13 major expansions and more!


Hansatron

Captain
19 Badges
Mar 30, 2020
318
726
  • Cities: Skylines - Green Cities
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Cities: Skylines Industries
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines
  • Cities: Skylines - Mass Transit
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Natural Disasters
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris
  • Cities: Skylines - After Dark
  • Stellaris: Synthetic Dawn
While playing around with the fifth district slot on the UI, I have been cooking up some new ideas.

One thing I want to do is create a district is normal in all ways except you cannot directly build it. Instead, you can only get it from the add_district effect. My plan is to use this as a "reward" or "upgraded" district. For example, imagine a repeatable planetary decision to convert one city district into a "super city district."

There are two ways i can think of doing this. One is to use some kind of tag or parameter similar to what capital buildings use - can_build = no. This doesn't work on districts, but maybe there is some other combination of parameters that achieves the same result.

The other method would be to have the district capped by modifier, and then only increase the max allowed slots for that district by 1 each time the planetary decision finishes. Not sure how to actually do that though.
 

Ryika

Colonel
50 Badges
Apr 16, 2018
882
1.704
  • Ancient Space
Put always = no in the allow = { } wrapper.

You'll probably want to use a custom text to explain why it can't be built instead of the harsh "Never" that's generated from always = no, so you'll end up with something like this:

Code:
    allow = {
        custom_tooltip = {
            text = localisation_key_with_nicely_worded_description_here
            always = no
        }
    }
 
  • 1Like
Reactions:

Hansatron

Captain
19 Badges
Mar 30, 2020
318
726
  • Cities: Skylines - Green Cities
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Cities: Skylines Industries
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines
  • Cities: Skylines - Mass Transit
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Natural Disasters
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris
  • Cities: Skylines - After Dark
  • Stellaris: Synthetic Dawn
Ah, of course!
I had partially settled on simply using the tech prerequisite is a blocking mechanism, but this is much cleaner and allows for the custom text.

Thank you!!!