I thought that nationalization would be a great mechanic to add. So was thinking along the same lines. Here's what ChatGPT has to says. Im using the Paradox Interactive Modder GPT which is pretty good, though only up to version 1.6:
Yes, it is possible to change building ownership via events in
Victoria 3. The game’s scripting system allows you to modify building ownership, usually by transferring it from one country to another. This can be useful in scenarios where territories change hands, or where certain conditions or diplomatic actions result in the control of buildings shifting.
How to Change Building Ownership via Event:
To change building ownership, you typically use scripted effects in the event system. Here's how you can do it:
**1. **Basic Script Structure for Changing Ownership:
You’ll use the transfer_building effect to change the ownership of a building from one country to another.
plaintext
Copy code
transfer_building = {
building = [building_type] # Type of building you want to transfer
to = [recipient_country] # The country that will receive the building
from = [current_owner] # The country that currently owns the building
state = [target_state] # The state where the building is located
amount = [number_of_buildings] # (Optional) The amount of buildings to transfer
}
**2. **Example Event Script:
Let’s say you want to transfer ownership of a factory from one country to another as part of a peace treaty or colonial handover.
plaintext
Copy code
namespace = building_transfer_event
building_transfer_event.1 = {
type = country_event
title = "Ownership Transfer"
desc = "As part of the treaty, the ownership of key industries in [Root.GetName] has been transferred to [target_country.GetName]."
trigger = {
has_diplomatic_pact = {
type = transfer_treaty
who = scope:target_country
}
}
immediate = {
transfer_building = {
building = textile_mills # Example building type
to = scope:target_country # The recipient country
from = root # The current owner, triggering country
state = 1 # The state ID where the building is located
amount = 1 # (Optional) The number of buildings to transfer, defaults to all
}
}
option = {
name = "Transfer Complete"
trigger_event = { id = building_transfer_event.2 } # Optional: Trigger another event after transfer
}
}
**3. Understanding the Parameters:
- building: This is the type of building you want to transfer, such as textile_mills, arms_industries, or railways. You can find a list of building types in the game files under common/buildings/.
- to: The recipient country that will take ownership of the building. This can be referenced as scope:target_country or by the specific country tag (e.g., ENG for England).
- from: The current owner of the building. This is typically the country triggering the event, often referenced as root.
- state: The ID of the state where the building is located. You can find state IDs in the game files under common/history/states/.
- amount: This is optional and specifies the number of buildings to transfer. If omitted, it defaults to all buildings of that type in the specified state.
**4. Triggering the Event:
The event can be triggered by various means, such as the conclusion of a war, a diplomatic play, or another event that necessitates the transfer of building ownership.
**5. Considerations:
- State Ownership: Ensure that the receiving country controls the state where the building is located. If the state is not under the recipient's control, this might cause issues or unintended behavior.
- Balance: Changing building ownership can have significant effects on a country’s economy and resources. It’s important to consider the balance implications when designing events that transfer buildings.
Summary:
Yes, you can change building ownership via events in
Victoria 3 using the transfer_building effect. This allows you to script scenarios where control over specific buildings changes hands, reflecting the outcomes of treaties, conquests, or diplomatic actions. By carefully scripting and testing these events, you can create immersive and impactful gameplay experiences that reflect the historical complexities of territorial and industrial control.