HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Aura Effect, trigger solution not working.

11-04-2004, 08:46 PM#1
nctltsf
Hello,

I'm trying to use the effect Silence as the caster art (technically "Target") for an aura. This did not work. I figured it is impossible to do without using triggers as I have exhausted all means of doing it via the object editor. Here is what I have come up; it isn't working. The spell is to be utilized by multiple units so tracking the unt individually will not work.

Events
Time - Every 1.50 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Picked unit) has buff Magnesium Lights) Equal to True)) and do (Actions)
Loop - Actions
Set Pickedunit = (Position of (Picked unit))
Special Effect - Create a special effect at Pickedunit using Abilities\Spells\Other\Silence\SilenceAreaBirth.mdl

I tried an integar loop also, no luck.

Test
Events
Time - Every 1.50 seconds of game time
Conditions
Actions
Special Effect - Create a special effect at Pickedunit using Abilities\Spells\Other\Silence\SilenceAreaBirth.mdl

Thanks for your time.
11-05-2004, 11:33 AM#2
AntJAB
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Picked unit) has buff Magnesium Lights) Equal to True)) and do (Actions)

Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff Magnesium Lights) Equal to True)) and do (Actions)
11-05-2004, 07:48 PM#3
nctltsf
Quote:
Originally Posted by AntJAB
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Picked unit) has buff Magnesium Lights) Equal to True)) and do (Actions)

Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff Magnesium Lights) Equal to True)) and do (Actions)

No luck, you're not very specific on what to do, but I have tried several variations of your suggestion with no luck.
11-06-2004, 05:36 AM#4
cacophony
What attachment point do you have for the special effect? It's possible that you do not have the one that corresponds with the usual position of the Silence buff or the string text is wrong.
11-06-2004, 02:15 PM#5
nctltsf
Quote:
Originally Posted by cacophony
What attachment point do you have for the special effect? It's possible that you do not have the one that corresponds with the usual position of the Silence buff or the string text is wrong.

I've now tried changing attachment points for the ability itself which is an item ability. I am not trying to get the Silence Buff (the little question mark like thing) I'm trying to have the initial special effect you see when you cast silence on units pulse on the unit much like the aura.

Thank you for your time,
11-06-2004, 02:30 PM#6
Guest
its just an idea but what if u do something like when a units gets in 250.00 range of (the dude with the aura) then do something like make matching (or picked i dunno) unit unable to cast spells? just a thought i aint a wizz with triggers
11-06-2004, 07:47 PM#7
nctltsf
Quote:
Originally Posted by weeniedog
its just an idea but what if u do something like when a units gets in 250.00 range of (the dude with the aura) then do something like make matching (or picked i dunno) unit unable to cast spells? just a thought i aint a wizz with triggers

You're missing the purpose of this. All I want is a pulsating effect of the silence flash that you see when you cast it. The aura is only supposed to effect the caster. I figured an aura would be the easiest way to show the pulsating effect, but it does not work. I don't understand why my triggers don't work either, help would be appreciated.
11-08-2004, 02:23 PM#8
AntJAB
Quote:
Originally Posted by nctltsf
No luck, you're not very specific on what to do, but I have tried several variations of your suggestion with no luck.

Rofl, not very specific? I pointed out an error you had, in bold text I might add. Observe below.

Your line:
"Unit Group - Pick every unit in (Units in (Playable map area) matching (((Picked unit) has buff Magnesium Lights) Equal to True)) and do (Actions)"

My suggestion:
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff Magnesium Lights) Equal to True)) and do (Actions)

What you told the map to do was to pick every unit that was already picked and had the buff. What you want it to do is pick every unit that matches the condition of having the buff.

I was unaware that I had to spell this out for you. This may not solve your problem, it was simply something I noticed from a quick glance through your trigger.

Sorry for not responding sooner, nor do I have the time to examine the rest of your trigger. Hopefully this will help you expedite your efforts to trouble-shoot your problem.
11-08-2004, 05:46 PM#9
TGhost
Quote:
Originally Posted by AntJAB
Rofl, not very specific? I pointed out an error you had, in bold text I might add. Observe below.

Your line:
"Unit Group - Pick every unit in (Units in (Playable map area) matching (((Picked unit) has buff Magnesium Lights) Equal to True)) and do (Actions)"

My suggestion:
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff Magnesium Lights) Equal to True)) and do (Actions)

What you told the map to do was to pick every unit that was already picked and had the buff. What you want it to do is pick every unit that matches the condition of having the buff.

I was unaware that I had to spell this out for you. This may not solve your problem, it was simply something I noticed from a quick glance through your trigger.

Sorry for not responding sooner, nor do I have the time to examine the rest of your trigger. Hopefully this will help you expedite your efforts to trouble-shoot your problem.

im actually not sure wich one of the lines wich would work. hmmmm
the original line(not the suggetstion). Tell world editor to pick every unit,but you tell it to pick all picked units having the buff? i dont think that will work so i think that the suggestion would be a good idea. Try it
11-08-2004, 07:58 PM#10
Guest
You have to use Matching Unit (JASS: GetFilterUnit()) as opposed to Picked Unit (JASS: GetEnumUnit()) in conditions.

You must modify your trigger as AntJAB suggested or your condition will never return true (because Picked Unit is invalid in conditions) and therefore your script will never run.

Also, you might want to use Special Effect - Create Effect On Unit instead, and your trigger leaks special effects, you need to destroy them. You will probably need to convert it to JASS to get it working right without any leaks.