HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Silence ability from AOE to Target?

04-07-2004, 09:25 PM#1
perrry
Hi I'm new at this, hope this isn't to noob a question for this board.

I'm trying to creat a hero abilty which is the silence spell of dark ranger, except instead of AOE it is a targeted spell.

I tried reducing the area to 0 but then there was no curser. I tried converting storm bolt but there w as different data fields (like damage).

Any ideas? Where can I find more information on this?
04-07-2004, 09:48 PM#2
JJ912
You can base it off Drunken Haze. Set the aoe to 1 and have it prevent spells.
04-07-2004, 09:55 PM#3
Dalten
First, you'll need a single target spell, any spell. Storm bolt should work, remove the projectile art if possible and get rid of all stats like damage, stuntime, etc, whatever the spell has for stats that "do" something to the target. You don't want your first spell to do anything at all other then just "being there".

Then, make a gimped version of Silence, with an area effect radius of 1.

Now, make a dummy caster unit and give it the gimped silence ability, also set it's model file to " .mdl". Notice the space before the .mdl. This will give that unit no model with the ability to cast the gimped silence.

Once you have the dummy unit w/ gimped silenced, and your single target spell, yourr eady to make a simple trigger.

Event: A unit begins to cast an ability"
Condition: Ability being cast = the single target ability you made.
Actions:
Create <dummy unit w/ silence> at position of triggering unit
make last created unit explode on death(i hear this is to prevent memory leaks)
Order last created unit to <silence> target unit of ability being cast
Kill or Remove last created unit from the game.

The trigger isn't exact but it should give you a good idea of how to make it.

Good luck!
04-07-2004, 09:56 PM#4
Dalten
Or do it JJ912's way heh, i feel silly now, SILLY!
04-07-2004, 10:08 PM#5
perrry
Thanks both!
04-08-2004, 12:15 AM#6
BBDino
dont worry dalten your info should hopefully provide him help in future endevours
04-08-2004, 03:20 PM#7
Anitarf
Just a few corrections to the dalten's system:

Instead of "unit begins casting an ability" use "unit starts the effect of an ability". The diference is that, whit the second option, the unit already casts the spell, while the first thing happens when the unit begins casting and can still be interrupted before the spell casts.

Also, killing the dummy unit right after it is given an order will result in it not casting the spell. Instead, give the unit an expiration timer ("unit - add expiration timer") that will kill it in some time (like 1 second, enogh for it to cast the spell).

Another thing, don't base your "single target do-nothing" spell on storm bolt, because it will still stun the target, even if for 0 seconds, it will still interrupt channeling abilities. Use something else like frost armor or cripple or whatever.

But, as has already been noted, what you want your spell to do can be easily done without triggers using a modified drunken haze ability.