• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[Solved] Simple Integer Count

Status
Not open for further replies.
This does not function.

  • Essence Start
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • ((Triggering unit) has buff Essence ) Equal to True
    • Actions
      • Set Essence_Start_Units = (Units owned by (Owner of (Triggering unit)) of type Crux)
      • Set Essence_Start_Integer = (Number of units in Essence_Start_Units)
      • Unit - Set level of Essence for (Triggering unit) to ((Level of Essence for (Triggering unit)) + Essence_Start_Integer)
      • Custom script: call DestroyGroup(udg_Essence_Start_Units)
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Is there a way to add an aura to a unit even before it has entered the game (without adding the aura skill to the unit)?

Another way would be a periodic event that picks units that don't have the buff, adds the buff and does your stuff.
 
This is what works.

  • Essence Start
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Level of Essence for (Triggering unit)) Greater than 0
    • Actions
      • Set Essence_Start_Units = (Units owned by (Owner of (Triggering unit)) of type Crux)
      • Set Essence_Start_Integer = (Number of units in Essence_Start_Units)
      • Unit - Set level of Essence for (Triggering unit) to ((Level of Essence for (Triggering unit)) + Essence_Start_Integer)
      • Custom script: call DestroyGroup(udg_Essence_Start_Units)
 
Status
Not open for further replies.
Top