Jump to content

HasTurretTooltips: Difference between revisions

From ModEnc²
en>DCoder
No edit summary
 
m 2 revisions imported
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{DeeZireInclusion}}<br />
{{flag
Can be set to 'true' or 'false' and determines if this multiplexes the 'tool tips' (text that is displayed on screen as its name when the mouse is left over it) based on its current turret. The effect is that the name of the current weapon (see the $TurretWeapon= entry) acts as a prefix to the name of the unit, so for example a 'Machine Gun' turret weapon on the IFV unit would become 'Machine Gun IFV'.
|files={{Categ|ini=rules}}
|values={{values|boolean}}
|types={{Categ|Technoes}}
|default=no
|ra2=yes
|yr=yes
|ares=yes
}}
Fill in "yes" or "no." This code specifies whether the transport unit's tooltip should display as ''"<Passenger> <UIName>"'' based on the first Passenger when transporting troops.
For this statement, the naming rule for IFV (Infantry Fighting Vehicle) is as follows:
# If there are no Infantry Passengers, the vehicle will only display the content specified by [[UIName]].
# If it is a Vehicle Passenger, it does not fall under the Infantry Passenger rule as mentioned above.
# If it is an Infantry Passenger and {{f|UseOwnName|yes|link}}, it will display as "<Passenger> <UIName>".
# If it is an Infantry Passenger and {{f|UseOwnName|no|link}}:
#*If using Tur[1], it will display as {(Fixed CSFLabel ''Tip:MachineGun'' ) ([TransportVehicle] > {{f|UIName|CSFLabel|link}})}.
#*If using Tur[2], it will display as {(Fixed CSFLabel ''Tip:Repair'' )    ([TransportVehicle] > {{f|UIName|CSFLabel|link}})}.
#*If using Tur[3], it will display as {([InfantryPassenger] > {{f|UIName|CSFLabel|link}})  ([TransportVehicle] > {{f|UIName|CSFLabel|link}})}.
#*If using Tur[X], it will display as {(Fixed CSFLabel ''Tip:Rocket'' )    ([TransportVehicle] > {{f|UIName|CSFLabel|link}})}.
In {{ra2}}, there is no [[UseOwnName]], but if the primary weapon has {{f|Bullets|yes|link}}, it will forcibly display as ''Tip:MachineGun''.
 
==See Also==
[[Gunner]]
 
[[IFV Weapon System]]
 
[[TurretCount]]
 
[[WeaponCount]]
 
[[UseOwnName]]
 
[[Bullets]]

Latest revision as of 21:45, 31 March 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: HasTurretTooltips
File(s): rules(md).ini
Values: Boolean values: yes or no, true or false, 1 or 0
Default: no
Applicable to: TechnoTypes:

AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes



Fill in "yes" or "no." This code specifies whether the transport unit's tooltip should display as "<Passenger> <UIName>" based on the first Passenger when transporting troops. For this statement, the naming rule for IFV (Infantry Fighting Vehicle) is as follows:

  1. If there are no Infantry Passengers, the vehicle will only display the content specified by UIName.
  2. If it is a Vehicle Passenger, it does not fall under the Infantry Passenger rule as mentioned above.
  3. If it is an Infantry Passenger and UseOwnName=yes, it will display as "<Passenger> <UIName>".
  4. If it is an Infantry Passenger and UseOwnName=no:
    • If using Tur[1], it will display as {(Fixed CSFLabel Tip:MachineGun ) ([TransportVehicle] > UIName=CSFLabel)}.
    • If using Tur[2], it will display as {(Fixed CSFLabel Tip:Repair ) ([TransportVehicle] > UIName=CSFLabel)}.
    • If using Tur[3], it will display as {([InfantryPassenger] > UIName=CSFLabel) ([TransportVehicle] > UIName=CSFLabel)}.
    • If using Tur[X], it will display as {(Fixed CSFLabel Tip:Rocket ) ([TransportVehicle] > UIName=CSFLabel)}.

In Red Alert 2, there is no UseOwnName, but if the primary weapon has Bullets=yes, it will forcibly display as Tip:MachineGun.

See Also

Gunner

IFV Weapon System

TurretCount

WeaponCount

UseOwnName

Bullets