HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Invisibility Aura?

04-22-2004, 10:24 AM#1
MaxDamage
Well I think I've seen someone post here once, it was a spell like Roar, but it turned all the units around it invisible..

I was wondering if It'd be possible to have that, but as an aura? So it's permanent unless the unit attacks.. And it'd be cool to have the unit with the aura be invisible as well.. since I'm doing this as a Castle D wave.. would be silly to have the commander get slaughtered.

So.. any help would be nice.. but please be detailed with the triggering.. as I am a beginner. :D

Thanks!
04-22-2004, 11:18 AM#2
FinalTyrant
Of course its possible you just gotta know some triggers and how to trigger spells hehe... although i dunno so dont ask me...
04-22-2004, 11:33 AM#3
MaxDamage
Well then.. thank you for spamming my wonderful thread :D
04-22-2004, 12:33 PM#4
Pheonix-IV
youd have to have a trigger that checked the area around the commander every .5 seconds and picked every unit in it, then spawned a unit that had the invisibility ability above the picked unit and cast it on the picked unit. Would be kinda hard to work properly, why not just give every unit in that wave the perm invisibility ability?
04-22-2004, 12:49 PM#5
MaxDamage
Hrmm.. good idea.. Forgot I could just make a dud aura that doesnt do anything.. and have the units perm invis. Thank ye!
04-22-2004, 12:53 PM#6
Taylor
I think the easiest way would be to have a Unit Group and a trigger that ran every 2 seconds or so (even the hard-coded auras have some delay until activation). The Unit Group would hold all the units currently under the effect of the aura so you didn't do pointless actions; this isn't really a issue here, but great for auras that would require a unit to be spawned and it's nice to be consistant and not provide half-arsed advice.

You'll need to do two things each time the trigger executes:
Pick every unit who has the aura who isn't in the unit group and give them the "permanent invisibility" ability, then add them to the Unit Group.

Then check every unit within the Unit Group who is no longer under the auras effect, remove the ability from them and remove them from the unit group.

You should probably do the debuff function first so, in the case of buff auras, the unit gets the buff added straight away rather than after 2 triggers in the event of Dispel (again, this doesn't work like that, but for future reference).

The only big problem you may encounter is units like the Far Seers' Wolves' who have the Permanent Invisibility ability already.
04-22-2004, 03:08 PM#7
Kamux
I have exactly the map you meant ( I think). Here it is:
04-22-2004, 07:54 PM#8
linkmaster23
*cough* Unit - Has buff (boolean) COUGH.
04-23-2004, 03:34 PM#9
Vexorian
Quote:
Originally Posted by linkmaster23
*cough* Unit - Has buff (boolean) COUGH.
But that map was done before 1.13
04-23-2004, 06:54 PM#10
Mr.Safety
Linkmaster has it right, although he didn't really help much. It's actually a pretty simple trigger. Here's what you do.

1) Create a custom aura based off whatever aura you want.
2) Set the just all the data to 0 except for the Area of Effect.
3) Create a custom buff for your new ability.
4) Make a trigger with a periodic event that fires every 1 second.
5) Pick every unit owned by the attacking player in your Castle Defense and do:
if picked unit has (your custom buff) then
unit - add (permanant invisiblity) to picked unit
else
unit - remove (permanant invisibility) from picked unit

That's a very generic explanation but I hope it helps give you an idea. This is probably one of the simplest ways to do it aswell. Good luck.