Need help adding custom traits and units

Toussaint10326

Chieftain
Joined
Jul 28, 2017
Messages
84
Location
United States
So I recently uploaded the Portuguese Civilization to the Steam Workshop. Regrettably it is still severely underdeveloped. By that I mean the traits are not unique and it doesn't have any units. Now, experienced modders will get a kick out of this: I have no clue how to add either. You may be asking "Why bother making a Civilization then." My answer: I really want to have my own Civilization, and I feel super good about what I've done so far but would like to take it further.

Anyways, I'd like my Leader Trait to half the time it takes to construct campus' and theater squares. I want my Civilization's trait to make producing scouts cheaper. My unique Unit will be a replacement for the Caravel that has extra mobility. Every time I look at other modder's codes and try to fit it to my own format for the unit it never works. Anyways, if anyone on these forums can give me some advice I would get on my knees and cry tears of joy!
 
Since you're just getting into modding, and have at least a little bit of working code, I'd say (maybe after you read through those tutorials) find a mod with effects/units/traits similar to what you're looking for, download it, and parse through its code. You may end up just copying swaths of it (if you do this with Lua, or even complicated SQL/XML, you should think about including credits in your mod/workshop descriptions), which is a good way to get a base of workable code. Find as many of the relevant (and simple) mods as you can, compare their code, choose whose conventions to follow or develop your own.

Oh, and absolutely do this with the base game code. There's plenty of stuff that increases production of a district, for example; find it, learn it, and copy it right into your mod if it's close enough to what you want.

Best of luck!
 
Back
Top Bottom