| 01-27-2004, 09:14 PM | #1 |
I have a trigger which creates a special effect at the point where an ability is being cast. It creates it once a second, eight times. Similar to a spell like blizzard or rain of fire... Problem is, if another unit casts an ability, it stops creating the effect. Does anyone recognise this and know a solution? |
| 01-27-2004, 09:41 PM | #2 |
create a condition to avoid interruptions Ability being casted is equal to Blizzard Action: Create Special effect... blah blah... that way the effect will only work for that spell... |
| 01-27-2004, 10:13 PM | #3 |
Yea ive done that of course... This is basicallly what my trigger looks like if it help.... Event Unit - A unit begins casting an ability Condition Ability being cast Equal to ( My spell ) Actions Unit Group - ( my unit groups )Do Animation - Play units attack - 1 animation Create special effect at target point of ability being cast wait 1 second Unit Group - ( my unit groups )Do Animation - Play units attack - 1 animation Create special effect at target point of ability being cast wait 1 second Unit Group - ( my unit groups )Do Animation - Play units attack - 1 animation Create special effect at target point of ability being cast wait 1 second and so on..... however if anyone casts anything it stops making the special effect T_T In a seperate trigger I have something which creates and kills units in time with the special effects, to create AOE damage in the area the spell was cast. It would be much easier to just use blizzard and edit the damage but I cant get rid of the model, and the special effect would probably still not work. Im just about ready to give up :nono: :nono: :nono: :nono: |
| 01-27-2004, 10:25 PM | #4 |
try this Event Unit - A unit begins casting an ability Unit - A unit Is issued an order targeting an object Condition Ability being cast Equal to ( My spell ) Actions Animation - Play triggering unit attack - 1 animation Special Effect - Create a special effect at (Target point of issued order) using Xeffect wait 0.1 second Destroy last created special effect wait 1 second Animation - Play triggering unit attack - 1 animation Special Effect - Create a special effect at (Target point of issued order) using Xeffect wait 0.1 second Destroy last created special effect wait 1 second (this should work fine if ur ability its targeting an object like stromBolt or Mana burn) |
| 01-28-2004, 12:02 PM | #5 |
Unfortunately it is not a target, it is an area of effect, such as dispel magic. Which is what im using as a dummy, for the area marker when you cast the spell. |
| 01-28-2004, 12:09 PM | #6 |
What you should is to create a 'point' variable for use with that specific spell. At the beginning of the trigger, do Set myPointVariable = (Target point of ability being cast) and then use myPointVariable instead of (Target point of ability being cast) for the rest of the trigger. What is happening is that when other spells are cast, (Target point of ability being cast) is changed, causing the effects to not work. By using a variable, you make sure that the target is the same for the whole effect. (Of course, if *another* unit would use the *same* spell, you would still run into problems. If this is an issue, you'll have to do a bit more triggering.) |
