• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

nned help about victory

Status
Not open for further replies.
Level 2
Joined
Oct 29, 2008
Messages
5
i'm tryin a vicotry like anime wars, if a team players kills 50 times another team will win.who knows how can i do it?
 
do you mean like angle arena? for that you need to make a variable that is an Real and an array (2) (i am calling mine Player kills) and make the initial value what you want the kills to be i am making mine 50 then you make a trigger that is like
  • Events
  • Unit - a unit dies
  • Conditions
  • ((Triggering unit) is a hero) equal to true
  • ((Triggering unit) belongs to an enemy of player 1 (red)) equal to true
  • Actionss
  • Set Player kills [1] = (Players kills [1] -1.00)
then in another trigger do
  • Events
  • Game - Player_kills[2] becomes Equal to 0.00
  • Actions
  • Player Group - Pick every player in enemies of player (2) Blue and do (actions)
    • Loop - Actions
      • Game Defeat (Picked Player) with the message: Defeat!
and for other team :
  • Events
    • Unit - a unit dies
  • Conditions
    • ((Triggering unit) is a hero) equal to true
    • ((Triggering unit) belongs to an enemy of player 2 (blue)) equal to true
  • Actions
  • Set Player kills [2] = (Players kills [2] -1.00)
  • Events
    • Game - Player_kills[1] becomes Equal to 0.00
  • Actions
  • Player Group - Pick every player in enemies of player (1) Red and do (actions)
    • Loop - Actions
      • Game Defeat (Picked Player) with the message: Defeat!
and if you want a leader bord i will post that too :)
 
Last edited:
Level 2
Joined
Oct 29, 2008
Messages
5
thanx but i need ask something? maybe noobish quesitons but i realy dont know.
first Unit - a unit dies
what unit? am i make it for every player.
i have a twoforce ,force 1 and force 2.how can i make varible for all force1 players like?for
Unit - force1players dies
please tell about makin variable.

edit:
leaderboard next step :D
it's not important but teree is a chooser comes in anime fight, it ask how many die count for victory 25-5-75-100-150.
it would be great but you know they're next steps:D
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
Ehe?
  • Events
    • Unit - A Unit dies
  • Conditions
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • ((Owner of (Dying unit)) is in Team 1) Equal to True
      • Then - Actions
        • Set Kills[0] = Kills[0] + 1
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Kills[0] Equal to 50
          • Then - Actions
            • Player Group - Pick every Player in Team 2 and do: Player - Defeat (Picked Player)
          • Else - Actions
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Owner of (Dying unit)) is in Team 2) Equal to True
          • Then - Actions
            • Set Kills[1] = Kills[1] + 1
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • Kills[1] Equal to 50
              • Then - Actions
                • Player Group - Pick every Player in Team 1 and do: Player - Defeat (Picked Player)
              • Else - Actions
          • Else - Actions
Shall do it
//edit:
Needed variables:
* Team 1 & Team 2 /OR/ Team[x] (Player group variable, either you make two of them or one with an array)
* Kills[x] (Integer-variable with an array)
 
Level 2
Joined
Oct 29, 2008
Messages
5
i cant test it:S because my hero choose system have a lot of problems,are you guys have a good hero choose system. my system turn idiot if red goes force 2,and revive not working:p
 
Status
Not open for further replies.
Top