Hi =) I wanna create a new horde of BlackRider starting from a couple of units. I created a Nazgul which can move:
- on foot
- on horse
- on a fellbeast
and a WitchKing which can move the same ways. Here's the Nazgul code:
ChildObject MyBlackRider KhamulMounted //NAZGUL ON FOOT [in mordorkhamulrider.ini] CommandSet = MyTheNineCommandSet CommandPoints = 10 ;---from foot to horse Behavior = SpecialPowerModule ModuleTag_HorseToggleStarter SpecialPowerTemplate = SpecialAbilityToggleMountedFOH UpdateModuleStartsAttack = Yes StartsPaused = No End Behavior = ToggleMountedSpecialAbilityUpdate ModuleTag_HorseToggle SpecialPowerTemplate = SpecialAbilityToggleMountedFOH MountedTemplate = MyBlackRiderOnHorse SynchronizeTimerOnSpecialPower = SpecialAbilityBlackRiderMorgulBlade SpecialAbilityScreech UnpackTime = 0 PreparationTime = 0 PackTime = 0 OpacityTarget = .0 AwardXPForTriggering = 0 IgnoreFacingCheck = Yes End ;---from foot to fellbeast Behavior = SpecialPowerModule ModuleTag_FellBeastToggleStarter SpecialPowerTemplate = SpecialAbilityToggleMountedFOFE UpdateModuleStartsAttack = Yes StartsPaused = No ;InitiateSound = FellBeastVoiceMove End Behavior = ToggleMountedSpecialAbilityUpdate ModuleTag_FellBeastToggle SpecialPowerTemplate = SpecialAbilityToggleMountedFOFE MountedTemplate = MyBlackRiderOnFellBeast SynchronizeTimerOnSpecialPower = SpecialAbilityCurseEnemy SpecialAbilityScreech UnpackTime = 0 PreparationTime = 0 PackTime = 0 OpacityTarget = .0 AwardXPForTriggering = 0 IgnoreFacingCheck = Yes ;TriggerSound = FellBeastVoiceMove End End
ChildObject MyBlackRiderOnHorse MordorBlackRider //NAZGUL ON HORSE [in mordorblackrider.ini] CommandSet = MyTheNineOnHorsesCommandSet CommandPoints = 10 ;---------from horse to foot------------------------------------------------------------------------ Behavior = SpecialPowerModule ModuleTag_WKFootDismountStarter SpecialPowerTemplate = SpecialAbilityToggleMountedFOH UpdateModuleStartsAttack = Yes StartsPaused = No End Behavior = ToggleMountedSpecialAbilityUpdate ModuleTag_WKFootDismount SpecialPowerTemplate = SpecialAbilityToggleMountedFOH StartAbilityRange = 50.0 MountedTemplate = MyBlackRider SynchronizeTimerOnSpecialPower = SpecialAbilityBlackRiderMorgulBlade SpecialAbilityScreech UnpackTime = 0 PreparationTime = 1 PackTime = 0 OpacityTarget = 1 AwardXPForTriggering = 0 IgnoreFacingCheck = Yes End ;---------from horse to fellbeast------------------------------------------------------------------------ Behavior = SpecialPowerModule ModuleTag_WKFBMountStarter SpecialPowerTemplate = SpecialAbilityToggleMountedHFE UpdateModuleStartsAttack = Yes StartsPaused = No ; InitiateSound = FellBeastVoiceMove End Behavior = ToggleMountedSpecialAbilityUpdate ModuleTag_WKFBMount SpecialPowerTemplate = SpecialAbilityToggleMountedHFE StartAbilityRange = 50.0 MountedTemplate = MyBlackRiderOnFellBeast SynchronizeTimerOnSpecialPower = SpecialAbilityBlackRiderMorgulBlade SpecialAbilityScreech UnpackTime = 0 PreparationTime = 1 PackTime = 0 OpacityTarget = 1 AwardXPForTriggering = 0 IgnoreFacingCheck = Yes End End
ChildObject MyBlackRiderOnFellBeast MordorFellBeastInterface //NAZGUL ON FELLBEAST [in fellbeast.ini] CommandSet = MyTheNineOnFellBeastsCommandSet CommandPoints = 10 ;---------from fellbeast to foot------------------------------------------------------------------------ Behavior = SpecialPowerModule ModuleTag_DismountStarter SpecialPowerTemplate = SpecialAbilityToggleMountedFromFellBeastFOFE UpdateModuleStartsAttack = Yes StartsPaused = No InitiateSound = FellBeastVoiceMove End Behavior = ToggleMountedSpecialAbilityUpdate ModuleTag_Dismount SpecialPowerTemplate = SpecialAbilityToggleMountedFromFellBeastFOFE StartAbilityRange = 50.0 MountedTemplate = MyBlackRider SynchronizeTimerOnSpecialPower = SpecialAbilityCurseEnemy SpecialAbilityScreech UnpackTime = 0 PreparationTime = 1 PackTime = 0 OpacityTarget = 1 AwardXPForTriggering = 0 IgnoreFacingCheck = Yes End ;---------from fellbeast to horse------------------------------------------------------------------------ Behavior = SpecialPowerModule ModuleTag_DismountHorseStarter SpecialPowerTemplate = SpecialAbilityToggleMountedFromFellBeastHFE UpdateModuleStartsAttack = Yes StartsPaused = No InitiateSound = FellBeastVoiceMove End Behavior = ToggleMountedSpecialAbilityUpdate ModuleTag_DismountHorse SpecialPowerTemplate = SpecialAbilityToggleMountedFromFellBeastHFE StartAbilityRange = 50.0 MountedTemplate = MyBlackRiderOnHorse SynchronizeTimerOnSpecialPower = SpecialAbilityCurseEnemy SpecialAbilityScreech UnpackTime = 0 PreparationTime = 1 PackTime = 0 OpacityTarget = 1 AwardXPForTriggering = 0 IgnoreFacingCheck = Yes End End
... and the WitchKing code:
ChildObject MyWitchKing MordorWitchKing //WITCHKING ON FOOT [in witchking.ini] CommandSet = MyTheNineCommandSet CommandPoints = 20 ;--- from foot to horse Behavior = SpecialPowerModule ModuleTag_HorseToggleStarter SpecialPowerTemplate = SpecialAbilityToggleMountedFOH UpdateModuleStartsAttack = Yes StartsPaused = No End Behavior = ToggleMountedSpecialAbilityUpdate ModuleTag_HorseToggle SpecialPowerTemplate = SpecialAbilityToggleMountedFOH MountedTemplate = MyWKOnHorse SynchronizeTimerOnSpecialPower = SpecialAbilityBlackRiderMorgulBlade SpecialAbilityScreech UnpackTime = 0 PreparationTime = 0 PackTime = 0 OpacityTarget = .0 AwardXPForTriggering = 0 IgnoreFacingCheck = Yes End ;--- from foot to fellbeast Behavior = SpecialPowerModule ModuleTag_FellBeastToggleStarter SpecialPowerTemplate = SpecialAbilityToggleMountedFOFE UpdateModuleStartsAttack = Yes StartsPaused = No End Behavior = ToggleMountedSpecialAbilityUpdate ModuleTag_FellBeastToggle SpecialPowerTemplate = SpecialAbilityToggleMountedFOFE MountedTemplate = MyWitchKingOnFellBeast SynchronizeTimerOnSpecialPower = SpecialAbilityCurseEnemy SpecialAbilityScreech UnpackTime = 0;2000 PreparationTime = 0 PackTime = 0 OpacityTarget = .0 AwardXPForTriggering = 0 IgnoreFacingCheck = Yes End End
ChildObject MyWKOnHorse MordorBlackRider //WITCHKING ON HORSE [in mordorblackrider.ini] CommandSet = MyTheNineOnHorsesCommandSet CommandPoints = 10 ;---------from horse to foot------------------------------------------------------------------------ Behavior = SpecialPowerModule ModuleTag_WKFootDismountStarter SpecialPowerTemplate = SpecialAbilityToggleMountedFOH UpdateModuleStartsAttack = Yes StartsPaused = No End Behavior = ToggleMountedSpecialAbilityUpdate ModuleTag_WKFootDismount SpecialPowerTemplate = SpecialAbilityToggleMountedFOH StartAbilityRange = 50.0 MountedTemplate = MyWitchKing SynchronizeTimerOnSpecialPower = SpecialAbilityBlackRiderMorgulBlade SpecialAbilityScreech UnpackTime = 0 PreparationTime = 1 PackTime = 0 OpacityTarget = 1 ; How see-thru to be at peak of change AwardXPForTriggering = 0 IgnoreFacingCheck = Yes End ;---------from horse to fellbeast------------------------------------------------------------------------ Behavior = SpecialPowerModule ModuleTag_WKFBMountStarter SpecialPowerTemplate = SpecialAbilityToggleMountedHFE UpdateModuleStartsAttack = Yes StartsPaused = No End Behavior = ToggleMountedSpecialAbilityUpdate ModuleTag_WKFBMount SpecialPowerTemplate = SpecialAbilityToggleMountedHFE StartAbilityRange = 50.0 MountedTemplate = MyWitchKingOnFellBeast SynchronizeTimerOnSpecialPower = SpecialAbilityBlackRiderMorgulBlade SpecialAbilityScreech UnpackTime = 0 PreparationTime = 1 PackTime = 0 OpacityTarget = 1 AwardXPForTriggering = 0 IgnoreFacingCheck = Yes End End
ChildObject MyWitchKingOnFellBeast MordorFellBeastInterface //WITCHKING ON FELLBEAST [in fellbeast.ini] CommandSet = MyTheNineOnFellBeastsCommandSet CommandPoints = 20 ;---------from fellbeast to foot------------------------------------------------------------------------ Behavior = SpecialPowerModule ModuleTag_DismountStarter SpecialPowerTemplate = SpecialAbilityToggleMountedFromFellBeastFOFE UpdateModuleStartsAttack = Yes StartsPaused = No InitiateSound = FellBeastVoiceMove End Behavior = ToggleMountedSpecialAbilityUpdate ModuleTag_Dismount SpecialPowerTemplate = SpecialAbilityToggleMountedFromFellBeastFOFE StartAbilityRange = 50.0 MountedTemplate = MyWitchKing SynchronizeTimerOnSpecialPower = SpecialAbilityCurseEnemy SpecialAbilityScreech UnpackTime = 0 PreparationTime = 1 PackTime = 0 OpacityTarget = 1 AwardXPForTriggering = 0 IgnoreFacingCheck = Yes End ;---------from fellbeast to horse------------------------------------------------------------------------ Behavior = SpecialPowerModule ModuleTag_DismountHorseStarter SpecialPowerTemplate = SpecialAbilityToggleMountedFromFellBeastHFE UpdateModuleStartsAttack = Yes StartsPaused = No InitiateSound = FellBeastVoiceMove End Behavior = ToggleMountedSpecialAbilityUpdate ModuleTag_DismountHorse SpecialPowerTemplate = SpecialAbilityToggleMountedFromFellBeastHFE StartAbilityRange = 50.0 MountedTemplate = MyWKOnHorse SynchronizeTimerOnSpecialPower = SpecialAbilityCurseEnemy SpecialAbilityScreech UnpackTime = 0 PreparationTime = 1 PackTime = 0 OpacityTarget = 1 AwardXPForTriggering = 0 IgnoreFacingCheck = Yes End Behavior = ModelConditionUpgrade ModuleTag_MakeUsAWitchKing TriggeredBy = Upgrade_MyFaction AddConditionFlags = RIDER2 Permanent = Yes End End
... the specialpowers in specialpower.ini ...
SpecialPower SpecialAbilityToggleMountedFOH Enum = SPECIAL_TOGGLE_MOUNTED ReloadTime = 2000 End SpecialPower SpecialAbilityToggleMountedFOFE Enum = SPECIAL_TOGGLE_MOUNTED ReloadTime = 2000 End SpecialPower SpecialAbilityToggleMountedHFE Enum = SPECIAL_TOGGLE_MOUNTED ReloadTime = 2000 ;;,;; 1000 End SpecialPower SpecialAbilityToggleMountedFromFellBeastFOFE Enum = SPECIAL_TOGGLE_MOUNTED ReloadTime = 1000 Flags = NO_FORBIDDEN_OBJECTS ForbiddenObjectFilter = ANY +STRUCTURE ForbiddenObjectRange = 5 End SpecialPower SpecialAbilityToggleMountedFromFellBeastHFE Enum = SPECIAL_TOGGLE_MOUNTED ReloadTime = 1000 Flags = NO_FORBIDDEN_OBJECTS ForbiddenObjectFilter = ANY +STRUCTURE ForbiddenObjectRange = 5 End
... buttons in commandbutton.ini ...
CommandButton Command_MyMountFOH //from foot on horse Command = SPECIAL_POWER SpecialPower = SpecialAbilityToggleMountedFOH TextLabel = CONTROLBAR:TheodenMount Options = TOGGLE_IMAGE_ON_WEAPONSET ON_GROUND_ONLY OK_FOR_MULTI_EXECUTE FlagsUsedForToggle = MOUNTED ButtonImage = HIBlackRiderMount HIBlackRiderMount ButtonBorderType = ACTION DescriptLabel = CONTROLBAR:GenericMountTooltip InPalantir = Yes UnitSpecificSound = HorseWhinnyForMountButton UnmountButtonFoley End CommandButton Command_MyMountFOFE //from foot to fellbeast Command = SPECIAL_POWER SpecialPower = SpecialAbilityToggleMountedFOFE TextLabel = CONTROLBAR:TheodenMount Options = TOGGLE_IMAGE_ON_WEAPONSET ON_GROUND_ONLY FlagsUsedForToggle = MOUNTED ButtonImage = HSWitchKingMountDismount HSWitchKingMountDismount ButtonBorderType = ACTION DescriptLabel = CONTROLBAR:GenericMountTooltip InPalantir = Yes End CommandButton Command_MyMountHFE //from horse to fellbeast Command = SPECIAL_POWER SpecialPower = SpecialAbilityToggleMountedHFE TextLabel = CONTROLBAR:TheodenMount Options = TOGGLE_IMAGE_ON_WEAPONSET ON_GROUND_ONLY FlagsUsedForToggle = MOUNTED ButtonImage = HSWitchKingMountDismount HSWitchKingMountDismount ButtonBorderType = ACTION DescriptLabel = CONTROLBAR:GenericMountTooltip InPalantir = Yes End CommandButton Command_MyDismountFOH //from horse to foot Command = SPECIAL_POWER SpecialPower = SpecialAbilityToggleMountedFOH TextLabel = CONTROLBAR:TheodenMount Options = TOGGLE_IMAGE_ON_WEAPONSET ON_GROUND_ONLY OK_FOR_MULTI_EXECUTE FlagsUsedForToggle = MOUNTED ButtonImage = HIBlackRiderMount HIBlackRiderMount ButtonBorderType = ACTION CursorName = EvilAbilityObj InvalidCursorName = GenericInvalid DescriptLabel = CONTROLBAR:FellBeastMountTooltip InPalantir = Yes End CommandButton Command_MyDismountFOFE // from fellbeast to foot Command = SPECIAL_POWER SpecialPower = SpecialAbilityToggleMountedFromFellBeastFOFE TextLabel = CONTROLBAR:TheodenMount Options = NEED_TARGET_POS TOGGLE_IMAGE_ON_WEAPONSET ON_GROUND_ONLY FlagsUsedForToggle = MOUNTED ButtonImage = HSWitchKingMountDismount HSWitchKingMountDismount ButtonBorderType = ACTION CursorName = EvilAbilityObj InvalidCursorName = GenericInvalid DescriptLabel = CONTROLBAR:FellBeastMountTooltip InPalantir = Yes End CommandButton Command_MyDismountHFE // from fellbeast to horse Command = SPECIAL_POWER SpecialPower = SpecialAbilityToggleMountedFromFellBeastHFE TextLabel = CONTROLBAR:TheodenMount Options = NEED_TARGET_POS TOGGLE_IMAGE_ON_WEAPONSET ON_GROUND_ONLY FlagsUsedForToggle = MOUNTED ButtonImage = HSWitchKingMountDismount HSWitchKingMountDismount ButtonBorderType = ACTION CursorName = EvilAbilityObj InvalidCursorName = GenericInvalid DescriptLabel = CONTROLBAR:FellBeastMountTooltip InPalantir = Yes End
... and the commandset in commandset.ini:
CommandSet MyTheNineCommandSet //objects on foot 1 = Command_ToggleStance 2 = Command_MyMountFOH 3 = Command_MyMountFOFE 4 = Command_WitchKingDreadVisage 5 = Command_SpecialAbilityScreechWitchKing 6 = Command_HourOfTheWitchKing 12 = Command_CaptureBuilding 13 = Command_AttackMove 14 = Command_Stop 16 = Command_SetStanceBattle 17 = Command_SetStanceAggressive 18 = Command_SetStanceHoldGround End CommandSet MyTheNineOnHorsesCommandSet //object on horse 1 = Command_ToggleStance 2 = Command_MyDismountFOH 3 = Command_MyMountHFE 4 = Command_WitchKingDreadVisage 5 = Command_SpecialAbilityScreechWitchKing 6 = Command_HourOfTheWitchKing 12 = Command_CaptureBuilding 13 = Command_AttackMove 14 = Command_Stop 16 = Command_SetStanceBattle 17 = Command_SetStanceAggressive 18 = Command_SetStanceHoldGround End CommandSet MyTheNineOnFellBeastsCommandSet //object on fellbeast 1 = Command_ToggleStance 2 = Command_MyDismountFOFE 3 = Command_MyDismountHFE 4 = Command_WitchKingDreadVisage 5 = Command_SpecialAbilityScreechWitchKing 6 = Command_HourOfTheWitchKingFellbeast ;;,;; Command_HourOfTheWitchKing 13 = Command_AttackMove 14 = Command_Stop 16 = Command_SetStanceBattle 17 = Command_SetStanceAggressive 18 = Command_SetStanceHoldGround End
For the moment I didn't add other buttons, I'm looking at the mount/dismount buttons. The single objects works well, both Nazgul and WitchKing can change the aspect:
- FOOT -> HORSE
- FOOT -> FELLBEAST
- HORSE -> FELLBEAST
- HORSE -> FOOT
- FELLBEAST -> FOOT
- FELLBEAST -> HORSE
The WitchKing on horse has the same aspect of a Nazgul on horse (I'd like to add it his crown, but I'm not able at the moment =( the Angmar WitchKing is busy to be another hero of my faction, so I can't use it =) ). The point is: I wanna create a horde (I'd like that my horde has the same aspect and movements of the mordorblackrider horde). WitchKing must works like the banner carrier unity of the horde, when a Nazgul dies, after a while it's created from the WitchKing. The horde must have the possibility to go on foot, on horse and on fellbeasts (the last case maybe a little chaotic, but I wanna try, hoping in a great result =) ). Can someone help me? I read some tutorials, but the results are disasters =(