View Single Post
Old 01-01-2005, 05:30 AM   #4 (permalink)
Azad0r
Member
 
Join Date: Feb 2004
Posts: 41
Default

To make a building require an upgrade you must enter these lines of code:

Code:
	Options				= NEED_UPGRADE CANCELABLE
	NeededUpgrade		= <insertupgradenamehere>
Heres an example of this - the haradrim palace requires the fire arrow upgrade:

Code:
CommandButton Command_ConstructMordorHaradrimPalace
  Command          = FOUNDATION_CONSTRUCT
  Object           = MordorHaradrimPalace
  Options	   = NEED_UPGRADE CANCELABLE
  NeededUpgrade    = Upgrade_TechnologyMordorFireArrows
  TextLabel        = CONTROLBAR:ConstructMordorHaradrimPalace
  ButtonImage      = BMHaradrimPalace
  ButtonBorderType = BUILD ; Identifier for the User as to what kind of button this is
  DescriptLabel    = CONTROLBAR:ToolTipMordorHaradrimPalace
  Radial           = Yes  
End
Hope this helped, but I still need the answer to question 1.
Azad0r is offline   Reply With Quote