The problem is that although it works prefectly, the command button and the shortcut button refuse to change their cameo. Can someone please help me?
Here is the code I changed:
CommandButton Command_ChinaCarpetBomb Command = SPECIAL_POWER SpecialPower = SuperweaponChinaCarpetBomb Science = SCIENCE_ChinaCarpetBomb Nuke_SCIENCE_ChinaCarpetBomb Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND TextLabel = CONTROLBAR:CarpetBomb ButtonImage = SNCBomber RadiusCursorType = CARPETBOMB InvalidCursorName = GenericInvalid ButtonBorderType = ACTION DescriptLabel = CONTROLBAR:TooltipCarpetBomb End CommandButton Early_Command_ChinaCarpetBomb Command = SPECIAL_POWER SpecialPower = Early_SuperweaponChinaCarpetBomb Science = Early_SCIENCE_ChinaCarpetBomb Nuke_SCIENCE_ChinaCarpetBomb Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND TextLabel = CONTROLBAR:CarpetBomb ButtonImage = SNCBomber RadiusCursorType = CARPETBOMB InvalidCursorName = GenericInvalid ButtonBorderType = ACTION DescriptLabel = CONTROLBAR:TooltipCarpetBomb End CommandButton Command_ChinaCarpetBombFromShortcut Command = SPECIAL_POWER_FROM_SHORTCUT SpecialPower = SuperweaponChinaCarpetBomb Science = SCIENCE_ChinaCarpetBomb Nuke_SCIENCE_ChinaCarpetBomb Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND TextLabel = OBJECT:CarpetBomb ButtonImage = SNCBomber RadiusCursorType = CARPETBOMB InvalidCursorName = GenericInvalid DescriptLabel = CONTROLBAR:TooltipCarpetBomb End CommandButton Early_Command_ChinaCarpetBombFromShortcut Command = SPECIAL_POWER_FROM_SHORTCUT SpecialPower = Early_SuperweaponChinaCarpetBomb Science = Early_SCIENCE_ChinaCarpetBomb Nuke_SCIENCE_ChinaCarpetBomb Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND TextLabel = OBJECT:CarpetBomb ButtonImage = SNCBomber RadiusCursorType = CARPETBOMB InvalidCursorName = GenericInvalid DescriptLabel = CONTROLBAR:TooltipCarpetBomb End
CommandButton Command_PurchaseScienceCarpetBomb Command = PURCHASE_SCIENCE Science = SCIENCE_ChinaCarpetBomb ButtonImage = SNCBomber ButtonBorderType = UPGRADE TextLabel = CONTROLBAR:CarpetBomb ConflictingLabel = OBJECT:CarpetBomb DescriptLabel = CONTROLBAR:TooltipCarpetBomb End CommandButton Early_Command_PurchaseScienceCarpetBomb Command = PURCHASE_SCIENCE Science = Early_SCIENCE_ChinaCarpetBomb ButtonImage = SNCBomber ButtonBorderType = UPGRADE TextLabel = CONTROLBAR:CarpetBomb ConflictingLabel = OBJECT:CarpetBomb DescriptLabel = CONTROLBAR:TooltipCarpetBomb End CommandButton Nuke_Command_FAKECOMMAND_PurchaseScienceNukeCarpetBomb Command = PURCHASE_SCIENCE Options = SCRIPT_ONLY Science = Nuke_SCIENCE_ChinaCarpetBomb ButtonImage = SSNkeCrptBmb TextLabel = CONTROLBAR:Nuke_CarpetBomb ConflictingLabel = OBJECT:Nuke_CarpetBomb DescriptLabel = CONTROLBAR:Nuke_TooltipCarpetBomb End
Here is the code for the superweapon in the Command Center:
Behavior = OCLSpecialPower ModuleTag_CarpetBombChina SpecialPowerTemplate = SuperweaponChinaCarpetBomb UpgradeOCL = Nuke_SCIENCE_ChinaCarpetBomb Nuke_SUPERWEAPON_ChinaCarpetBomb OCL = SUPERWEAPON_ChinaCarpetBomb CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE End Behavior = OCLSpecialPower ModuleTag_Early_CarpetBombChina SpecialPowerTemplate = Early_SuperweaponChinaCarpetBomb UpgradeOCL = Nuke_SCIENCE_ChinaCarpetBomb Nuke_SUPERWEAPON_ChinaCarpetBomb OCL = SUPERWEAPON_ChinaCarpetBomb CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE End
Edited by FleetCommand, 21 January 2005 - 11:22 PM.