If you want to be able to establish an embassy using a Spy (land unit) in a Transport on Ocean open game.ruleset. Find the action enabler of "Establish Embassy". Remove the requirement ("UnitState", "TransportDependent", "Local", FALSE) from the requirement vector actor_reqs.
If you want to keep the restriction on establishing an embassy from TransportDependent terrain for all units except those that have the "Spy" flag add a new action enabler like this:
Code: Select all
[actionenabler_establish_embassy_from_transport]
action = "Establish Embassy"
actor_reqs =
{ "type", "name", "range", "present"
"UnitFlag", "Spy", "Local", TRUE
}
target_reqs =
{ "type", "name", "range", "present"
"Nation", "Barbarian", "Player", FALSE
"Nation", "Pirate", "Player", FALSE
}