- Joined
- Mar 15, 2008
- Messages
- 35
This tutorial will show you how to use spells to replace the basic attack ability. This system can be a useful way to make an arena map more interesting.
Difficulty - Moderate
Step 1: The Ability
Data & Stats.
Open up the object editor and go to abilities. Make a new one using the template "Finger of Death (Archimonde)" Of course, call it Attack
Make the Hotkey preferably "A" (since that is the default hotkey of "Attack"), but you can choose whatever you'd like.
We now need to make sure that any unit can use it. Can be used by heroes = NO.
Now we need to make it a melee attack so change the Cast Range to 75.
Now change the damage to whatever you want a basic attack to be. I use 100.
It needs to be a quick attack or else the combat will get boring. Make the cooldown 1.00 seconds.
Now for a very important part. Targets
As this is a melee attack untick Air. We still want to be able to attack gates and crates so tick Debris. Tick Organic and Mechanical as some units come under both of these. Tick Hero or you won't be able to kill each other. If you want to be able to attack buildings thats up to you.
Mana cost is already at 0 so we don't need to bother with that.
Art.
Add attack to the animation names or the unit won't animate as it attacks.
Change the Button Positions to X=3 and Y=0 This is where attack is normaly.
Now go down to Art - Icon - Normal tick the box Custom and type
ReplaceableTextures\CommandButtons\BTNAttack.blp So that it looks the same as normal attack.
Now delete the Lightning effect.
Go down to Art - Target and delete that too.
The Unit
Make your unit. It doesn't matter whether it is a hero or not.
Open up Abilities - Normal and add our Attack Ability. There are 2 so change the filter to custom.
Go down to the unit's Combat stats. Search for the line Combat - Attack 1 - Show UI. Untick it. If you don't the generic attack button will override our new attack spell.
Disable the attack. Otherwise the generic attack will still be there.
Now when you go into the game you will see our Attack spell is where the old attack used to be. Use your hotkey, instead of clicking the spell, and you'll be king of your arena in no time.
Difficulty - Moderate
There are 2 ways of doing this. You can either use a short range AOE attack to make it alot simpler for the player. Or you can use a targeting spell. I prefer the Targeting Spell, to make it more interesting.
Step 1: The Ability
Data & Stats.
Open up the object editor and go to abilities. Make a new one using the template "Finger of Death (Archimonde)" Of course, call it Attack
If you want to make your attack spell better try adding something like Metal Medium Bash to the sound effects.
We now need to make sure that any unit can use it. Can be used by heroes = NO.
Now we need to make it a melee attack so change the Cast Range to 75.
Now change the damage to whatever you want a basic attack to be. I use 100.
It needs to be a quick attack or else the combat will get boring. Make the cooldown 1.00 seconds.
Now for a very important part. Targets
As this is a melee attack untick Air. We still want to be able to attack gates and crates so tick Debris. Tick Organic and Mechanical as some units come under both of these. Tick Hero or you won't be able to kill each other. If you want to be able to attack buildings thats up to you.
Mana cost is already at 0 so we don't need to bother with that.
Art.
Add attack to the animation names or the unit won't animate as it attacks.
Change the Button Positions to X=3 and Y=0 This is where attack is normaly.
Now go down to Art - Icon - Normal tick the box Custom and type
ReplaceableTextures\CommandButtons\BTNAttack.blp So that it looks the same as normal attack.
Now delete the Lightning effect.
Go down to Art - Target and delete that too.
If you want to add a comedic/ott effect tick custon and type Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl This will make it so when you attack someone with our new attack spell blood will burst out of them. You will need to add an attachment point called chest
The Unit
Make your unit. It doesn't matter whether it is a hero or not.
Open up Abilities - Normal and add our Attack Ability. There are 2 so change the filter to custom.
Go down to the unit's Combat stats. Search for the line Combat - Attack 1 - Show UI. Untick it. If you don't the generic attack button will override our new attack spell.
Disable the attack. Otherwise the generic attack will still be there.
Now when you go into the game you will see our Attack spell is where the old attack used to be. Use your hotkey, instead of clicking the spell, and you'll be king of your arena in no time.
Attachments
Last edited by a moderator: