Hoop Thrower
Cyberbolivarian Inkarri
What about the Comparsa Folklórica's ability to create WLTKDs?
Sorry for the delay but these last two weeks have been unexpectedly busy for me. I did finish the hill healing code for the UU though:
Code:function HealAdjacentToHill(iPlayer) if Players[iPlayer]:GetUnitClassCount(GameInfoTypes.UNITCLASS_SPEARMAN) > 0 then for iUnit in Players[iPlayer]:Units() do if iUnit:GetUnitType() == GameInfoTypes.UNIT_RJ_GARROTTE then HillHeal(iUnit) end end end end Events.AIProcessingEndedForPlayer.Add(HealAdjacentToHill) function HillHeal(cUnit) local cPlot = cUnit:GetPlot(); if cPlot:IsHills() then cUnit:ChangeMoves(1) cUnit:ChangeDamage(-10); return; end end
Also, I'm not sure if it's possible to make a general "50% longer WLTKDs." EE's Versailles says that it extends WLTKD in all cities, but I can't find anything in the code or in a game that proves that it does that.
local wltkdBuildingID = GameInfoTypes["BUILDING_RJAMES_LONGER_WLTKD"]
function rJames_longerWLTKD(playerID)
local player = Players[playerID]
if (player:IsAlive() and player:GetCivilizationType() == civilisationID) then
for city in player:Cities() do
if (city:IsHasBuilding(wltkdBuildingID) and city:GetWeLoveTheKingDayCounter() > 0) then
local wltkdTurns = ((city:GetWeLoveTheKingDayCounter())*50)/100
city:ChangeWeLoveTheKingDayCounter(wltkdTurns)
city:SetNumRealBuilding(wltkdBuildingID, 0)
elseif (city:GetWeLoveTheKingDayCounter() = 0) then
city:SetNumRealBuilding(wltkdBuildingID, 1)
end
end
end
end
GameEvents.PlayerDoTurn.Add(rJames_longerWLTKD)
Yup. I was not in the arty mood today, but i gave it a go. Aaand, it didn't come out well. We did have a background of the presidential palace but ryanjames wanted me to give that one a go. Maybe i'll give it a better go on the weekend.
Yeah, I'm not sure if using the Griot for Senegal is the best idea given that they are kind of common to most of West Africa, maybe go for an unique building instead?