HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Black Plague

09-25-2004, 04:16 AM#1
Limb_Smasher
Ive found out that I need help with this ability. What it is, is basically like a plague/ virus kind of thing. the ability attacks a single unit and does a DoT (like shadow strike), but I want it to spread to other units and heroes (i.e. having nearby units "get the virus" and have a DoT and a buff showing that they have the virus.) If you've understood a word ive said and know how to do this, please help me.
09-25-2004, 01:39 PM#2
RaeVanMorlock
Quote:
Originally Posted by Limb_Smasher
Ive found out that I need help with this ability. What it is, is basically like a plague/ virus kind of thing. the ability attacks a single unit and does a DoT (like shadow strike), but I want it to spread to other units and heroes (i.e. having nearby units "get the virus" and have a DoT and a buff showing that they have the virus.) If you've understood a word ive said and know how to do this, please help me.

Use shadow strike as the base ability. Then when someone gets hit by it, add a modified version of disease cloud to the unit.

You might be able to take that a step further by detecting when someone is hit with disease cloud and giving them the disease cloud ability.

Use a unit group to keep track of everyone given the diease cloud ability so you can remove it after a certain amount of time.

Here's a rough pseudo-trigger that will hopefully be enough to help you do it:

Event:
- Unit casts Shadow Strike
Actions:
- Add Disease Cloud to target unit of ability being cast
- Add target unit to DiseaseCloudUnitGroup
- wait 30.00 seconds
- Pick each unit in DiseaseCloudUnitGroup
- - Remove Disease Cloud ability from Picked Unit

Event:
- <some means of detecting when a unit is hit by the disease cloud>
Conditions:
- Unit is not in DiseaseCloudUnitGroup
Actions:
- Add Disease Cloud to target unit of ability being cast
- Add target unit to DiseaseCloudUnitGroup


If there's any chance of this ability being 'in effect' more than once in the map then you'll have to make the DiseaseCloudUnitGroup be an array so you can keep track of the multiple instances of the spell that's running rampant.