Search results

  1. T

    Tutuorials for using Asset Editor & Modbuddy?

    Hi, I've been trying to make a mod for Civ 6 but have been stuck trying to get my art to work. For a little background, I made a few small mods for Civ V, so I'm familiar with how to set up a mod. I've even managed to make some mods for Civ VI without using modbuddy. I know how to use the Civ...
  2. T

    SaveUtilities / Storing Plots through a Saved Game

    Hi, I've noticed several of the higher quality civ mods use a "SaveUtils" lua file to store information for when you save a game. This would be extremely helpful. Sadly, I have no idea how to use it :( My mod stores several plots throughout the game. I know how to store them and reference...
  3. T

    Recently Came back to Civ IV, Problem with Mods and No Interface

    Hi, so I've recently started playing Civ IV again after getting tired of stuff in Civ V. I'm looking to use some of the larger total conversion mods that I used to, but I'm having problems. Mainly, when I load the mod in the game I get no interface and can't access things like the options...
  4. T

    Detecting if a plot has a luxury resource

    So I need to detect if a plot has a luxury resource. I know how to do this if I manually list each luxury resource type and go through them, but there must be an easier way, right (plus that way wouldn't work if someone is using a mod that adds new luxury resources). Is there an shorter way...
  5. T

    Any way to make ChangeMinorCivFriendshipWithMajor not round to the nearest whole #?

    So I have some lua all written out, it works perfectly, except it seems ChangeMinorCivFriendshipWithMajor refuses to actually add or subtract a decimal value from the influence and always rounds the amount I set to the nearest whole number. Is there any way around this?
  6. T

    Loop through the plots 2 tiles away from a plot (Lua)

    Hi guys, I'm wondering if you can help me out with something. I know I can loop through all the plots adjacent to a plot by doing something like: directions = {DirectionTypes.DIRECTION_NORTHEAST, DirectionTypes.DIRECTION_EAST, DirectionTypes.DIRECTION_SOUTHEAST...
  7. T

    Storing Plots in Lua

    So I thought I knew how to do this but my attempts have failed miserably. Very simply I want to store a list of plots of every city I capture. I can very easily get the plot at the end of the city capture event, but I want to keep a list of these plots so I can check them again easily later...
  8. T

    Why does India get Indus Sanitation?

    I have to say I'm very confused by this choice. The removal of the Mughal Fort, okay, because it was underwhelming and also because the Mughals are technically a separate civ from India (however, this is arguable as during the Mughal period the two cultures merged in a lot of ways)...
  9. T

    Add tile visibility for 1 turn in lua?

    First, is there a way to make a specific tile visible (no Fog of War, can see units, etc.) with lua? (I see Plot.ChangeVisibilityCount, is this what's used?) However, I don't want to make the tile permanently visible for the rest of the game. Essentially, I want to trigger visibility over...
  10. T

    New lua instances and events added in BNW?

    Is there a list of all the new lua instances and events added in BNW anywhere? Thanks.
  11. T

    Arabia Overbuffed?

    So, I look at the new Arabia and think the developers have no idea about balance. The old Arabia was a very good civ. Their UA was on the weaker side (+1 gold from trade routes/city connections was nice but marginal, and double oil was again nice but comes late), but this was balanced by a very...
  12. T

    The Merchant of Venice needs a limiting factor

    Does anyone else think its absolutely ridiculous they can puppet cit-states for free regardless of their influence with the city-state or another civs influence with that city-state? Austria at least needs to be allied with the city-state for 5 turns first. As it stands, Venice just completely...
  13. T

    Does the new Sequential MP mode or PitBoss do anything for AI interaction?

    So for people who've had time to fool around with the new MP modes from the patch, do any of them have correct AI slots where the AI will actually interact with you and play comparable to in SP? Note: please don't respond to this thread with something like "Why would you use AI slots in MP?"...
  14. T

    Having trouble making something fire only when none of a group is present in city lua

    Okay I think I've really confused myself with this. I have an array of buildings. I have a for loop. I check the city for buildings in the array. I need the event to fire only if none of the buildings in the array are present in the city. Doing something like: for _, iBuilding in...
  15. T

    Is there a way to loop through all the buildings in a city

    I need to check every building in one of my cities. Is there any easy way to do this?
  16. T

    Finding a Civ's UB (and its default building) with lua

    Okay, I'm wondering if you guys can help me out with something. In Civ IV with python I could do something like: civtype = pPlayer.getCivilizationType() for iBuilding in range(gc.getNumBuildingClassInfos()): iUniqueBuilding =...
  17. T

    Checking if the current era is less than another era with lua

    Okay, so I was trying something like: local mEra = GameInfoTypes.ERA_MODERN; [...] if (pTeam:GetCurrentEra() < mEra) then but I don't think I'm defining the era correctly? Can anyone help?
  18. T

    Counting the number of a specific tile in the city radius.

    Okay, I know I can use: for i = 0, pCity:GetNumCityPlots() - 1, 1 do local plot = pCity:GetCityIndexPlot( i ) if plot:GetFeatureType() == GameInfoTypes.FEATURE_FOREST then To check all the plots of the city radius and find out if a forest tile is present. However, for a mod I...
  19. T

    Looping through ALL cities (lua)

    I know I can use "for pCity in Player:Cities() do" to loop through all of the player's cities, but how can I loop through all the cities of all the players at once?
  20. T

    [LUA] Can I have multiple copies of the same building in a city?

    Can I use LUA to add the same building to a city more than once (i.e. a dummy building that gives a specific resource)? Is it just a matter of doing, say, "pCity:SetNumRealBuilding(XXX, 3);" or do I have to do something special? Does having multiple copies of a building in a city cause any...
Top Bottom