ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
InitialAmmo: Difference between revisions
Jump to navigation
Jump to search
m Added "See also" links |
Nighthawk200 (talk | contribs) Tested. |
||
Line 11: | Line 11: | ||
This flag determines the ammunition supply of a unit, with {{TTL|Ammo}} set, when it is created. An integer value greater than or equal to 0 results in a starting ammo supply of that number plus 1. | This flag determines the ammunition supply of a unit, with {{TTL|Ammo}} set, when it is created. An integer value greater than or equal to 0 results in a starting ammo supply of that number plus 1. | ||
{{ | If {{TTL|InitialAmmo}} is set to a higher value than {{TTL|Ammo}}, then the following happens: | ||
{{TTL|{{ | #The unit will be constructed with the amount of ammo specified in {{TTL|InitialAmmo}}. | ||
#The unit's pip display will only show the amount of ammo specified in {{TTL|Ammo}}, but the pip display will only fully deplete when all of the {{TTL|InitialAmmo}} amount has been used up. | |||
#When reloading, the unit will reload to the amount specified in {{TTL|Ammo}}. | |||
#The unit will then behave as normal in terms of ammo. | |||
==Special Values== | ==Special Values== | ||
* A value of <code>−1</code>, which is the default behavior, results in the unit starting with full ammo. | * A value of <code>−1</code>, which is the default behavior, results in the unit starting with full ammo. |
Revision as of 23:32, 20 June 2008
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Flag: | InitialAmmo |
File(s): | rules(md).ini |
Values: | Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767. |
Special Values: | −1 and −2 |
Default: | −1 |
Applicable to: | TechnoTypes:
AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes |
This flag determines the ammunition supply of a unit, with Template:TTL set, when it is created. An integer value greater than or equal to 0 results in a starting ammo supply of that number plus 1.
If Template:TTL is set to a higher value than Template:TTL, then the following happens:
- The unit will be constructed with the amount of ammo specified in Template:TTL.
- The unit's pip display will only show the amount of ammo specified in Template:TTL, but the pip display will only fully deplete when all of the Template:TTL amount has been used up.
- When reloading, the unit will reload to the amount specified in Template:TTL.
- The unit will then behave as normal in terms of ammo.
Special Values
- A value of
−1
, which is the default behavior, results in the unit starting with full ammo. - A value of
−2
results in the unit starting with an empty ammo supply.