Jump to content


Photo

Commandset switch without switching weapons?


  • Please log in to reply
2 replies to this topic

#1 Elric

Elric

    Designer

  • Hosted
  • 2,857 posts
  • Projects:Middle-Earth Expanded
  •  Coder
  • Donated

Posted 04 August 2011 - 03:11 AM

hey guys,

I am doing the command set switch but i want it to be separate from the regular weapons toggle like i have my elven warrior right? i want him to have a toggle weapons button and a commandset switch button but when i do weaponset_toggle_1 and 2 it conflicts with weapon toggle so how can i do with out making it conflict with already existing ones? weaponset_toggle_3 works but not 4. what can i put in 4's place?

#2 fienx001

fienx001
  • Members
  • 118 posts
  • Location:Pacific Northwest
  • Projects:The Door of Night | Fienx Mod
  •  Getting There

Posted 04 August 2011 - 07:39 AM

Not knowing exactly what you mean, and absent any code summary...is this something like what you want?

CommandSet LurtzCommandSet
	1	= Command_ToggleStance   
	2	= Command_ToggleLurtzWeapon <---------------------------------------;Something like this?
	3	= Command_LurtzCripple <---------------------------------------;Something like this?
	4	= Command_SpecialAbilityLurtzCarnage
	5	= Command_LurtzLeadership
	6	= Command_LurtzPillage
	12	= Command_CaptureBuilding
	13	= Command_AttackMove
	14	= Command_Stop
	16  	= Command_SetStanceBattle
	17  	= Command_SetStanceAggressive
	18  	= Command_SetStanceHoldGround
End


CommandButton Command_ToggleLurtzWeapon
	Command			= TOGGLE_WEAPONSET
	Options			= TOGGLE_IMAGE_ON_WEAPONSET
	FlagsUsedForToggle	= WEAPONSET_TOGGLE_1
	TextLabel               = CONTROLBAR:ToggleLurtzWeapon
	ButtonImage             = HSLurtzSword HSLurtzBow 
	ButtonBorderType        = ACTION 
	DescriptLabel           = CONTROLBAR:ToolTipToggleLurtzWeapon
	InPalantir		= Yes
      ;UnitSpecificSound = WeaponSwitchSword WeaponSwitchBow
  DisableOnModelCondition = HERO					; disable if currently using Carnage <---------------------------------------;Something like this?
End

CommandButton Command_LurtzCripple
  Command                 	= SPECIAL_POWER 
  SpecialPower            	= SpecialAbilityLurtzCripple
  Options                 	= NEED_TARGET_ENEMY_OBJECT ; CONTEXTMODE_COMMAND
  TextLabel               	= CONTROLBAR:SpecialAbilityLurtzCripple
  CursorName              	= EvilAbilityObj
  InvalidCursorName       	= GenericInvalid 
  ButtonImage             	= HSLurtzCrippleStrike
  ButtonBorderType        	= ACTION 
  DescriptLabel           	= CONTROLBAR:ToolTipSpecialAbilityLurtzCripple
  UnitSpecificSound       	= LurtzVoiceModeCripplingStrike
  DisableOnModelCondition 	= WEAPONSET_TOGGLE_1 HERO					; disable if currently using sword or Carnage <---------------------------------------;Something like this?
  InPalantir			= Yes
  AutoAbility			= Yes  
End

Posted Image

#3 Elric

Elric

    Designer

  • Hosted
  • 2,857 posts
  • Projects:Middle-Earth Expanded
  •  Coder
  • Donated

Posted 04 August 2011 - 08:09 AM

Thanks! i got it working but then i decided against it and did my own tutorial xD




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users