Recent content by CivHawk

  1. C

    YnAEMP Min_CIV_STARTING_DISTANCE Changes?

    Hello all. I have a ynaemp modding question if anyone can help: I'm trying to play a 22-civ Huge world map, and I'm trying to set it up so that I can get most (if not all) of my modded civ downloads to be eligible to startProblem is, 3 tiles minimum starting distance is too large and I want to...
  2. C

    Enhanced User Interface

    Hey bc1, firstly just to say that the fact you're still about updating this fantastic 'mod' is pretty insane, so thanks :) I've come across a bug recently that I don't know if you can help with. I've been playing an, admittedly heavily modded, game that been going really well for a while, but...
  3. C

    [TSL] Yet (not) Another Earth Maps Pack

    Apologies if this has already been asked somewhere, I've tried to do some research into this, but I'm not sure how to proceed so: In the Huge Earth map, I am trying to reduce the acceptable distance between civ starting locations to 2 tiles, rather than the usual 3. In the folder, I can see...
  4. C

    Other Civ's cities not appearing in my espionage screen

    I've playing as Morocco in a heavily modded game. I haven't reached the Renaissance era yet, but someone else has, which is why I have a spy. But I can only see my own cities, and so I can only conduct counter-espionage. I don't know why this is the case, other than it might be a buggy mod...
  5. C

    LUA Trait Help

    That's good advice... I certainly feel I need some time to process it. I really appreciate the help you have given me. I am planning many more Civs and I feel I can at least start to get some lua code down. I've actually cobbled together a list of the mods I have and the unique abilities and...
  6. C

    LUA Trait Help

    Are you suggesting that I don't need WilliamHowards' IsCivInPlay because I can simply use: ? To address your third point, I've included the code WITHIN the UnitKilledInCombat event: function GriotPointsWhenUnitDie(iPlayer, iKilledPlayer, iKilledUnit) for iSlot = 0...
  7. C

    LUA Trait Help

    Fair enough. Need to keep a watch out of those spelling errors... not sure if I would have caught it... Do I need to keep WilliamHoward's IsCivInPlay function then? It seems you have included a lot of that code in the if (IsCivInPlay(senegalID) == true) then for iSlot = 0...
  8. C

    LUA Trait Help

    I've decided to go with 40% now (to reflect the fact that a human player will always try to favour it). I've also decided to scrap the if (pCity:GetNumGreatWorksInBuilding(operaHouseID) > 0) or (pCity:GetNumGreatWorksInBuilding(broadcastTowerID) > 0) or...
  9. C

    LUA Trait Help

    I'm curious to know how the effect would work actually. As far as I understand it: every turn, a random number between 0 - 100 will be generated. If it's in the lower third 'percentile', then the effect of adding a dummy building will happen if there is at least one great work of music in the...
  10. C

    LUA Trait Help

    Whoops.... sorry, I should have mentioned I snipped the code before I posted it, the full thing is: -- UA: Négritude - +2 Griot points are earned for your capital when your units kill, or are killed. -- UU: Gendarmerie - Replaces Infantry. When garrisoned in a city, the city's spy stealing rate...
  11. C

    LUA Trait Help

    function UUBoosts(iPlayer) local pPlayer = Players[iPlayer] if (pPlayer:GetCivilizationType() == senegalID) then for pCity in pPlayer:Cities() do pCity:SetNumRealBuilding(griotDummyBuildingID, 0) pCity:SetNumRealBuilding(gendarmerieDummyBuildingID, 0)...
  12. C

    LUA Trait Help

    Would this code hold up then? I've added the GetOwner method to the third line? I wasn't sure if I'd be defining the variable as senegalID or iPlayer... for iPlot = 0, pCity:GetNumCityPlots() - 1, 1 do -- Griot Boost local pCityTerritoryPlot =...
  13. C

    LUA Trait Help

    Tables can prove quite useful it seems, thanks for the tip I would still prefer to keep the plot iterations within friendly territory so is it possible to use the following method: Plot:IsFriendly() somewhere in the code?
  14. C

    LUA Trait Help

    Is there a method that potentially iterates through all tiles owned by a city (which also goes beyond a 3 tile radius?) I was thinking that, for example, if two cities are 4 tiles apart (as is the minimum), then there would be an overlap where 1 Griot would be present in two cities and thus...
  15. C

    LUA Trait Help

    Also, I was thinking I would only limit the human player to one or two Griots (great person) at a time. This would effectively stop the human player from being able to 'hoard' Griots to their hearts content, since each city could conceivably have a large number of plots, and thus a large number...
Back
Top Bottom