Jump to content


Photo

Construst Unit Commands?


  • Please log in to reply
2 replies to this topic

#1 Flame Of Udûn

Flame Of Udûn

    Lord of Everything

  • Members
  • 172 posts
  • Location:UK
  • Projects:My hero/faction/other stuff mod.

Posted 09 May 2005 - 06:15 PM

I added Command_ConstructDwarf to a Gondor Barracks command set but it says it doesnbt exist. Where do I make the command? I looked through the horde and unit ini's for Gondor fighters but couldn't find it anywhere...
The dark fire shall not avail you, Flame of Udûn!

-~= Gandalf =~-

Posted Image

#2 ched

ched

    .

  • Undead
  • 4,431 posts
  • Location:Angers (France)
  • Projects:Rhovanion Alliance
  •  T3A Team Chamber Member
  • Division:BFME
  • Job:Previous Division Leader

Posted 09 May 2005 - 06:21 PM

commandbutton.ini controls it all, heres a quick example of what you should do :

CommandButton Command_ConstructMordorBatteringRam
	Command    = UNIT_BUILD
	Object    = MordorBatteringRam
	Options    = CANCELABLE
	TextLabel 	 = CONTROLBAR:ConstructMordorBatteringRam
	ButtonImage 	 = BMGreatSeigeWorks_BatteringRam
	ButtonBorderType	= BUILD; Identifier for the User as to what kind of button this is
	DescriptLabel  = CONTROLBAR:ToolTipBuildMordorBatteringRam
	Radial    = Yes
	InPalantir      = Yes
	ShowProductionCount	= Yes     
End

you can add NEED_UPGRADE in Options like this
Options    = NEED_UPGRADE CANCELABLE


and then beneath, add
NeededUpgrade  = Upgrade_StructureLevel2

Software is like sex; it's better when it's free ~Linus Torvald

#3 Flame Of Udûn

Flame Of Udûn

    Lord of Everything

  • Members
  • 172 posts
  • Location:UK
  • Projects:My hero/faction/other stuff mod.

Posted 09 May 2005 - 08:07 PM

Ah, thanks
The dark fire shall not avail you, Flame of Udûn!

-~= Gandalf =~-

Posted Image




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users