• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Plague spell

Status
Not open for further replies.
Level 5
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]
 
Level 5
Joined
Jun 22, 2004
Messages
109
lol ok, basically when the caster begins the ability (target ability) it creates to locust type units with an immolation base spell, with a disease cloud effect, then these 2 locust attack the unit (dealing 0 damage) and the target unit is affect with a plague, once it dies 2 more locust are created (last 2 are gone now) each affects another target, and so on, this just keeps going, until the buff is dispelled, or the unit doesnt die withing a certain time range.
 
Level 10
Joined
Aug 8, 2004
Messages
562
you culd probably use some triggers from the other post you had (Chain) to got the selecting a random unit part and for the others make a dummy unit with dummy locust ability (edit to you liking and change the Locust unit to you likings as well) and add a make it so his hp and negative hp regen match how long you want the spell to last. and that should abut do it (this is very general, tell me if you need more detail and i'll post exact triggers.)

:roll:

~iplaystarcraft
 
Status
Not open for further replies.
Top