Please Help Me

Status
Not open for further replies.
Level 2
Joined
Jul 9, 2015
Messages
20
thank you
but ,
I use Trigger ( example 6 huskar )
that
in way , create effect each 0.01S
number of special effect is a lot of

what should i do?
 
Well, that could get complicated....
With the storing of SFX, you need to allocate them to a list if all the effect are meant to dissipate at once after the spell ends.
If the SFX is removed as soon as it's appeared, then it's not a matter, just add destroy SFX below the creation of SFX.

Also,if you have triggers show them here.
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
Make two variables - one point-variable and one for the special effect.
Now:
  • Set temppoint = Random point in (region)
  • Special Effect - Create a special effect at temppoint using (whatever model)
  • Set special_effect = (last created special effect)
  • Custom script: call RemoveLocation(udg_temppoint)
That way, you store an effect into a variable.
Now, later, if you want to remove it, do
  • Actions
    • Special Effect - Destroy special_effect
For more than one effect, usually you do it like this to create them:
  • For each (Integer A) from 0 to 9, do (Actions)
    • Set temppoint = Random point in (region)
    • Special Effect - Create a special effect at temppoint using (whatever model)
    • Set special_effect[Integer A]= (last created special effect)
    • Custom script: call RemoveLocation(udg_temppoint)
and to destroy them;
  • For each (Integer A) from 0 to 9, do (Actions)
    • Special Effect - Destroy special_effect[Integer A]
The change here is to let the action run multiple times.
Each time the loop runs, the created effect will be stored into the special effect array using the corresponding Index number.
The same is done later when you destroy it.

Your actual script may differ from mine but it explains the usage.
 
Level 2
Joined
Jul 9, 2015
Messages
20
Maybe a map with the details that
I did not get it

Thank you

I have another question
How to i enter target of ability "ground,no unit" to variable
example:
target of 1 void
how to enter this target to variable?
 
Last edited by a moderator:
Status
Not open for further replies.
Top