Help Creating Unique Abilitys?

TheMimzy

Chieftain
Joined
Apr 1, 2013
Messages
24
Location
Lockhaven
Alright, in my first mod, I pretty much just copied another civ's UA and slightly altered it. Something I intend to change eventually but... not my concern until after BNW drops. In the meantime I'm trying to get another couple mods going. I asked for suggests for unique abilities and units/buildings and I got a few I liked. Okay! Time to do some research and figure out how to make those things work now!

-SEVERAL HOURS LATER-

Okay! I have NO IDEA what I'm doing... >.<;;
I was kind of hoping there would be some simple if/then type statements I could just tweak, but that was wishful thinking it seems. Most of the other UA's that I thought I could reference and modify appear to have very specifically hardcoded values they're changing. So I'm not sure if there's even anything I can do in the XML files to make this work and I'm afraid to even look at some of this LUA stuff... But in general I find myself with little clue where to even start. And in a few cases unsure if what I want to do is even possible. So I'm looking for any available help with this.


The following is a list of some proposed abilities and effects that I'm looking for help with.
-Unique Ability that provides +1 Food and +25% Food per turn in Cities during a Golden Age.

-Unique Great General that causes nearby units to earn Golden Age points from killing enemies.

-Unique Ability that would make Mountain Tiles workable to provide varying yields that change after certain techs are researched.

-Unique Walls/Building that would reduce combat effectiveness of nearby enemy units.


If any of these are unfeasible, then okay, I just need confirmation of that. But if they can be done, then how would I accomplish it?
 
Alright, in my first mod, I pretty much just copied another civ's UA and slightly altered it. Something I intend to change eventually but... not my concern until after BNW drops. In the meantime I'm trying to get another couple mods going. I asked for suggests for unique abilities and units/buildings and I got a few I liked. Okay! Time to do some research and figure out how to make those things work now!

-SEVERAL HOURS LATER-

Okay! I have NO IDEA what I'm doing... >.<;;
I was kind of hoping there would be some simple if/then type statements I could just tweak, but that was wishful thinking it seems. Most of the other UA's that I thought I could reference and modify appear to have very specifically hardcoded values they're changing. So I'm not sure if there's even anything I can do in the XML files to make this work and I'm afraid to even look at some of this LUA stuff... But in general I find myself with little clue where to even start. And in a few cases unsure if what I want to do is even possible. So I'm looking for any available help with this.


The following is a list of some proposed abilities and effects that I'm looking for help with.
-Unique Ability that provides +1 Food and +25% Food per turn in Cities during a Golden Age.

-Unique Great General that causes nearby units to earn Golden Age points from killing enemies.

-Unique Ability that would make Mountain Tiles workable to provide varying yields that change after certain techs are researched.

-Unique Walls/Building that would reduce combat effectiveness of nearby enemy units.


If any of these are unfeasible, then okay, I just need confirmation of that. But if they can be done, then how would I accomplish it?

You can add custom traits via lua. I've got a tutorial on it: link
 
*nods* okay, I was assuming that the LUA could be used to code things like that. And I'll keep your tutorial bookmarked. But my coding skill is average at best and I still wouldn't know where to start or what to look for in regards to whatever specific elements I'd be looking for(for what i suggested above).
 
Your best sources of information are:
1) This forum, especially the tutorials.
2) The wiki (outdated but still useful)
3) The DLC code under: C:\Program Files (x86)\Steam\SteamApps\common\Sid Meier's Civilization V\Assets\DLC (on my system)
4) The lua/xml code that comes with the game under: C:\Program Files (x86)\Steam\SteamApps\common\Sid Meier's Civilization V\Assets\UI\InGame (on my system).

I use Windows Grep a lot to find things in those files.

There is also the C++ code released with the SDK, but I'd avoid that :)
 
Back
Top Bottom