Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
We are currently performing site maintenance, parts of civfanatics are currently offline, but will come back online in the coming days. For more updates please see here.
I have a social policy mod that is intended to give Melee units the ability to build things like workers can. I accomplished this by making a "duplicate" of each melee unit up to the renaissance era, using a lua script to upgrade all melee units a player controls to the duplicate upon adopting...
Alternatively, now that I realize it, the Pyramids spawn units when you build them, as does Borobudur. You can use xml alone to make a unique building for your new civilization, and make it such that when you build that building, a unit spawns
https://modiki.civfanatics.com/index.php/Lua_and_UI_Reference_(Civ5)
Or Google search "Civ V Lua Reference"
This website is very helpful. Look under GameEvents, and you will find all the event hooks you need. These are all the objects, methods and events available for you to use.
You need to...
What I want is very simple: when a Giant Death Robot dies, I want it to go boom. Detecting when a unit dies is easy...
Does anyone know if I can manually trigger a nuclear explosion (atomic bomb sized, not nuclear missile) using Lua?
Or does anyone know if this mod already exists?
Do Great Artists Writers and Musicians hold information about what Great Work they're going to create from the moment they spawn?
Is there an easy way to create a 'random' great work of art or writing?
I am making a mod that would allow a player to obtain Great Works from City States via some method (any method I can actually get to work will do).
The current idea is to detect when a Great Merchant is used for a trade mission inside a city states borders, and then to give that player a Great...
Thank you, that mod is very cool and helpful. It does indeed do most of what I want.
In the source code for your DLL, the bFirst parameter passed in reads "(kTeam.isMajorCiv() && iRevealedMajors == 0)"
Which would indicate bFirst is true if any major team has discovered it.
I want to detect...
I'm making a mod where after adopting a social policy, the player will get +1 gold or culture or something whenever they discover a new tile. Detecting when a player discovers a new tile is hard.
Using DLL - VMC there is an event, GameEvents.TileRevealed, which triggers when a unit gains sight...
Civilization V is frustratingly inconsistent with whether or not changes to building's yields will show up in the city screen if you hover over them with your mouse.
If a religious belief adds a yield to a building, say a shrine, when you mouse over a shrine built in a city following that...
I have a mod feature I've been working on where tiles improvements that provide defensive bonuses (forts, citadels and chateaus) give and additional +2 culture if there is a unit in the tile. When the unit leaves the tile by any means or the tile improvement is changed, the culture yield is...
Thank you so much! I got it to work.
What is the parameter fDelay? I would like the popup to happen after the damage, xp, culture, and gold popups have already displayed.
I guess what I'm asking is where is good documentation for all of the methods and changes in your DLL mod? I have a couple...
So I've successfully implemented a feature where a player gains Science from enemy unit kills equal to their combat strength, and it does indeed update the progress toward the next technology like I want it to. I want the amount of Science gained to display on the screen after the battle...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.