A
aKiel2k
Guest
Too many replies but I don't know what is the right one to choose.
Thats right Ill open WE to see it.
_______________________________________________________________
Well it really bugs up!
This surely works:
Code:Zombies Events Unit - A unit Is attacked Conditions (Unit-type of (Attacking unit)) Equal to Zombie Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Custom value of (Attacked unit)) Equal to 0 Then - Actions Unit - Set the custom value of (Attacked unit) to 1 Wait 10.00 seconds Unit - Create 1 Zombie for (Owner of (Attacking unit)) at (Position of (Attacked unit)) facing Default building facing degrees Unit - Remove (Attacked unit) from the game Else - Actions
aKiel2k how would you like the units to be cured? With item or with a spell?
Cure
Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to Holy Water
Actions
Unit - Set the custom value of (Triggering unit) to 0
Turn Into Zombie
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacking unit)) Equal to Zombie
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Attacked unit)) Equal to 0
Then - Actions
Unit - Set the custom value of (Attacked unit) to 1
Special Effect - Create a special effect attached to the foot of (Triggering unit) using Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
Wait 10.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Attacked unit)) Equal to 1
Then - Actions
Unit - Replace (Attacked unit) with a Zombie using The old unit's relative life and mana
Unit - Change ownership of (Last replaced unit) to (Owner of (Attacking unit)) and Change color
Else - Actions
Else - Actions
How about the dark arrow technique? It makes the dying unit with the effect of dark arrow turn into a skeleton minion. :banghead:
Wewso could i change the time to 40secs.? and the zombie bite must not effect on organic units like zepplin or seige stream tank.
Wait 10.00 seconds
Wait 40.00 seconds
Turn Into Zombie
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacking unit)) Equal to Zombie
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Attacked unit)) Equal to 0
Then - Actions
[B]Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\Undead\Curse\CurseTarget.mdl[/B]
Unit - Set the custom value of (Attacked unit) to 1
Wait 5.00 seconds
Unit - Replace (Attacked unit) with a Zombie using The old unit's relative life and mana
Unit - Change ownership of (Last replaced unit) to (Owner of (Attacking unit)) and Change color
Else - Actions
Only change the wait time to the time you want. I changed to 20.00. See below.Wewso could i change the time to 40secs.? and the zombie bite must not effect on organic units like zepplin or seige stream tank.
Turn Into Zombie
Events
Unit - A unit Is attacked
Conditions
((Unit-type of (Attacking unit)) Equal to Zombie) [B]and[/B] (((Triggering unit) is [B]Mechanical[/B]) [B]Not equal[/B] to True)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Attacked unit)) Equal to 0
Then - Actions
Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\Undead\Curse\CurseTarget.mdl
Unit - Set the custom value of (Attacked unit) to 1
Wait [B]20.00[/B] seconds
Unit - Replace (Attacked unit) with a Zombie using The old unit's relative life and mana
Unit - Change ownership of (Last replaced unit) to (Owner of (Attacking unit)) and Change color
Else - Actions
Turn Into Zombie
Events
Unit - A unit Is attacked
Conditions
And - All (Conditions) are true
Conditions
(Unit-type of (Attacking unit)) Equal to Zombie
((Attacked unit) is Mechanical) Equal to False
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Attacked unit)) Equal to 0
Then - Actions
Wait 40.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Attacked unit)) Equal to 1
Then - Actions
Unit - Replace (Attacked unit) with a Zombie using The old unit's relative life and mana
Unit - Change ownership of (Last replaced unit) to (Owner of (Attacking unit)) and Change color
Else - Actions
Else - Actions
Cure
Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to Holy Water
Actions
Unit - Set the custom value of (Triggering unit) to 0
By cure you mean:For the 'cure' you could trigger it to remove the buff. Or, if you're using custom values, set it back to 0.
EDIT: I took a look at your map and your cure. The problem is that he wants to use the cure on heroes and we shouldnt be replacing them.
Turn Into Zombie
Events
Unit - A unit Is attacked
Conditions
And - All (Conditions) are true
Conditions
(Unit-type of (Attacking unit)) Equal to Zombie
((Attacked unit) is Mechanical) Equal to False
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Attacked unit)) is in Humans) Equal to True
Actions
Set UnitCasterType = (Unit-type of (Triggering unit))
Set MyUnit = (Unit-type of (Attacking Unit))
Wait 10.00 game-time seconds
Unit - Replace (Triggering unit) with a (Unit-type of MyUnit) using The old unit's relative life and mana
Cure
Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to Holy Water
Actions
Unit - Replace (Triggering unit) with a (Unit-type of UnitCasterType) using The old unit's relative life and mana