culture borders

_ViKinG_

BERSERKER
Joined
Mar 15, 2013
Messages
315
Is there a way to remove culture borders on the sea?with world builder or something. i can se it with the scenarios and R.E.D. WWII Edition mod.
 
Moderator Action: Moved to Creation & Customization
 
I used RED WWII method as follows:

Code:
-- no culture on water tile
function CheckCultureChange(iHexX, iHexY, iPlayerID, bUnknown)
	if (iPlayerID ~= -1) then
		local x, y = ToGridFromHex( iHexX, iHexY )
		local plot = GetPlot(x,y)
		if ( plot:IsWater() ) then
			plot:SetOwner(-1, -1)
		end
	end
end

Events.SerialEventHexCultureChanged.Add(CheckCultureChange)	

-- You will need this for quick plot conversion
function GetPlot (x,y)

	local plot = Map:GetPlotXY(y,x)
	if plot then
		return plot
	else
		print("GetPlot: Plot object could not be retrieved for plot coordinates: "..x..","..y)
	end
end
 
Thanks. but i guess i have to make a mod to use these codes or? i cant make that i think
 
Thanks. but i guess i have to make a mod to use these codes or? i cant make that i think

Yes, this can only be achieved via lua code as per R.E.D. approach. Otherwise your limited to the methods that Craig mentions.
 
Top Bottom