1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

On the final stretch, need spell help

Discussion in 'World Editor Help Zone' started by Rabid.Ocelot, Sep 10, 2009.

  1. Rabid.Ocelot

    Rabid.Ocelot

    Joined:
    Aug 25, 2009
    Messages:
    16
    Resources:
    0
    Resources:
    0
    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.
     
  2. darkalex13

    darkalex13

    Joined:
    Feb 20, 2008
    Messages:
    54
    Resources:
    0
    Resources:
    0
    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 http://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.