View Single Post
Old 02-20-2003, 06:45 AM   #4 (permalink)
Phoib
Senior Member
 
Join Date: Dec 2002
Posts: 1,031
Send a message via ICQ to Phoib Send a message via MSN to Phoib
Default Upgrade.ini

upgrade.ini

Quote:
Upgrade Upgrade_Nationalism
DisplayName = UPGRADE:Nationalism
BuildTime = 60.0
BuildCost = 2000
QueueImageEnabled = SSNationalism
ResearchSound = RedGuardVoiceUpgradeNationalism
End

Upgrade Upgrade_AmericaRadar
DisplayName = UPGRADE:Radar
Type = OBJECT
BuildTime = 10.0
BuildCost = 500
QueueImageEnabled = SARadarUpgrade
ResearchSound = NoSound ;Doesn't need a sound because this upgrade is granted immediately!
End

;------------------------------------
;America Cold Fusion Reactor Upgrades
;------------------------------------

Upgrade Upgrade_AmericaAdvancedControlRods
DisplayName = UPGRADE:ControlRods
Type = OBJECT
BuildTime = 30.0
BuildCost = 800
QueueImageEnabled = SSControlRods
End

Upgrade Upgrade_ComancheRocketPods
DisplayName = UPGRADE:ComancheRocketPods
Type = PLAYER
BuildTime = 40.0
BuildCost = 800
QueueImageEnabled = SSCommancheMissiles
ResearchSound = ComancheVoiceUpgradeRocketPods
End
Upgrade What for upgrade is this?
DisplayName What for name does this upgrade has?
Type What is affected by the upgrade? The default is nothing. This means that multiple objects from different sorts benefit from it, eg Nationalism affects a lot of units. The second is OBJECT. This means only one object (eg AdvancedControlRods) benefit from this. The third is PLAYER. This means that all objects from a single type benfit from it, eg the ComancheRocketpods.
BuildTime How long does it take to "build" it? In seconds
BuildCost How much does it cost?
QueueImageEnabled What for image does it has?
ResearchSound What for sound to play when the upgrade is complete?
End Ends the Upgrade data

DZ added: Upgrade.INI;-

'Upgrade' should be set to the corrosponding entry from the Upgrade= line in CommandButton.INI.

Type= wise to make sure this doesnt conflict with CommandButton.INI or unpredictable results arise - if your Type= here is PLAYER, then your Command= in CommandButton.INI should be PLAYER_UPGRADE. Likewise, if you set OBJECT here, then in CommandButton.INI it should be OBJECT_UPGRADE. Just for consistency and to make sure it all ties together nicely and works

You can also use QueueImageDisabled=, QueueImageHilite= and QueueImagePushed= for those nice visual tweaks
Phoib is offline   Reply With Quote