DJSHenninger
Megas Basileus
Hey folks - if I get the Shawnee assets together, would someone be willing to head up the coding for it?
What kind of code?
Hey folks - if I get the Shawnee assets together, would someone be willing to head up the coding for it?
DJSHenninger said:What kind of code?
Hoop Thrower said:The Tehuelche are just missing their UU, aren't they?
Here's the design I have for them. You already provided the second part of the UA and the UB doesn't need code:
The Great Comet. Allied militaristic city-states may join your empire if you are at war against a common enemy. Do not lose Influence with city-states if you are at war with a major civilization.
Unique Unit: Red Stick Rebel. Replaces Musketman. Cost: 150. Strength: 24. Movement: 2. Increases Unhappiness of enemy civilizations while in their territory.
Right - the UU ability could totally be a dummy building. I was thinking each Red Stick Rebel would cause 1 unhappiness?
For the UA, I agree it should be a chance each turn and work only if one is at war against major civs.
Thank you man!
function JFD_GetRandom(lower, upper)
return Game.Rand((upper + 1) - lower, "") + lower
end
function DJSH_TheGreatComet1(playerID)
local player = Players[playerID]
local teamID = player:GetTeam()
local playerTeam = Teams[teamID]
if player:GetCivilizationType() == GameInfoTypes["[COLOR="red"]CIVILIZATION_SHAWNEE[/COLOR]"] and player:IsAlive() then
for minorID = GameDefines.MAX_MAJOR_CIVS, GameDefines.MAX_CIV_PLAYERS-1, 1 do
minor = Players[minorID]
local minorTeamID = minor:GetTeam()
local minorTeam = Teams[minorTeamID]
if minor:GetMinorCivFriendshipWithMajor(playerID) >= 2 then
for otherPlayerID = 0, GameDefines.MAX_CIV_PLAYERS - 1 do
local otherPlayer = Players[otherPlayerID]
local otherTeamID = otherPlayer:GetTeam()
if playerTeam:IsAtWar(otherTeamID) and minorTeam:IsAtWar(otherTeamID) then
if JFD_GetRandom(1,100) <= [COLOR="Red"]5[/COLOR] then
for minorCities in minor:Cities() do
player:AcquireCity(minorCities, false, true)
end
end
end
end
end
end
end
end
GameEvents.PlayerDoTurn.Add(DJSH_TheGreatComet1)
I'd really appreciate it if you used another download site, just saying. I don't feel like logging in on any social network to download it. Use dropbox, for example.