AW Arcaeca
Deus Vult
As the title says, I would like to know how to make a trait that gives +1 sight for all units for every 30
per turn earned. Additionally, I'm considering adding, for land units only, +1
while defending per 50
per turn, and +1
while attacking per 100
per turn.
But the only thing I can find about unit sight is in the CvUnitLua.cpp file in
C:\Program Files (x86)\Steam\steamapps\common\Sid Meier's Civilization V SDK\CvGameCoreSource\CvGameCoreDLL\Lua .
Miraculously enough, the file also includes data for being in combat defending vs. being in combat attacking. But it's written in C++ (I think) so I don't know how to put that information into a lua file - which I also don't know how to code.
So anyone know how to code something like that? I'm still looking through the code for any data about the faith per turn earned...





But the only thing I can find about unit sight is in the CvUnitLua.cpp file in
C:\Program Files (x86)\Steam\steamapps\common\Sid Meier's Civilization V SDK\CvGameCoreSource\CvGameCoreDLL\Lua .
Miraculously enough, the file also includes data for being in combat defending vs. being in combat attacking. But it's written in C++ (I think) so I don't know how to put that information into a lua file - which I also don't know how to code.
So anyone know how to code something like that? I'm still looking through the code for any data about the faith per turn earned...