HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Switching between attack 1 and 2?

08-13-2004, 12:48 AM#1
wwsage
Is there anyway to make a hero diable attack 1 and enable attack 2, and vise versa with triggers, or do you need abilities?
08-13-2004, 01:22 AM#2
Aznwhore
well, if you're talking about switching between melee and ranged attacks, you can always modify the attack min range

if not, iono
08-13-2004, 01:52 AM#3
wwsage
Nah I want the unit to have his normal everyday attack but when he uses a spell he can't attack at all but can still move and stuff, but reverts back to attack 1 when the spell ended. I originally planned to use attack 2 during that spell but seeing as I can't I need an alternative >_>
08-13-2004, 02:09 AM#4
Arksword(sv)
Ah...I hate to give away this fantastic secret of mine that I've been using for awhile now to disable attacks easily (mainly for maps that hafta do with running out of ammo (mana)), but I guess I'll share it with you. Make a new ability based off of the cargohold for the Orc Burrow. Then a trigger;
Event-Unit begins casting an ability
Condition-Casting ability equal to (whatever)
Action-Set (Variable) = Triggering Unit
Add Ability (The Orc Burrow ability) to (Variable)
Wait (Duration of the spell you made)
Remove Ability (Orc Burrow Ability) from (Variable)

*What the Orc Burrow ability does is removes a unit's attack until a certain unit is placed in it. Thing is, since this unit is not gaining the ability to Load, then even if it finds the correct unit to regain it's attack, it can't load it ;) . Hope this helps you, cuz I'm killin myself for sharing my secret, unless people already know about it.
08-13-2004, 06:05 AM#5
Pyrus
The point of a forum is for sharing information and knowledge. If you give to the community, the community will give back to you ;)
08-13-2004, 07:08 AM#6
Anitarf
If the ability is dispellable, then an alternative to adding the orc burrow ability (which is a great solution otherwise, but you would need additional triggers here to remove the ability if the spell gets removed prematurely) is using a drunken haze based spell on the hero which is set to prevent attacks (drunken haze has a checkbox for that; as do silence and cloud). That way, the buff gets dispelled together with the rest of the spell.
08-13-2004, 04:53 PM#7
wwsage
thanks, to give the burrow ability is easy since the spell targets yourself, it's basically a sneaking ability where you become perma-invis but your speed is reduced to 100 and you can't attack.