NOP
  • NOP
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
I made a tech radar tower that has a scan ability cloned from sattelite scan but it wont fire, it just gives me a generic invalid cursor when I try. The reason why it needs its own special power is that without, using the scan ability also depletes the US sattelite ability.
Heres the relevant code:


Object:

; ***DESIGN parameters ***
DisplayName = OBJECT:TechRadar
EditorSorting = STRUCTURE
CommandSet = TechradarCommandSet
ShroudClearingRange = 1000


; *** ENGINEERING Parameters ***
KindOf = STRUCTURE SELECTABLE IMMOBILE CAPTURABLE TECH_BUILDING CONSERVATIVE_BUILDING
Body = ActiveBody ModuleTag_03
MaxHealth = 2000.0
InitialHealth = 2000.0
End

Behavior = OCLSpecialPower ModuleTag_24
SpecialPowerTemplate = SpecialPowerSpySatellite
OCL = SUPERWEAPON_SpySatellite
CreateLocation = CREATE_AT_LOCATION
End

command set:

CommandSet TechradarCommandSet
1 = Command_Radarsweep
End

command button:

CommandButton Command_Radarsweep
Command = SPECIAL_POWER
SpecialPower = SpecialPowerSpySatellite2
Options = NEED_TARGET_POS CONTEXTMODE_COMMAND NEED_SPECIAL_POWER_SCIENCE
TextLabel = CONTROLBAR:radarsweeptitel
ButtonImage = SSRadarsweep
ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:radarsweep
RadiusCursorType = SPYSATELLITE
InvalidCursorName = GenericInvalid
End

special power

SpecialPower SpecialPowerSpySatellite2
Enum = SPECIAL_SPY_SATELLITE
ReloadTime = 60000 ; in milliseconds
PublicTimer = No
RadiusCursorRadius = 300 ; align with system.ini's SpySatellitePing's ShroudClearingRange
InitiateAtLocationSound = SpySatellite
SharedSyncedTimer = Yes
ShortcutPower = no ;Capable of being fired by the side-bar shortcut.
;AcademyClassify = ACT_SUPERPOWER ;Considered a powerful special power that a player could fire. Not for simpler unit based powers.
End



Sponsor
Annihilationzh
14 years ago
ModuleTag_24
SpecialPowerSpySatellite --> SpecialPowerSpySatellite2
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
NOP
  • NOP
  • 100% (Exalted)
  • Major Topic Starter
14 years ago
Thanks! Worked like a charm!