This modcomponent lets you define units, which you want to die after a certain amount of time.
ATTENTION: Totally rewritten at October, 9th, 2012, on request by Nimek.
This mod component includes:
- Python\CvEventManager.py, with 6 changes, marked with "Dying Heroes". In 2 places, you have see HeroesUtil.init("DyingHeroes"). At this point, the "DyingHeroes" is the folder name of the mod, and if you merge it, you'll have to change it.
- Python\CvGameUtils.py, with 2 changes, marked with "Dying Heroes"
- HeroesUtil.py, drop this file in the Python folder, together with the 2 above. Nothing to change in this file
- XML\CustomXML\CIV4HeroesInfos.xml: This file holds the data for the heroes
- All other XML files are for the 3 example heroes (besides parts of the text). You do not have to merge them, if you don't want to have them.
In the XML\CustomXML\CIV4HeroesInfos.xml you can define
- UnitClass of the hero unit
- It's native era
- It's time to live
- The text for the death popup
A unit will live it's whole native era (and can only be build if you are in that era), and will die after you left the native era and the number of turns which you set in the time to live variable has expired. If you set the native era to -1, the unit will just live the number of turns which you set.
Other things:
- Lifetime automatically scales with iTrainPercent from GameSpeedInfos.xml
- You'll get a warning message 5 rounds and one round before the unit dies.
- AI units with only 1 turn to live will be set to UNITAI_LEMMING
- The lifetimes will be restored after loading
This modcomp was originally requested by cybrxkhan for his World Of Legends mod.
It has been rewritten based on a request by Nimek.
Credits for the unit models go to Mechaerik for his Captain America and his Wolverine, and to Robo Magic Man for his Chuck Norris (had not seen the newer version by GarredSidzaka).
ATTENTION: Totally rewritten at October, 9th, 2012, on request by Nimek.
This mod component includes:
- Python\CvEventManager.py, with 6 changes, marked with "Dying Heroes". In 2 places, you have see HeroesUtil.init("DyingHeroes"). At this point, the "DyingHeroes" is the folder name of the mod, and if you merge it, you'll have to change it.
- Python\CvGameUtils.py, with 2 changes, marked with "Dying Heroes"
- HeroesUtil.py, drop this file in the Python folder, together with the 2 above. Nothing to change in this file
- XML\CustomXML\CIV4HeroesInfos.xml: This file holds the data for the heroes
- All other XML files are for the 3 example heroes (besides parts of the text). You do not have to merge them, if you don't want to have them.
In the XML\CustomXML\CIV4HeroesInfos.xml you can define
- UnitClass of the hero unit
- It's native era
- It's time to live
- The text for the death popup
A unit will live it's whole native era (and can only be build if you are in that era), and will die after you left the native era and the number of turns which you set in the time to live variable has expired. If you set the native era to -1, the unit will just live the number of turns which you set.
Other things:
- Lifetime automatically scales with iTrainPercent from GameSpeedInfos.xml
- You'll get a warning message 5 rounds and one round before the unit dies.
- AI units with only 1 turn to live will be set to UNITAI_LEMMING
- The lifetimes will be restored after loading
This modcomp was originally requested by cybrxkhan for his World Of Legends mod.
It has been rewritten based on a request by Nimek.
Credits for the unit models go to Mechaerik for his Captain America and his Wolverine, and to Robo Magic Man for his Chuck Norris (had not seen the newer version by GarredSidzaka).