[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III Modding > WarCraft III Tutorials > General Mapping Tutorials


General Mapping Tutorials This board contains tutorials that provide generic mapping information.
Read the Rules before posting.

Closed Thread
 
Thread Tools
Old 11-29-2009, 05:56 PM   #1 (permalink)
Registered User Cobbot
User
 
Cobbot's Avatar
 
Join Date: Mar 2008
Posts: 35
Cobbot has little to show at this moment (10)Cobbot has little to show at this moment (10)
Information Using Spells As Basic Attacks

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


Note
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

Sound - Advanced
If you want to make your attack spell better try adding something like Metal Medium Bash to the sound effects.
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.
Extra
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.
Attached Thumbnails
ticks.jpg   attackicon.jpg  

Last edited by PurgeandFire; 04-29-2010 at 09:04 PM. Reason: Fixed some things, added images.
Cobbot is offline  
Old 12-03-2009, 07:09 PM   #2 (permalink)
Registered User X-OMG-X
Amira Tower Defence
 
X-OMG-X's Avatar
 
Join Date: Nov 2008
Posts: 2,248
X-OMG-X is a jewel in the rough (239)X-OMG-X is a jewel in the rough (239)X-OMG-X is a jewel in the rough (239)
Nice tutorial thougth there is a few things to mentod.

1) Instead of setting all damage to zero, just disable their attacks.
2) This abillity will now give all units the same damage and attackspeed. That means you will have to make one abillity for each unit in the map.
3) Set the hotkey to A instead of Q. A is the hotkey of the originally attack.
4) I would suggest you to set the attackrange to 75, as many units (espicially heroes) have a big collision size that makes them unable to use their attack -.-'

Other than that, nice tutorial. Not a very new idea, but you described it well. Good job.
__________________
X-OMG-X is offline  
Old 12-04-2009, 06:13 PM   #3 (permalink)
Registered User Cobbot
User
 
Cobbot's Avatar
 
Join Date: Mar 2008
Posts: 35
Cobbot has little to show at this moment (10)Cobbot has little to show at this moment (10)
Thanks for the feedback. Good advise too, will change that now.
__________________
Cobbot is offline  
Old 12-07-2009, 11:07 AM   #4 (permalink)
Registered User MultiGod
Doomsday Is Coming!
 
MultiGod's Avatar
 
Join Date: Jan 2009
Posts: 751
MultiGod has disabled reputation
In a real game, units attack hostiles automatically. Tell us how to make the "Attack" spell automatic.

What's the usage of changing the normal attack to a spell really?
__________________


And please, disabled REP doesn't mean no REP
MultiGod is offline  
Old 12-16-2009, 04:35 PM   #5 (permalink)
Registered User Cobbot
User
 
Cobbot's Avatar
 
Join Date: Mar 2008
Posts: 35
Cobbot has little to show at this moment (10)Cobbot has little to show at this moment (10)
Quote:
Originally Posted by MultiGod View Post
In a real game, units attack hostiles automatically. Tell us how to make the "Attack" spell automatic.

What's the usage of changing the normal attack to a spell really?

The Idea is that you use it for arena style maps, where there is only a few non player hostiles. The player would have to use their "Attack Spell" whereas the NPC would be using a default attack.
__________________
Cobbot is offline  
Old 04-29-2010, 09:07 PM   #6 (permalink)
Forum Moderator PurgeandFire
ʕ•͡ᴥ•ʔ
 
PurgeandFire's Avatar
Resource & Tutorial Moderator
 
Join Date: Nov 2006
Posts: 3,536
PurgeandFire has much of which to be proud (1096)PurgeandFire has much of which to be proud (1096)PurgeandFire has much of which to be proud (1096)PurgeandFire has much of which to be proud (1096)PurgeandFire has much of which to be proud (1096)
Great tutorial, I've updated it a bit. This is a cool technique that I'm sure people would love to use.

I fixed some things, bolded some stuff, and I added two images to show the values, just to make it a bit more interesting. It is explained very well though, good job. =) Approved.
PurgeandFire is online now  
Old 06-09-2010, 02:44 AM   #7 (permalink)
Registered User Army_Strong
Helper, Designer, Liver
 
Army_Strong's Avatar
 
Join Date: Jun 2010
Posts: 59
Army_Strong has little to show at this moment (7)
Do you have to keep selecting the enemy over and over with the spell to attack or does it attack by itself (like the defualt attack of a unit)? *nevermind found it out by myself lol*

Other than that this could be useful for games where heros/units change attacks according to the items(like attachable wepons) they have, of course players would have to make tweaks of there own through jass or gui to change some attack aspects (like targets, automatic attacking, ect..) but could be a useful new technique that can skip over some of the triggers required to do what i mentioned before.
Army_Strong is offline  
Closed Thread

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Same target {clone that attacks and casts spells on the same target as the summoner} greasontim World Editor Help Zone 14 03-27-2009 03:20 PM
Spells/Attacks at Position of Cursor PimpMunkeh Triggers & Scripts 5 11-17-2008 11:52 AM
Random function on basic spells cacbo Warcraft Editing Tools 0 10-23-2008 05:42 PM
[Trigger] Delaying actions for attacks and missile spells MarcusBrody Triggers & Scripts 2 10-11-2008 07:22 PM
Help On Daelins's Basic Of Trigger Enchancing Spells WraithSeeker Triggers & Scripts 5 02-27-2008 05:21 AM

All times are GMT. The time now is 05:12 AM.





Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle