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
RD system Loop version by Chrono_Kid.w3x
Variables
Reincarnation Detection Loop Version By Chrono_Kid
Reincarnation Detection
Hashtable
Reincarnation Detection ADD Unit
Reincarnation Detection Check HP
Reincarnation Detection Check Death
Example Trigger
Select unit and damage
Begin RD
End RD
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code.
Name
Type
is_array
initial_value
Hashtable
hashtable
No
RD_Event
real
No
RD_Group
group
No
RD_Unit
unit
No
-------------------------ENGLISH-------------------------
This system adds 2 events, when the unit enters into the process of reincarnation
and another for when she finishes reincarnate. RD_Event Becomes equal to 1 for
when the unit starts to reincarnate, and RD_Evento Becomes equal to 2 for when
the unit finishes reincarnate. RD_Unit is the triggering unit.
(Load 1 of (Key (Picked unit)) from Hashtable) equal to True, the condition is to
check if the unit is still reincarnating.
(Load 1 of (Key (Picked unit)) from Hashtable) equal to false, the condition is to
check if the unit is not reincarnating.
To add more skills reincarnation, check trigger "Reincarnation ADD Detection Unit"
and check the condition of the part, which has Or - Any (Conditions) are true and
add their magic of reincarnation.
System completely done by Chrono_Kid
http://www.facebook.com/TheChronoHeart
-------------------------PORTUGUÊS-------------------------
Esse sistema adiciona 2 eventos, quando a unidade entre em processo de reen-
carnação e outro para quando ela termina de reencarnar.
RD_Event becomes equal to 1 para quando a unidade começa a reencarnar e
RD_Evento becomes equal to 2 para quando a unidade termina de reencarnar.
RD_Unit é a triggering unit.
(Load 1 of (Key (Picked unit)) from Hashtable) equal to True, é a condição para
verificar se a unidade ainda esta reincarnando.
(Load 1 of (Key (Picked unit)) from Hashtable) equal to false, é a condição para
verificar se a unidade não esta reincarnando,
para adicionar mais habilidades de reencarnação, verifique trigger
"Reincarnation Detection ADD Unit" e cheque a parte de condição, onde tem
Or - Any (Conditions) are true e adicione a sua magia de reencarnação.
Sistema totalmente feito por Chrono_Kid
http://www.facebook.com/TheChronoHeart
Hashtable
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Hashtable - Create a hashtable
Set Variable Set Hashtable = (Last created hashtable)
Reincarnation Detection ADD Unit
Events
Unit - A unit Learns a skill
Conditions
((Triggering unit) is in RD_Group.) Equal to False
Or - Any (Conditions) are true
Conditions
(Learned Hero Skill) Equal to Reincarnation
Actions
Unit Group - Add (Triggering unit) to RD_Group
Unit Group - Pick every unit in RD_Group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to (Picked unit)
Then - Actions
Hashtable - Save True as 0 of (Key (Picked unit).) in Hashtable .
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Reincarnation_Detection_Check_HP <gen> is on) Equal to False
Then - Actions
Trigger - Turn on Reincarnation_Detection_Check_HP <gen>
Trigger - Turn on Reincarnation_Detection_Check_Death <gen>
Else - Actions
Reincarnation Detection Check HP
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in RD_Group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Life of (Picked unit)) Less than 1.00
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Load 0 of (Key (Picked unit).) from Hashtable.) Equal to True
(Load 1 of (Key (Picked unit).) from Hashtable.) Not equal to True
Then - Actions
Set Variable Set RD_Unit = (Picked unit)
Set Variable Set RD_Event = "1.00"
Hashtable - Save True as 1 of (Key (Picked unit).) in Hashtable .
Set Variable Set RD_Event = "0.00"
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Load 0 of (Key (Picked unit).) from Hashtable.) Equal to False
Then - Actions
Hashtable - Save True as 0 of (Key (Picked unit).) in Hashtable .
Hashtable - Save False as 1 of (Key (Picked unit).) in Hashtable .
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Life of (Picked unit)) Greater than 1.00
(Load 0 of (Key (Picked unit).) from Hashtable.) Equal to True
(Load 1 of (Key (Picked unit).) from Hashtable.) Equal to True
Then - Actions
Hashtable - Save False as 1 of (Key (Picked unit).) in Hashtable .
Set Variable Set RD_Unit = (Picked unit)
Set Variable Set RD_Event = "2.00"
Set Variable Set RD_Event = "0.00"
Else - Actions
Reincarnation Detection Check Death
Events
Unit - A unit Dies
Conditions
((Triggering unit) is in RD_Group.) Equal to True
Actions
Unit Group - Pick every unit in RD_Group and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to (Picked unit)
Then - Actions
Hashtable - Save False as 0 of (Key (Picked unit).) in Hashtable .
Else - Actions
Select unit and damage
Events
Player - Player 1 (Red) Selects a unit
Conditions
Actions
Hero - Learn skill for (Triggering unit) : Reincarnation
Wait 0.50 seconds
Unit - Cause (Triggering unit) to damage (Triggering unit) , dealing 60000.00 damage of attack type Spells and damage type Magic
Begin RD
Events
Game - RD_Event becomes Equal to 1.00
Conditions
Actions
Game - Display to (All players) the text: ((Proper name of RD_Unit) + is reincarnating.)
End RD
Events
Game - RD_Event becomes Equal to 2.00
Conditions
Actions
Game - Display to (All players) the text: ((Proper name of RD_Unit) + is alive)
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.