I based the code of mine on the Blood Aura from the Fel Orc race. I added the code right, except I added the variable Aura_Unit1 = Unit. Not only that I want Brilliance Aura to give mana regeneration to friendly units, but I also want the aura to decrease mana regeneration from enemy unit. Any help? Here's the code:
The aura's second effect:
The aura's second effect:
-
Brilliance Aura addition
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Brilliance Aura) Equal to True
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Brilliance Aura for Aura_Unit1) Equal to 1
-
Then - Actions
- Unit - Add Mana Reduction (1) to (Picked unit)
- Unit - Remove Mana Reduction (2) from (Picked unit)
- Unit - Remove Mana Reduction (3) from (Picked unit)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Brilliance Aura for Aura_Unit1) Equal to 2
-
Then - Actions
- Unit - Remove Mana Reduction (1) from (Picked unit)
- Unit - Add Mana Reduction (2) to (Picked unit)
- Unit - Remove Mana Reduction (3) from (Picked unit)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Brilliance Aura for Aura_Unit1) Equal to 3
-
Then - Actions
- Unit - Remove Mana Reduction (1) from (Picked unit)
- Unit - Remove Mana Reduction (2) from (Picked unit)
- Unit - Add Mana Reduction (3) to (Picked unit)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Events
-
Brilliance Aura addition off
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Brilliance Aura) Equal to False
-
Then - Actions
- Unit - Remove Mana Reduction (1) from (Picked unit)
- Unit - Remove Mana Reduction (2) from (Picked unit)
- Unit - Remove Mana Reduction (3) from (Picked unit)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Events