• 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.

[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