Hands-On Usage
When a player resets the deployment province for railway guns via a decision or focus, this effect can be used to instantly teleport all railway guns of that country to the new deployment province, avoiding the time cost of long-distance marching. Typical scenarios include: emergency frontline reinforcement, rapid railway gun deployment to support active fronts, or designing "emergency troop mobilization" decisions in mods.
# After a country triggers a decision, immediately teleport railway guns to the deployment province
country_event = {
id = my_mod.1
hidden = yes
immediate = {
teleport_railway_guns_to_deploy_province = ROOT
}
}
Synergy
[activate_targeted_decision](/wiki/effect/activate_targeted_decision): First trigger changes to the railway gun deployment location via decision, then call this effect to execute the teleport, forming a complete "redeploy" workflow.
[controls_province](/wiki/trigger/controls_province): Check whether the target province is under your control before teleporting to prevent railway guns from being sent to enemy-occupied territory and suffering losses.
[has_country_flag](/wiki/trigger/has_country_flag): Combine with country flags to determine whether a teleport order has already been issued, preventing duplicate teleport triggers within the same event chain.
Common Pitfalls
- Forgetting that the target scope must be COUNTRY: This effect can only be executed within a country scope. Calling it in STATE or CHARACTER scopes will cause errors or silent failures. Ensure the execution context scope is correct, or use targets like
ROOT/OWNER to switch the scope to country.
- Undefined behavior when railway guns have no deployment province set: If the target country has not yet assigned any deployment province for railway guns, the teleport result may not match expectations. It is recommended to ensure the deployment province is explicitly set through in-game logic or events before triggering this effect.