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!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
Detection damage.w3x
Variables
Inicialización
stuffs
unit dies
AttackTri
Escribe debajo el código del guión personalizado especial para el mapa. El texto se incluirá en el guión del mapa después de declarar las variables y antes de los códigos de los detonadores.
//TESH.scrollpos=0
//TESH.alwaysfold=0
Name
Type
is_array
initial_value
A
real
No
B
real
No
C
real
No
cantuni
integer
No
done
boolean
No
index
integer
No
taken
group
No
unit
unit
Yes
unitlife
real
Yes
stuffs
Events
Map initialization
Conditions
Actions
Unit - Make Frog 0001 <gen> Invulnerable
Hero - Set Blademaster 0028 <gen> Hero-level to 10 , Show level-up graphics
unit dies
Events
Unit - A unit Dies
Conditions
Actions
Wait (Random real number between 0.00 and 20.00) seconds
Unit - Create 1 . (Unit-type of (Dying unit)) for (Owner of (Dying unit)) at (Position of (Dying unit)) facing Default building facing degrees
AttackTri
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
Set Variable Set index = "0"
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
done Equal to False
Then - Actions
Custom script: call DestroyGroup(udg_taken)
Set Variable Set done = "true"
Set Variable Set taken = (Units within 100000.00 of (Position of Frog 0001 <gen>).)
Set Variable Set cantuni = (Number of units in taken)
Unit Group - Pick every unit in taken and do (Actions)
Loop - Actions
Set Variable Set index = (index + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) Equal to unit[index]) and ((Percentage life of unit[index]) Equal to unitlife[index])
Then - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) Equal to unit[index]) and ((Percentage life of unit[index]) Less than unitlife[index])
Then - Actions
Set Variable Set A = (Percentage life of unit[index])
Floating Text - Create floating text that reads (String(C)) at (Position of unit[index]) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 75.00 towards 45.00 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 0.50 seconds
Game - Display to (All players) the text: ((Unit + (Name of unit[index])) + ( + (has taken this ammount of damage: + (String(C)))))
Custom script: set udg_unitlife[udg_index] = GetUnitStatePercent(GetEnumUnit(), UNIT_STATE_LIFE, UNIT_STATE_MAX_LIFE)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
unit[index] Not equal to (Picked unit)
Then - Actions
Set Variable Set unit[index] = (Picked unit)
Custom script: set udg_unitlife[udg_index] = GetUnitStatePercent(GetEnumUnit(), UNIT_STATE_LIFE, UNIT_STATE_MAX_LIFE)
Else - Actions
Else - Actions
Set Variable Set done = "false"
For each (Integer index ) from 1 to cantuni , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
unitlife[index] Greater than (Percentage life of unit[index])
Then - Actions
Set Variable Set A = (Percentage life of unit[index])
Floating Text - Create floating text that reads (String(C)) at (Position of unit[index]) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 75.00 towards 45.00 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 0.50 seconds
Game - Display to (All players) the text: ((Unit + (Name of unit[index])) + ( + (has taken this ammount of damage: + (String(C)))))
Custom script: set udg_unitlife[udg_index] = GetUnitStatePercent(udg_unit[udg_index], UNIT_STATE_LIFE, UNIT_STATE_MAX_LIFE)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.