View Single Post
Old 03-09-2006, 12:43 PM   #1 (permalink)
Colton
Senior Member
 
Join Date: Aug 2003
Posts: 109
Default PurchaseScience CarpetBomb

I'm trying to replace the LeafletDrop with the CarpetBomb in the America Science menu, but for some reason my CarpetBomb icon isn't showing up. Here is the code - please let me know what's wrong ...

The icon doesn't show up at all. What am I missing here? This will replace the Leaflet Drop.

; Rank 8 has 3 positions
CommandSet SCIENCE_AMERICA_CommandSetRank8
1 = Command_PurchaseScienceDaisyCutter
2 = Command_PurchaseScienceCarpetBomb
3 = Command_PurchaseScienceSpectreGunship
4 = Command_FAKECOMMAND_PurchaseScienceMOAB .
END

CommandButton Command_PurchaseScienceCarpetBomb
Command = PURCHASE_SCIENCE
Science = SCIENCE_CarpetBomb
ButtonImage = SSCarpetBomb
ButtonBorderType = UPGRADE ; Identifier for the User as to what kind of button this is
End

CommandButton Command_CarpetBomb
Command = SPECIAL_POWER
SpecialPower = SuperweaponCarpetBomb
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = CONTROLBAR:CarpetBomb
ButtonImage = SSCarpetBomb
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:TempDescription
RadiusCursorType = CARPETBOMB
InvalidCursorName = GenericInvalid
End

;-- LEVEL 8 POWERS--
Science SCIENCE_CarpetBomb
PrerequisiteSciences = SCIENCE_AMERICA SCIENCE_Rank5
SciencePurchasePointCost = 1
IsGrantable = Yes
DisplayName = SCIENCE:TempName
Description = SCIENCE:TempDescription
End

SpecialPower SuperweaponCarpetBomb
Enum = SPECIAL_CARPET_BOMB
ReloadTime = 240000
RequiredScience = SCIENCE_CarpetBomb
InitiateSound = AirRaidSiren
PublicTimer = No
SharedSyncedTimer = Yes
ViewObjectDuration = 40000
ViewObjectRange = 250
RadiusCursorRadius = 100
ShortcutPower = Yes ;Capable of being fired by the side-bar shortcut.
AcademyClassify = ACT_SUPERPOWER
End

These are all in the correct .ini files. Help!

- Colton
Colton is offline   Reply With Quote