• 🏆 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!

[General] Limit Hero to 1 for all players

Status
Not open for further replies.
Level 28
Joined
Feb 18, 2014
Messages
3,580
  • Limit Hero Training
    • Events
      • Unit - A unit Finishes Training A Unit
    • Conditions
      • ((Trained unit) is A hero) Equal to TRUE
    • Actions
      • Set PlayerGroup = (All players matching ((Matching player) Not equal to (Owner of (Trained unit))))
      • Player Group - Pick every player in PlayerGroup and do (Actions)
        • Loop - Actions
          • Player - Make (Unit-type of (Trained unit)) Unavailable for training/construction by (Picked player)
      • Custom script: call DestroyForce (udg_PlayerGroup)
 
Status
Not open for further replies.
Top