View Single Post
Old 05-24-2005, 08:29 PM   #1 (permalink)
Hostile
Senior Member
 
Join Date: Feb 2004
Posts: 872
Default Commandset upgrade?

Has anyone gotten a commandset upgrade to work in BFME. No present units use it that I can think of. But it's in the game.dat file. I tried basic commandset upgrades. It does not error out but remains greyed out.

This is the behaviors:
Code:
Behavior = CommandSetUpgrade ModuleTag_SwitchToSecond
		TriggeredBy = Upgrade_GalDockCommandSet
		RemovesUpgrades = Upgrade_GalFireCommandSet
		CommandSet = GalDockCommandSet
	End

	Behavior = CommandSetUpgrade ModuleTag_SwitchToFirst
		TriggeredBy = Upgrade_GalFireCommandSet
		RemovesUpgrades = Upgrade_GalDockCommandSet Upgrade_GalFireCommandSet
		CommandSet = GalacticaCommandSet
	End
Fairly cut and dried. The upgrades that go with it:
Code:
Upgrade Upgrade_GalDockCommandSet
	DisplayName       = UPGRADE:MordorBasicTraining
	Type              = OBJECT
	;Tooltip		= TOOLTIP:MordorFireArrows
	BuildCost		= 0
	BuildTime		= 0
	ResearchSound	= CampOrcCreateRedEyeBanner
End

Upgrade Upgrade_GalFireCommandSet
	DisplayName       = UPGRADE:MordorBasicTraining
	Type              = OBJECT
	;Tooltip		= TOOLTIP:MordorFireArrows
	BuildCost		= 0
	BuildTime		= 0
	ResearchSound	= CampOrcCreateRedEyeBanner
End
Coincides just right. Finally the buttons:
Code:
CommandButton Command_SwitchtoGalDockMenu
	Command				= OBJECT_UPGRADE
	Options				= CANCELABLE
	Upgrade				= Upgrade_GalDockCommandSet 
	NeededUpgrade		= NONE;Upgrade_TechnologyGondorBasicTraining
	TextLabel			= CONTROLBAR:PurchaseUpgradeGondorBasicTraining
	ButtonImage			= BGBlacksmith_SilverTreeBanner
	ButtonBorderType	= UPGRADE
	DescriptLabel		= CONTROLBAR:ToolTipPurchaseUpgradeGondorBasicTraining
	InPalantir			= Yes
	LacksPrerequisiteLabel		= TOOLTIP:LackGondorBasicTraining
End

CommandButton Command_SwitchtoGalFireMenu
	Command				= OBJECT_UPGRADE
	Options				= CANCELABLE
	Upgrade				= Upgrade_GalFireCommandSet 
	NeededUpgrade		= NONE;Upgrade_TechnologyGondorBasicTraining
	TextLabel			= CONTROLBAR:PurchaseUpgradeGondorBasicTraining
	ButtonImage			= BGBlacksmith_SilverTreeBanner
	ButtonBorderType	= UPGRADE
	DescriptLabel		= CONTROLBAR:ToolTipPurchaseUpgradeGondorBasicTraining
	InPalantir			= Yes
	LacksPrerequisiteLabel		= TOOLTIP:LackGondorBasicTraining
End
I've tried more simplified version. Nothing seems to work. I'd like a commandset to switch between the default and the upgraded one. Even a simple commandset upgrade does ot seem to be possible. Any insight on this one?

The button shows up but greyed out. So the commandset has nothing to do with it.
Hostile is offline   Reply With Quote