Sirroelivan
Gunnerkrigg Court
- Reaction score
- 95
If you wanted to check individual units, you'd have to put an or between the different checks. A unit can't be two units at the same time.
Mages
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
[B] Set temp_group = (Units in (Playable map area)(((Matching unit) Equal to |c00ff0000Mage 0021 <gen>) and (((Matching unit) Equal to |c00800080Mage 0023 <gen>) and (((Matching unit) Equal to |c00000000Mage 0020 <gen>) and (((Matching unit) Equal to |c000000ffMage 0019 <gen>) an[/B]
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(((Matching unit) is alive) Equal to True) and ((Max life of (Matching unit)) Greater than 0.50)
Then - Actions
Unit Group - Pick every unit in temp_group and do (Actions)
Loop - Actions
Set String = Empty String
Set Life = (Integer(((Percentage life of (Picked unit)) / 2.00)))
For each (Integer A) from 1 to 50, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Life Greater than or equal to (Integer A)
Then - Actions
Set String = (String + |c00880000'|r)
Else - Actions
Set String = (String + ')
Set p[1] = (Position of (Picked unit))
Set p[2] = ((Position of (Picked unit)) offset by (-75.00, 0.00))
Floating Text - Create floating text that reads String at p[2] with Z offset 210.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 0.06 seconds
Custom script: call RemoveLocation (udg_p[1])
Custom script: call RemoveLocation (udg_p[2])
Custom script: call DestroyGroup (udg_temp_group)
Else - Actions
Do nothing
Set temp_group = (Units in (Playable map area)(((Matching unit) Equal to |c00ff0000Mage 0021 <gen>) or (((Matching unit) Equal to |c00800080Mage 0023 <gen>) or (((Matching unit) Equal to |c00000000Mage 0020 <gen>) or (((Matching unit) Equal to |c000000ffMage 0019 <gen>) or ((
I hope ppl understand that the max number of texttags at once in a game is 100.
Mana Trigger
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
Set ug = (Units in (Playable map area) matching ((((Matching unit) is alive) Equal to True) and ((Max mana of (Matching unit)) Greater than 0.50)))
Unit Group - Pick every unit in ug and do (Actions)
Loop - Actions
Set String = <Empty String>
Set Mana = (Integer(((Percentage mana of (Picked unit)) / 2.00)))
For each (Integer A) from 1 to 50, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Mana Greater than or equal to (Integer A)
Then - Actions
Set String = (String + |cff0000FF'|r)
Else - Actions
Set String = (String + ')
Set p[1] = (Position of (Picked unit))
Set p[2] = (p[1] offset by (-75.00, 0.00))
Floating Text - Create floating text that reads String at p[2] with Z offset 210.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Set pg = (All enemies of (Owner of (Picked unit)))
Floating Text - Hide (Last created floating text) for pg
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 0.06 seconds
[del]Custom script: call DestroyGroup(udg_ug)[/del]
Custom script: call DestroyForce(udg_pg)
Custom script: call RemoveLocation(udg_p[1])
Custom script: call RemoveLocation(udg_p[2])
[B]Custom script: call DestroyGroup(udg_ug)[/B] <-- [I]Should be outside the loop[/I]