• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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