Page 1 of 1

Code? WHAT Code?

Posted: Thu Jul 12, 2012 2:32 pm
by dracmeister

Code: Select all

SpecialPower SuperweaponDaisyCutter
  Enum = SPECIAL_DAISY_CUTTER
  ReloadTime = 360000     ; in milliseconds
  RequiredScience = SCIENCE_DaisyCutter
  PublicTimer = No
  SharedSyncedTimer = Yes
  ViewObjectDuration = 30000     ; Lifetime of a Look done belonging to the firing player
  ViewObjectRange = 250     ; And how far it can see
  RadiusCursorRadius = 170     ; shared by MOAB
  ShortcutPower = Yes     ; 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

Code: Select all

CommandButton Command_DaisyCutter
  Command = SPECIAL_POWER
  SpecialPower = SuperweaponDaisyCutter
  Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
  Science = SCIENCE_DaisyCutter SCIENCE_MOAB     ; These will cause the buttons to change icons, nothing more
  TextLabel = CONTROLBAR:DaisyCutter
  ButtonImage = SACDaisyCutter
  ButtonBorderType = ACTION
  DescriptLabel = CONTROLBAR:TooltipDaisyCutter
  RadiusCursorType = DAISYCUTTER
  InvalidCursorName = GenericInvalid
End
Just change a few things and I'm a happy vampire...

Re: Code? WHAT Code?

Posted: Thu Jul 12, 2012 2:43 pm
by Garoslaw
Firstly. Explain what is this all about.
Secondly. Elaborate.