HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Is this custom spell possible?

05-07-2003, 08:05 PM#1
MarSara
An aura or ability that grants all friendly units in a radius invisibility for X seconds.
05-07-2003, 08:09 PM#2
Guest
I don't know if it's possible with regular .slk editing, but I'm pretty darn sure it's possible with triggers.
05-07-2003, 08:15 PM#3
MarSara
I know it cant be done in triggers (unless there is a function that is only accessabole threw JASS, that I dont know about).
05-07-2003, 09:54 PM#4
Guest
Nope, not possible.
05-07-2003, 09:59 PM#5
Panto
Well now, it does seem to me like you could do it. If, when the spell is cast, you use triggers to create an invisible unit off the map that has the Invisibility spell, and tell her to cast invisibility on all the units within a certain distance of the unit using the ability, it should work just fine.

Granted, it seems crude, but it also seems like it'd work.
05-07-2003, 10:08 PM#6
Guest
Accually, that would work, but programming it to do that would require hella triggers, and a new spell with invisibility as a no cooldown no mana.
05-08-2003, 02:15 AM#7
Earth-Fury
if ability (aura with no effect) is used with no target, select units 5000 near casting unit and make selected unit invisible

somthing like that, im at the library, so i dunno for shure, but it is somthing around that.
05-08-2003, 03:15 AM#8
Guest
Auras are always on, so you cant detect when one is used. Youd have to check what level of spell a hero is learning, then set that to a variable, and make anyone inside like 600 of the guy is targeted invisible
05-08-2003, 07:25 AM#9
tufy
If (unit gets in range x of "hero") then (replace triggering unit with (another unit that looks the same, but has invisibility like the Shade). It's as simple as that.
05-08-2003, 08:09 AM#10
Phil_123
Quote:
Originally posted by tufy
If (unit gets in range x of "hero") then (replace triggering unit with (another unit that looks the same, but has invisibility like the Shade). It's as simple as that.
simple? LOL
think again, you will get it
05-08-2003, 09:53 PM#11
Guest
Yah, youd have to make a double of every unit.
05-08-2003, 11:55 PM#12
sheepofdoom
I was thinking about this also. What you could do is create a unit array and store each of the units in range in the array. Then replace each unit with a shade (just a shade - not a shade look alike). This way they can only move and not attack (so this works like proper invisibility) When a unit loses the invisibility replace them with the unit in the array.

The main disadvantage would be that all invisible units would be shades. You would also need to store all shades in an array so you would know which shade corresponded to each unit.

I'm not sure whether there is an invisibility ability, because if there was you could give it to all units and disable it, or hide the button, then when the spell is cast active the ability.



Sorry if these ideas don't help or repeat what other people have said, but I'm just brainstorming some ideas.

SheepOfDoom
05-09-2003, 01:48 AM#13
PhAtTiM89
If (unit gets in range x of "hero") then have a unit cast invisibility on it.
05-09-2003, 10:28 AM#14
tufy
Quote:
Originally posted by SpectreReturns
Yah, youd have to make a double of every unit.


Not necessarily. You could give this ability to every unit, but make that ability unaccessible to everyone (custom abilities in Waredit). Then, when invisibility is cast, you would activate that ability.
05-09-2003, 11:31 AM#15
Dead-Inside
Above has one single problem, it would make ALL the units invisible for the current player.