• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Little questions.

Status
Not open for further replies.
Level 5
Joined
Jun 24, 2009
Messages
118
  • Another.Trigger
    • Events
      • Player - Player 1 (Red) leaves the game
    • Conditions
    • Actions
      • Game - Display to (All players) the text: ((Name of (Leaving unit)) + has left the game.)
p.s. This is for all players and they are ten.

  • Victory
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set WinPoints = 0
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WinPoints Equal to 4
        • Then - Actions
          • Game - Victory (Triggering player) (Show dialogs, Show scores)
        • Else - Actions
          • Do nothing
Trigger n2 will work for all team or for only one person.I will create update trigger,so dont ask for that.



Also can help me about that - how to create hero back with his full hp/exp and level? t1 hero to region01 and t2 to other region..?!

3.TeamKills
  • Table
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Leaderboard - Create a leaderboard for (All players) titled Team Kills
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) slot status) Equal to Is playing
          • (Player 1 (Red) controller) Equal to User
          • (Player 6 (Orange) slot status) Equal to Is playing
          • (Player 6 (Orange) controller) Equal to User
        • Then - Actions
          • Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label The Destroyers and value 0
          • Leaderboard - Add Player 2 (Blue) to (Last created leaderboard) with label The Destroyers and value 0
          • Leaderboard - Add Player 3 (Teal) to (Last created leaderboard) with label The Destroyers and value 0
          • Leaderboard - Add Player 4 (Purple) to (Last created leaderboard) with label The Destroyers and value 0
          • Leaderboard - Add Player 5 (Yellow) to (Last created leaderboard) with label The Destroyers and value 0
          • Leaderboard - Add Player 5 (Yellow) to (Last created leaderboard) with label The Guards and value 0
          • Leaderboard - Add Player 6 (Orange) to (Last created leaderboard) with label The Guards and value 0
          • Leaderboard - Add Player 8 (Pink) to (Last created leaderboard) with label The Guards and value 0
          • Leaderboard - Add Player 9 (Gray) to (Last created leaderboard) with label The Guards and value 0
          • Leaderboard - Add Player 10 (Light Blue) to (Last created leaderboard) with label The Guards and value 0
        • Else - Actions
          • Leaderboard - Show (Last created leaderboard)
  • Update
    • Events
      • Unit - A unit owned by Player 1 (Red) Dies
      • Unit - A unit owned by Player 2 (Blue) Dies
      • Unit - A unit owned by Player 3 (Teal) Dies
      • Unit - A unit owned by Player 4 (Purple) Dies
      • Unit - A unit owned by Player 5 (Yellow) Dies
      • Unit - A unit owned by Player 6 (Orange) Dies
      • Unit - A unit owned by Player 7 (Green) Dies
      • Unit - A unit owned by Player 8 (Pink) Dies
      • Unit - A unit owned by Player 9 (Gray) Dies
      • Unit - A unit owned by Player 10 (Light Blue) Dies
    • Conditions
      • ((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) is A Hero) Equal to True
        • Then - Actions
          • Set TeamKills[(Player number of (Owner of (Killing unit)))] = (TeamKills[(Player number of (Owner of (Killing unit)))] + 1)
        • Else - Actions
          • Set TeamKills[(Player number of (Owner of (Killing unit)))] = (TeamKills[(Player number of (Owner of (Killing unit)))] + 0)
          • If (TeamKills[0] Equal to 120) then do (Set WinPoints = (WinPoints + 1)) else do (Leaderboard - Show (Last created leaderboard))


Also can help me about that - how to create hero back with his full hp/exp and level? t1 hero to region01 and t2 to other region..?!
 
Last edited:
Level 6
Joined
Apr 23, 2008
Messages
263
in the "Update" trigger you cant have "show last created leaderboard" , you need to store the created leaderboard in a leaderboard variable right after its created
 
Status
Not open for further replies.
Top