Plague Ability Need Help Fast!

Da Kommodor

New Member
Reaction score
1
Hi all,
I'm making an ability that works like a spreading plague.
Unit A becomes affected by Plague.
Unit B and C are within say 200 of unit A. Unit B and C would then be affected by Plague.

Unit D and E are within 200 of unit C. Unit D and E would then be affected by Plague.
And so on and so forth...
Totally clueless how to go about doing this so any advice is appreciated :)
 

Necrach

You can change this now in User CP.
Reaction score
62
Make the plauge appear on the unit from a dummy caster. Then make a trigger running when that ability is cast on any unit, and pick nearby units that should be affected, create a dummy unit and cast it on them, then that trigger will run again etc until all that should have been affected is affected.

If you, however you do not say that, want the plauge to spread also after some duration has passed with the spell, I recommend basing it off Disease Cloud, triggering the Plauge to any unit affected by the dummy disease cloud :)
 

X-maul

AKA: Demtrod
Reaction score
201
uhmm, you want it to be permanent, or how do you want it to be?

If you want it to have like 60sec dur;
you could pick every unit owned by enemies in a 200range of units who got the plague buff, every 0,5 sec, and make a dummy unit cast it on the units in range, and then it will continue :) (you could btw make another dummy cast an "immune to plague" buff on affected units lasting 120 seconds so they wont make the plague permanent).
 

Necrach

You can change this now in User CP.
Reaction score
62
I am sure you can find tutorials for it here. But the main idea is to, via triggers, create an invisible and unselectable unit (give it the Locust ability) with no attack. Give this unit an ability, make it cast it, and remove the unit.

Other units called "dummy units" could be perhaps visible units with no effect, pretending to be a special effect in a skill. Try making some easy abilities using dummy units, and then just continue with your more advanced ones :eek:
 

Necrach

You can change this now in User CP.
Reaction score
62
Thanks for the help Necrach. Final thing, any way to let a burrowed unit cast abilities?

Not any easy way. There might be some nice way of triggering this (with dummy units, for sure :p) but none that I can think of now.

And back to the dummy units, I made you a simple example of a trigger that creates a dummy unit
Trigger:
  • dummy
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Faerie Fire
    • Actions
      • Unit - Create 1 DUMMY for (Owner of (Casting unit)) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
      • Unit - Add Silence to (Last created unit)
      • Unit - Order (Last created unit) to Neutral Dark Ranger - Life Drain (Target unit of ability being cast)
      • Unit - Add a 4.00 second Generic expiration timer to (Last created unit)

(also remove point leak by deciding a point variable first, and removing it with a costum script after its used)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top