- Joined
- Jun 22, 2004
- Messages
- 109
hey guys sry to post again...didnt have this question till today, thought i could make it work but i cant..n e ways, heres the script and ill tell u wats wrong after i put the script up.
Trigger 1
Death plague 1
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Death Plague
Actions
Set PlaguedUnit = (Target unit of ability being cast)
Set DeathPlagueCaster = (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(PlaguedUnit has buff Disease) Equal to True
Then - Actions
Unit - Create 1 Plague1 for (Owner of DeathPlagueCaster) at (Position of DeathPlagueCaster) facing Default building facing degrees
Set Plague = (Last created unit)
Unit - Order Plague to Attack PlaguedUnit
Unit Group - Add Plague to Plaguegroup1
Wait 0.00 seconds
Unit - Create 1 Plague2 for (Owner of DeathPlagueCaster) at (Position of DeathPlagueCaster) facing Default building facing degrees
Set Plague2 = (Last created unit)
Unit - Order Plague2 to Attack PlaguedUnit
Unit Group - Add Plague2 to Plaguegroup1
Else - Actions
Do nothing
Trigger 2
Death plague 2
Events
Unit - A unit Dies
Conditions
PlaguedUnit Equal to (Dying unit)
Actions
Unit Group - Pick every unit in Plaguegroup1 and do (Unit - Remove (Picked unit) from the game)
Wait 0.00 seconds
Unit Group - Pick every unit in (Random 2 units from (Units within 500.00 of (Position of PlaguedUnit) matching (((Matching unit) belongs to an enemy of (Owner of DeathPlagueCaster)) Equal to True))) and do (Actions)
Loop - Actions
Unit - Create 1 PlagueDummy1 for (Owner of DeathPlagueCaster) at (Position of PlaguedUnit) facing Default building facing degrees
Set PlaguedDummy1 = (Last created unit)
Unit - Add a 3.00 second Generic expiration timer to PlaguedDummy1
Unit - Order PlaguedDummy1 to Neutral - Parasite (Picked unit)
Wait 0.00 seconds
Unit - Create 1 PlagueDummy2 for (Owner of DeathPlagueCaster) at (Position of PlaguedUnit) facing Default building facing degrees
Set PlaguedDummy2 = (Last created unit)
Unit - Add a 3.00 second Generic expiration timer to PlaguedDummy2
Unit - Order PlaguedDummy2 to Neutral - Parasite (Picked unit)
Trigger 3
Death plague 4
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Death Plague (unit)
Actions
Set PlaguedUnit2 = (Target unit of ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(PlaguedUnit2 has buff Disease) Equal to True
Then - Actions
Unit - Create 1 Plague1 for (Owner of DeathPlagueCaster) at (Position of PlaguedUnit2) facing Default building facing degrees
Set Plague = (Last created unit)
Unit - Order Plague to Attack PlaguedUnit
Unit Group - Add Plague to Plaguegroup1
Wait 0.00 seconds
Unit - Create 1 Plague2 for (Owner of DeathPlagueCaster) at (Position of PlaguedUnit2) facing Default building facing degrees
Set Plague2 = (Last created unit)
Unit - Order Plague2 to Attack PlaguedUnit
Unit Group - Add Plague2 to Plaguegroup1
Else - Actions
Do nothing
Trigger 4
Death plague 3
Events
Unit - A unit Dies
Conditions
PlaguedUnit2 Equal to (Dying unit)
Actions
Unit Group - Pick every unit in Plaguegroup1 and do (Unit - Remove (Picked unit) from the game)
Unit Group - Pick every unit in (Units within 500.00 of (Position of PlaguedUnit) matching (((Matching unit) belongs to an enemy of (Owner of DeathPlagueCaster)) Equal to True)) and do (Actions)
Loop - Actions
Unit - Create 1 PlagueDummy1 for (Owner of DeathPlagueCaster) at (Position of PlaguedUnit2) facing Default building facing degrees
Set PlaguedDummy1 = (Last created unit)
Unit - Add a 3.00 second Generic expiration timer to PlaguedDummy1
Unit - Order PlaguedDummy1 to Neutral - Parasite (Random unit from (Units within 500.00 of (Position of PlaguedDummy2) matching (((Matching unit) belongs to an enemy of (Owner of DeathPlagueCaster)) Equal to True)))
Wait 0.00 seconds
Unit - Create 1 PlagueDummy2 for (Owner of DeathPlagueCaster) at (Position of PlaguedUnit2) facing Default building facing degrees
Set PlaguedDummy2 = (Last created unit)
Unit - Add a 3.00 second Generic expiration timer to PlaguedDummy2
Unit - Order PlaguedDummy2 to Neutral - Parasite (Random unit from (Units within 500.00 of (Position of PlaguedDummy2) matching (((Matching unit) belongs to an enemy of (Owner of DeathPlagueCaster)) Equal to True)))
Trigger 5
Death plague 5
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Death Plague (unit)
Actions
Set PlaguedUnit = (Target unit of ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(PlaguedUnit has buff Disease) Equal to True
Then - Actions
Unit - Create 1 Plague1 for (Owner of DeathPlagueCaster) at (Position of PlaguedUnit2) facing Default building facing degrees
Set Plague = (Last created unit)
Unit - Order Plague to Attack PlaguedUnit
Unit Group - Add Plague to Plaguegroup1
Wait 0.00 seconds
Unit - Create 1 Plague2 for (Owner of DeathPlagueCaster) at (Position of PlaguedUnit2) facing Default building facing degrees
Set Plague2 = (Last created unit)
Unit - Order Plague2 to Attack PlaguedUnit
Unit Group - Add Plague2 to Plaguegroup1
Else - Actions
Do nothing
Ok i know most of it is a copy of the first 2, but there are minor changes to make it loop non stop (which is wat i want) ok first problem is in the first trigger, the units are not created and therefore dont attack the target unit of ability being cast. secondly when the unit with the disease buff dies, it does create both units in trigger 2, but does not cast the ability so basically the trigger stops there... plz help me i would like to get his working (it does seem imba but it isnt, its fixed so that the actual ability doesnt last too long, and this can be dispelled)[/b]
Trigger 1
Death plague 1
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Death Plague
Actions
Set PlaguedUnit = (Target unit of ability being cast)
Set DeathPlagueCaster = (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(PlaguedUnit has buff Disease) Equal to True
Then - Actions
Unit - Create 1 Plague1 for (Owner of DeathPlagueCaster) at (Position of DeathPlagueCaster) facing Default building facing degrees
Set Plague = (Last created unit)
Unit - Order Plague to Attack PlaguedUnit
Unit Group - Add Plague to Plaguegroup1
Wait 0.00 seconds
Unit - Create 1 Plague2 for (Owner of DeathPlagueCaster) at (Position of DeathPlagueCaster) facing Default building facing degrees
Set Plague2 = (Last created unit)
Unit - Order Plague2 to Attack PlaguedUnit
Unit Group - Add Plague2 to Plaguegroup1
Else - Actions
Do nothing
Trigger 2
Death plague 2
Events
Unit - A unit Dies
Conditions
PlaguedUnit Equal to (Dying unit)
Actions
Unit Group - Pick every unit in Plaguegroup1 and do (Unit - Remove (Picked unit) from the game)
Wait 0.00 seconds
Unit Group - Pick every unit in (Random 2 units from (Units within 500.00 of (Position of PlaguedUnit) matching (((Matching unit) belongs to an enemy of (Owner of DeathPlagueCaster)) Equal to True))) and do (Actions)
Loop - Actions
Unit - Create 1 PlagueDummy1 for (Owner of DeathPlagueCaster) at (Position of PlaguedUnit) facing Default building facing degrees
Set PlaguedDummy1 = (Last created unit)
Unit - Add a 3.00 second Generic expiration timer to PlaguedDummy1
Unit - Order PlaguedDummy1 to Neutral - Parasite (Picked unit)
Wait 0.00 seconds
Unit - Create 1 PlagueDummy2 for (Owner of DeathPlagueCaster) at (Position of PlaguedUnit) facing Default building facing degrees
Set PlaguedDummy2 = (Last created unit)
Unit - Add a 3.00 second Generic expiration timer to PlaguedDummy2
Unit - Order PlaguedDummy2 to Neutral - Parasite (Picked unit)
Trigger 3
Death plague 4
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Death Plague (unit)
Actions
Set PlaguedUnit2 = (Target unit of ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(PlaguedUnit2 has buff Disease) Equal to True
Then - Actions
Unit - Create 1 Plague1 for (Owner of DeathPlagueCaster) at (Position of PlaguedUnit2) facing Default building facing degrees
Set Plague = (Last created unit)
Unit - Order Plague to Attack PlaguedUnit
Unit Group - Add Plague to Plaguegroup1
Wait 0.00 seconds
Unit - Create 1 Plague2 for (Owner of DeathPlagueCaster) at (Position of PlaguedUnit2) facing Default building facing degrees
Set Plague2 = (Last created unit)
Unit - Order Plague2 to Attack PlaguedUnit
Unit Group - Add Plague2 to Plaguegroup1
Else - Actions
Do nothing
Trigger 4
Death plague 3
Events
Unit - A unit Dies
Conditions
PlaguedUnit2 Equal to (Dying unit)
Actions
Unit Group - Pick every unit in Plaguegroup1 and do (Unit - Remove (Picked unit) from the game)
Unit Group - Pick every unit in (Units within 500.00 of (Position of PlaguedUnit) matching (((Matching unit) belongs to an enemy of (Owner of DeathPlagueCaster)) Equal to True)) and do (Actions)
Loop - Actions
Unit - Create 1 PlagueDummy1 for (Owner of DeathPlagueCaster) at (Position of PlaguedUnit2) facing Default building facing degrees
Set PlaguedDummy1 = (Last created unit)
Unit - Add a 3.00 second Generic expiration timer to PlaguedDummy1
Unit - Order PlaguedDummy1 to Neutral - Parasite (Random unit from (Units within 500.00 of (Position of PlaguedDummy2) matching (((Matching unit) belongs to an enemy of (Owner of DeathPlagueCaster)) Equal to True)))
Wait 0.00 seconds
Unit - Create 1 PlagueDummy2 for (Owner of DeathPlagueCaster) at (Position of PlaguedUnit2) facing Default building facing degrees
Set PlaguedDummy2 = (Last created unit)
Unit - Add a 3.00 second Generic expiration timer to PlaguedDummy2
Unit - Order PlaguedDummy2 to Neutral - Parasite (Random unit from (Units within 500.00 of (Position of PlaguedDummy2) matching (((Matching unit) belongs to an enemy of (Owner of DeathPlagueCaster)) Equal to True)))
Trigger 5
Death plague 5
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Death Plague (unit)
Actions
Set PlaguedUnit = (Target unit of ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(PlaguedUnit has buff Disease) Equal to True
Then - Actions
Unit - Create 1 Plague1 for (Owner of DeathPlagueCaster) at (Position of PlaguedUnit2) facing Default building facing degrees
Set Plague = (Last created unit)
Unit - Order Plague to Attack PlaguedUnit
Unit Group - Add Plague to Plaguegroup1
Wait 0.00 seconds
Unit - Create 1 Plague2 for (Owner of DeathPlagueCaster) at (Position of PlaguedUnit2) facing Default building facing degrees
Set Plague2 = (Last created unit)
Unit - Order Plague2 to Attack PlaguedUnit
Unit Group - Add Plague2 to Plaguegroup1
Else - Actions
Do nothing
Ok i know most of it is a copy of the first 2, but there are minor changes to make it loop non stop (which is wat i want) ok first problem is in the first trigger, the units are not created and therefore dont attack the target unit of ability being cast. secondly when the unit with the disease buff dies, it does create both units in trigger 2, but does not cast the ability so basically the trigger stops there... plz help me i would like to get his working (it does seem imba but it isnt, its fixed so that the actual ability doesnt last too long, and this can be dispelled)[/b]