HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Possible to change a unit's attack type?

07-08-2004, 03:24 PM#1
Ellenduris
I've gone through alot to try and get this done...

I need to change a unit's attack type, for extra information, it has to be switchable back and forth, the unit is not a hero and I CAN NOT REPLACE THE UNIT WITH ANOTHER UNIT TYPE!!

I've tried using upgrades to disable a unit's attack 1 and enable attack 2, however this only works once.

I've tried using the orb abilities but that enables BOTH which is what I don't want.

So if anyone knows how to do this I'd appreciate it... I'm willing to use JASS if I have to or just about anything else to get this done.

http://www.battle.net/forums/war3/th...t=6#post138569
and
http://www.battle.net/forums/war3/th...t=2#post138548
07-08-2004, 05:13 PM#2
th15
Well, you could jsut use a morph spell, but if you insist...

Set attacks enabled to NONE.

Modify an orb spell to enable attack 1 and give no other bonus.

Give the hero this orb ability when the hero is created.

Use a dummy spell to switch.

When dummy spell is activated, replace the 1st orb ability with another orb ability that enables attack 2.
07-08-2004, 06:39 PM#3
Ellenduris
Quote:
Originally Posted by th15
Well, you could jsut use a morph spell, but if you insist...

Set attacks enabled to NONE.

Modify an orb spell to enable attack 1 and give no other bonus.

Give the hero this orb ability when the hero is created.

Use a dummy spell to switch.

When dummy spell is activated, replace the 1st orb ability with another orb ability that enables attack 2.


Damn I never thought of that. Thanks.

Edit: What ability should I use, when I use orb abilities when ever the unit attacks ground the game crashes.
07-08-2004, 11:40 PM#4
th15
Umm use the new lightning orb skill. Try leaving the casted spell as it is but change the chance to cast to 0%.

Make sure both your attack 1 and attack 2 are set up properly.