The_Coyote
Emperor
absolut awesome units
(as ever ...)

Hi there.
I m greek,therefore happy to see these nice units!
However,a guy from here,made a mod that includes the 300 spartans and other units as a legend.i dont remember the mod's name.There were other legends too,like the red baron and the bismark.
My question,is possible to create a unit with unique skills,totally unique in the world,built only once for the first civilization to complete it just like the world wonders?
(300 spartans for example)?
Hi there.
I m greek,therefore happy to see these nice units!
However,a guy from here,made a mod that includes the 300 spartans and other units as a legend.i dont remember the mod's name.There were other legends too,like the red baron and the bismark.
My question,is possible to create a unit with unique skills,totally unique in the world,built only once for the first civilization to complete it just like the world wonders?
(300 spartans for example)?
My question,is possible to create a unit with unique skills,totally unique in the world,built only once for the first civilization to complete it just like the world wonders?
(300 spartans for example)?
<UnitClassInfo>
<Type>UNITCLASS_MY_UNIT</Type>
<Description>TXT_KEY_UNIT_MY_UNIT</Description>
[B]<iMaxGlobalInstances>-1</iMaxGlobalInstances>[/B]
<iMaxTeamInstances>-1</iMaxTeamInstances>
<iMaxPlayerInstances>-1</iMaxPlayerInstances>
<iInstanceCostModifier>0</iInstanceCostModifier>
<DefaultUnit>UNIT_MY_UNIT</DefaultUnit>
</UnitClassInfo>
First you need to be able to add in a new unit. This is a very good tutorial on it, and actually the first thing I did when I started modding Civ4.
Guide To adding new Units
After you get your unit in the game and working the way you turn it into a single instance "Wonder' unit is fairly straight forward and easy:
In Unit Class infos you have entries like this:
The bolded iMaxGlobalInstances variable sets the number of units that can ever be built in the world. -1 means unlimited, and will be what's there for most units. To make a unit a "Wonder", simply change this to 1. A similar system exists for buildings. One thing to note the civilopedia wol't sort the list for units automatically and create a new Wonder Unit category, you'll need to program that in Python if you want it. But since you'd be doing this for your own private mod, I doubt minor aesthetic issues like the Civilopedia entries would matter.Code:<UnitClassInfo> <Type>UNITCLASS_MY_UNIT</Type> <Description>TXT_KEY_UNIT_MY_UNIT</Description> [B]<iMaxGlobalInstances>-1</iMaxGlobalInstances>[/B] <iMaxTeamInstances>-1</iMaxTeamInstances> <iMaxPlayerInstances>-1</iMaxPlayerInstances> <iInstanceCostModifier>0</iInstanceCostModifier> <DefaultUnit>UNIT_MY_UNIT</DefaultUnit> </UnitClassInfo>
I also finished a old request by primordial stew
Thraex,
![]()
http://forums.civfanatics.com/downloads.php?do=file&id=12700
Please tell me if there is anything wrong with the units or download and feel free to comment state what you like, hate, what you would have done differently and so on.