[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)
 
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.
Back
Top