HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Attacks

02-03-2004, 10:52 PM#1
Eriond
About attacks... how would I go about disbaling/enabling them through triggers? No, upgrades don't work... I've tried it, they can't be unlearned... Is there any way to do this?

EDIT: Ooh never mind. I just realized that if I used JASS I can do some stuff I wouldn't otherwise normaly be able to do.... close/delete this please.

EDIT2: CANCEL THAT. It seems that though I can use JASS to remove the attack ability, I can't seem to add it back again.... does anyone know how I would do this?
02-03-2004, 11:49 PM#2
Darimus
I was actually trying to do the same thing, and gave up... I tried using the orb abilties that enable attackes and set enabled attack to 0, and I also tried 3... neither disabled anything... when you remove Attack you cannot get it back... if there was an ability that disabled attack indexes, it would be useful, because you could use an orb ability to enable it...
02-04-2004, 12:35 AM#3
ph33rb0
Would replacing the unit be acceptable? That gives it back its attack ability.
02-04-2004, 12:51 AM#4
Eriond
Replacing the unit huh?

I suppose that could work..
Very WELL IN FACT! THANK YOU!

No wait, no... That won't work... It'd have to make the heo relearn all it's abilities over again...
02-04-2004, 01:08 AM#5
Xinlitik
Drunken Haze or Silence. :)

They can be dispelled, but oh well. Just check the field "attacks" and make them do nothing else.
02-04-2004, 01:11 AM#6
Eriond
Hmmm Silence could work......

If I removed the silence buff via trigger, would that also remove the effect?
02-04-2004, 01:21 AM#7
ph33rb0
Yep, it would.

I suppose the only thing you could do is when your hero is ordered to attack another unit, order them to stop.

EDIT:
Well, I suppose you could make them relearn all their abilities. It'd require extensive arrays though hold what abilities the hero knows. It'd definitely be a lot of work.
02-04-2004, 02:29 AM#8
zotax
You could replace the hero then relearn its skills via triggers
02-04-2004, 02:33 AM#9
ph33rb0
Yeah, that's what I said, but you'd have to know what skills the hero has first. You'd need to store the skills in arrays and that would kind of be time consuming. But then again, that's map making.
02-04-2004, 02:41 AM#10
Eriond
Yeah, i realized that, but as you say, it would take too long, and my variables list is already clogged up enough. This way is the best.. took me a while to get it right, but it's working fine now.. Thanks all.
02-04-2004, 07:21 AM#11
Newhydra
Go look at the warclub ability. The only downside is you need to target a tree doodad. (trigger to temporarily create/warclub the tree along with an invisible tree?)

Another idea would be to use root(the thing ancients have).

If neither of those do what you want, then I'm outta suggestions...
02-04-2004, 12:55 PM#12
Saik
You won't need to relearn anything as long as you set the units Hero Ability fields to be identical. The unit abilities, stats, etc. can be changed with no problem. Just make sure both units have the ability for switching.
02-04-2004, 02:20 PM#13
Eriond
oh well, it doesn't matter now, the silence system is working..
02-04-2004, 02:23 PM#14
Shark
for "relearning", check out the Orc07 (i guess) from the original WC3 campaign, where the orcs turn Chaos...if u look a bit closer, when grom drinks, i think he just switches the animation, but there's also a failsafe to relearn all of its skills....its easy...