On the final stretch, need spell help

Status
Not open for further replies.
Level 3
Joined
Aug 25, 2009
Messages
18
Not sure if this is the right section, but here goes. I'm making a map where heroes controlled by players kill units to be the first to reach 100 kills. Now I have 3 custom spells that do not give kill credit and this is a problem. First one is a goblin land mine that when it kills it gives no credit. It is created for the casting unit so I figured it would give kill credit. The other 2 skills I can under stand as one is Rejuv with a negative life gain on it so it may be counted as a friendly spell. I wouldn't mind using shadow strike I just don't want numbers popping up. Lastly the third skill falls under the second point. Its an Unholy aura that targets only enemies and drains life. Now if anyone has any ideas on how to make them register as kills for the player that would be most appreciated. Right now they are being stored as a variable (integer) and doing the whole plus one thing. Thanks.
 
Well I'm not sure what you mean but if goblin land mine is actually a mine you could try this...
  • Mines
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Killing unit)) Equal to (goblin mine)
    • Actions
      • Set Player_kills[(Player number of (Owner of (Killing unit)))] = (Player_kills[(Player number of (Owner of (Killing unit)))] + 1)
Or howere you register kills in your map, and about the shadow strike if you don't want the damage to pop up you could always use https://www.hiveworkshop.com/forums...over-time-111622/?prev=search=dot&d=list&r=20, it's a very simple system to implement and is really cool.
I'm not sure but I think you could use that DOT system for your unholy aura checking if the specific unit by checking every second if a unit has the aura.
 
Status
Not open for further replies.
Back
Top