Here is my buttons code:
Code:
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
Here is the General's Promotion screen's buttons code:
Code:
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
And Here is my Command Center's special power code:
Code:
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