Hmmm, I can't reply in the other thread, so sorry moderators, I'm starting a new thread.
Units.txt, bit by bit
<center><table width=80%><tr><td><font color=000080 face="Verdana" size=2><font size="1">quote:
<img src="/images/blue1.gif" width=100% height=1>
</font><font size = 1>from units.txt</font>
## UNIT 0
UNIT_ABOLITIONIST { <----- unit internal name
Description DESCRIPTION_UNIT_ABOLITIONIST <----- not used
DefaultIcon UNIT_ICON_ABOLITIONIST <--- In uniticon.txt
IconDefaultSprite SPRITE_ABOLITIONIST <--- In newsprite.txt
Category UNIT_CATEGORY_SPECIAL <--- category
Attack 0 <---------- statistics
Defense 10 <----------
ZBRangeAttack 0 <---------- used
Firepower 1 <---------- in
Armor 1 <----------
MaxHP 10 <---------- combat
ShieldCost 540 <---- cost of unit
PowerPoints 250
ShieldHunger 5 <---- upkeep cost of unit (per turn)
FoodHunger 0 <---- upkeep cost of unit in food
MaxMovePoints 300 <---- how far it can move
VisionRange 1 <---- how far it can see
EnableAdvance ADVANCE_CLASSICAL_EDUCATION <--- enabling advance
ActiveDefenseRange 0 <---- how far it can actively defend
LossMoveToDmgNone
MaxFuel 0 <---- Amount of fuel (for aeroplanes)
* IgnoreZOC <---- This unit can ignore zones of control
* NoZoc <---- This unit has no zone of control
* CanBeExpelled <---- This unit can be expelled
* CantCaptureCity <---- This uniot cannot capture cities
* NoSlaves <---- Only build if you have no slaves
* IsSpecialForces <---- Full hitpoints regardless of military status
* Civilian <---- Isn't a military unit
s SoundSelect1 SOUND_SELECT1_ABOLITIONIST
s SoundSelect2 SOUND_SELECT2_ABOLITIONIST
s SoundMove SOUND_MOVE_ABOLITIONIST
s SoundAcknowledge SOUND_ACKNOWLEDGE_ABOLITIONIST
s SoundCantMove SOUND_CANTMOVE_ABOLITIONIST
s SoundAttack SOUND_ATTACK_ABOLITIONIST
s SoundWork SOUND_WORK_ABOLITIONIST
s SoundVictory SOUND_VICTORY_ABOLITIONIST
s SoundDeath SOUND_DEATH_ABOLITIONIST
CanSee: Standard <----- can see normal units
CanSee: Stealth <----- can see stealth units
MovementType: Land <----- walks on land
MovementType: Mountain <----- walks on mountains
Size: Small <----- is small
VisionClass: Stealth <----- is stealthy
se SlaveUprising {
Sound SOUND_ID_SLAVE_UPRISING
Effect SPECEFFECT_SLAVE_UPRISING
}
se UndergroundRailway {
Chance 0.75
DeathChance 0.5
Sound SOUND_ID_UNDERGROUND_RAILWAY
Effect SPECEFFECT_UNDERGROUND_RAILWAY
}
}
################################################## ##########
<img src="/images/blue1.gif" width=100% height=1></font></td></tr></table></center>
Lines marked * indicate that these flags do not have to be present, and are used by the Abolitionist, and certain others, other units have other special flag, like the paratrooper that can paradrop etc.
Lines marked - s are sound lines, that are present in all units, and unless you want to make your own sound files, have to end with a unit that the game already uses.
Lines marked se are special effects that only the abolistionist has. again, other units have their own special effects, eg. the cleric, slaver...
The combat lines are what really make military units different from each other.
Attack 10
Defense 10
ZBRangeAttack 20
Firepower 1
Armor 1
MaxHP 10
The attack line is how powerful the unit is. These numbers are from the archer unit. it has a melee atatck of 10. This is fairly standard for the ancient age. As you go through the ages, the attack power gets bigger, as the weopons get more advanced.
Defence (english spelling, not american ) is how resistant to enemy attacks the unit is. (obviously).
ZBRangeAttack is how powerful the unit is as a ranged attacker. Archers, gunners, and war walkers are better as ranged attackers because they fire from a distance.
Firepower is a multiplier that works in the clever combat function so that good units beat worse units.
Armour is a defence multiplier, so tanks have lots of armour, hoplites have a little (a shield) and slavers (fat men) have none.
If this explaination was too much, then I apologise, but I hope it helped people understand how to edit stuff, especially if translating from American programming references into a foreign language, then back again is a little difficult.
If this explaination was too little, please ask more questions, and I'm sure everyone will be happy to help.
Ben
<font size=1 face=Arial color=444444>[This message has been edited by Immortal Wombat (edited April 02, 2001).]</font>
Units.txt, bit by bit
<center><table width=80%><tr><td><font color=000080 face="Verdana" size=2><font size="1">quote:
<img src="/images/blue1.gif" width=100% height=1>
</font><font size = 1>from units.txt</font>
## UNIT 0
UNIT_ABOLITIONIST { <----- unit internal name
Description DESCRIPTION_UNIT_ABOLITIONIST <----- not used
DefaultIcon UNIT_ICON_ABOLITIONIST <--- In uniticon.txt
IconDefaultSprite SPRITE_ABOLITIONIST <--- In newsprite.txt
Category UNIT_CATEGORY_SPECIAL <--- category
Attack 0 <---------- statistics
Defense 10 <----------
ZBRangeAttack 0 <---------- used
Firepower 1 <---------- in
Armor 1 <----------
MaxHP 10 <---------- combat
ShieldCost 540 <---- cost of unit
PowerPoints 250
ShieldHunger 5 <---- upkeep cost of unit (per turn)
FoodHunger 0 <---- upkeep cost of unit in food
MaxMovePoints 300 <---- how far it can move
VisionRange 1 <---- how far it can see
EnableAdvance ADVANCE_CLASSICAL_EDUCATION <--- enabling advance
ActiveDefenseRange 0 <---- how far it can actively defend
LossMoveToDmgNone
MaxFuel 0 <---- Amount of fuel (for aeroplanes)
* IgnoreZOC <---- This unit can ignore zones of control
* NoZoc <---- This unit has no zone of control
* CanBeExpelled <---- This unit can be expelled
* CantCaptureCity <---- This uniot cannot capture cities
* NoSlaves <---- Only build if you have no slaves
* IsSpecialForces <---- Full hitpoints regardless of military status
* Civilian <---- Isn't a military unit
s SoundSelect1 SOUND_SELECT1_ABOLITIONIST
s SoundSelect2 SOUND_SELECT2_ABOLITIONIST
s SoundMove SOUND_MOVE_ABOLITIONIST
s SoundAcknowledge SOUND_ACKNOWLEDGE_ABOLITIONIST
s SoundCantMove SOUND_CANTMOVE_ABOLITIONIST
s SoundAttack SOUND_ATTACK_ABOLITIONIST
s SoundWork SOUND_WORK_ABOLITIONIST
s SoundVictory SOUND_VICTORY_ABOLITIONIST
s SoundDeath SOUND_DEATH_ABOLITIONIST
CanSee: Standard <----- can see normal units
CanSee: Stealth <----- can see stealth units
MovementType: Land <----- walks on land
MovementType: Mountain <----- walks on mountains
Size: Small <----- is small
VisionClass: Stealth <----- is stealthy
se SlaveUprising {
Sound SOUND_ID_SLAVE_UPRISING
Effect SPECEFFECT_SLAVE_UPRISING
}
se UndergroundRailway {
Chance 0.75
DeathChance 0.5
Sound SOUND_ID_UNDERGROUND_RAILWAY
Effect SPECEFFECT_UNDERGROUND_RAILWAY
}
}
################################################## ##########
<img src="/images/blue1.gif" width=100% height=1></font></td></tr></table></center>
Lines marked * indicate that these flags do not have to be present, and are used by the Abolitionist, and certain others, other units have other special flag, like the paratrooper that can paradrop etc.
Lines marked - s are sound lines, that are present in all units, and unless you want to make your own sound files, have to end with a unit that the game already uses.
Lines marked se are special effects that only the abolistionist has. again, other units have their own special effects, eg. the cleric, slaver...
The combat lines are what really make military units different from each other.
Attack 10
Defense 10
ZBRangeAttack 20
Firepower 1
Armor 1
MaxHP 10
The attack line is how powerful the unit is. These numbers are from the archer unit. it has a melee atatck of 10. This is fairly standard for the ancient age. As you go through the ages, the attack power gets bigger, as the weopons get more advanced.
Defence (english spelling, not american ) is how resistant to enemy attacks the unit is. (obviously).
ZBRangeAttack is how powerful the unit is as a ranged attacker. Archers, gunners, and war walkers are better as ranged attackers because they fire from a distance.
Firepower is a multiplier that works in the clever combat function so that good units beat worse units.
Armour is a defence multiplier, so tanks have lots of armour, hoplites have a little (a shield) and slavers (fat men) have none.
If this explaination was too much, then I apologise, but I hope it helped people understand how to edit stuff, especially if translating from American programming references into a foreign language, then back again is a little difficult.
If this explaination was too little, please ask more questions, and I'm sure everyone will be happy to help.
Ben
<font size=1 face=Arial color=444444>[This message has been edited by Immortal Wombat (edited April 02, 2001).]</font>
Comment