• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Special effect based on unit name

Status
Not open for further replies.
Level 20
Joined
Jul 14, 2011
Messages
3,213
Hi!

I have several tower types, each one with 7 levels, and I'm creating special effects when they begin upgrading. The thing is I don't want to make comparisons based on Unit-Type or in Some Ability Level (Since they begin upgrading from level 2, so Tower 1 would loose it's special effect).

That's where I came with the idea of making a name comparison, since they're called "Dark Elemental 1, 2 3, 4, 5" And just reading "Dark" in the name should be enough to create the Dark Towers special effect.

I would really appreciate if someone could help me with this (I can handle GUI and JASS)
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Thanks!

Another question: When I create/destroy special effects they show but doesn't dissapears smootly (i'm talking about a dust effect).

Is there a way to save the special effects into a hashtable or array and destroy them later after they've really dissapeared?


  • Special Effect - Create Special Effect
  • Set SfxQ = (SfxQ + 1)
  • Set Effect[SfxQ] = Last Created SpeciaL Effect
  • Set RealEffect = (RealEffect + 1.00)
And

  • Event
    • Game - RealEffect equal to 10.00
  • Actions
    • For Each Integer A From 1 to 10 do:
      • loop
        • Special Effect - Destroy Effect[Integer A]
 
Status
Not open for further replies.
Top