• 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.

Spell: Unit leaves posion trail

Status
Not open for further replies.
Level 11
Joined
Jul 28, 2007
Messages
920
So how would i need to make that ? I have few idea, creating dummy with immolation ability, but i dont know how to make detection system that detects if there is any posion dummy in range of all posion dummies, like when posion is spawned, there wont be next one spawned until you leave some range of posion cloud (any).
 
Level 9
Joined
Apr 7, 2008
Messages
176
give the unit a buff (Poison Trail)


Every .2 of gametime

Action
Unit Group- Pick every unit in (unit group (PoisonGroup)) and do actions
-Loop actions-
If then else, multiple actions
-Conditons-
Picked unit has buff (poison trail)
-Actions-
Every .1 seconds of game time create (Dummy unit) at position of picked unit.
Add a 6 second generic timer to (Last Created Unit)
Make a trigger that when they cast such spell. a unit is put into the unit group.
And when they lose the buff they leave unit group.
Make the Dummy unit have Locust and Disease cloud Model.
Give them whatever damaging ability you want. Disease cloud or Immolation.
I have done what youre asking for in a a map. But its currently GUI so leaks horribly. You have to do it with Jass to get rid of all those leaks every .1 seconds LOL
 
Last edited:
Level 11
Joined
Nov 15, 2007
Messages
800
You can remove most if not all leaks in GUI.

And since OP seems relatively competent, what you're looking for is

  • Conditions
    • (Number of units in (Units within 50.00 of (Position of (Picked unit)) matching ((Unit-type of (Matching unit)) Equal to Poison))) Equal to 0
It's an Integer Comparison.
 
Status
Not open for further replies.
Top