whoward69
DLL Minion
If someone is willing to do the LUA I'm for it...
Borrowing code from the CityBannerManager.lua file, the "discovery of capitals" bit is ...
Code:
function OnHexFOWStateChanged(hexPos, fowType, bWholeMap)
if (bWholeMap) then
-- Will happen on Satellites (or the player uses with FireTuner)
-- Discover any remaining capitals, or perhaps not!
else
if (fowType != 0) then
local pPlot = Map.GetPlot(ToGridFromHex(hexPos.x, hexPos.y))
if (pPlot ~= nil) then
local pCity = plot:GetPlotCity()
if (pCity ~= nil) then
local pPlayer = Players[city:GetOwner()]
if (pPlayer:IsAlive()) then
if (pPlayer:IsMinorCiv()) then
-- Minor capital discovered, do what?
else
-- Major capital discovered, do what?
end
end
end
end
end
end
end
Events.HexFOWStateChanged.Add(OnHexFOWStateChanged)
You'd need to store who's met who into the mod db, and actually give the "reward".
If someone wants to say what the rewards should be, I'll look at doing the rest of the code.