• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!
-Atlantis-
Reaction score
0

Profile posts Latest activity Postings Experience Resources About

  • I saw your req and decided to help.

    Hero Kill
    Events
    Unit - A unit kills a unit\\Generic Unit Event
    Conditions
    ((Dying Unit) is a Hero) Equal to True
    Actions
    If - Conditions
    (Owner of (Killing Unit)) Equal to Player 1 (Red)
    Then - Actions
    Set HeroKills[1] = HeroKills[1]+1 (Arithmetic Function)\\HeroKills[1] is an Integer Variable, with Size 1 Array
    Trigger - Run PlayerWin <gen>
    Else - Actions
    -Repeat for as many players, just change the
    Owner of Killing unit Equal to Player X (XXX) and
    Set HeroKills[X] (The X is for the player owner)

    The winning trigger:

    PlayerWin
    Events
    Conditions
    Actions
    If - Conditions
    HeroKills[1] Equal to 100
    Then - Actions
    Game - Victory (Player 1 (Red)) show Dialog, show Scores
    Game - Defeat (All other players) with the message: "YOU SUCK DUDE WAHAHA"
    Else - Actions
    +Rep?
    You need 100 kills per one hero to win? When one hero reaches 100 score, he wins? Easy for me :)
    I saw your question and if you haven't figured it out yet let me know.

    In the future you should just post questions like this in the map help forums.
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
Top