[BNW] Technical question about plot:setOwner and/or Cultural Diffusion mod

Logitech

A Person.
Joined
Mar 11, 2007
Messages
409
Location
Where I need to be
Hi all,

This is kind of a longshot, but I was wondering if anyone out there knows if plot:setOwner (or a similar method) can be used to remove plot ownership of a tile.

Specifically, in the Cultural Diffusion mod, I want to fix the issue where, if allowing tile conquest via units, when you invade an enemy city and accidentally turn the tiles completely to your side, you can no longer pillage improvements to restore unit HP. I looked inside the code of this mod and it uses plot:setOwner(...) to do the magic it does, but I want invading units to simply remove cultural influence, if possible.

I am not looking to take over mod development or anything major like that. I just want to fix this minor issue. I understand if no one knows the answer, this is a pretty big longshot.

Anyways, cheers!
 
I think it's possible if you use pPlot:SetOwner(-1), since pPlot:GetOwner() returns -1 if it's neutral territory.
 
Back
Top Bottom