• 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.

Kill Limit

Status
Not open for further replies.
Level 5
Joined
Jul 30, 2012
Messages
93
Hello,

i'm working on hero arena map.But i couldn't set the kill limit.If our team's total kill number reach to kill limit, the game as soos as finishes.Kill limit should be 100.Then it should appear on multiboard.Can someone do and upload it instead of me?

Sorry for map language.Thank You!
 

Attachments

  • Jungle Wars.w3x
    325.5 KB · Views: 48
Level 28
Joined
Jan 26, 2007
Messages
4,789
I won't do it for you. It's a lot better if you do it yourself.

2 methods:
1) Create 2 new variables ("TotalKills1" and "TotalKills2", integer).
Increase TotalKills1 by 1 every time Team 1 kills a hero. Same goes for TotalKills2.
If TotalKills1 == 100, Team 1 wins.
If TotalKills2 == 100, Team 2 wins.

2) Create 1 new variable ("TempInt", integer).

When a hero is killed, set TempInt to 0.
Then loop from 1 to 5 and set TempInt = TempInt + Kill[LoopInteger].
If TempInt == 100, then Team 1 wins.

Reset TempInt to 0.
Loop from 6 to 10 and set TempInt = TempInt + Kill[LoopInteger]
If TempInt == 100, then Team 2 wins.
 
Level 9
Joined
Nov 19, 2011
Messages
516
Button at top-right. Orange [X].
In computer programming, a variable is a storage location and an associated symbolic name (an identifier) which contains some known or unknown quantity or information, a value. The variable name is the usual way to reference the stored value; this separation of name and content allows the name to be used independently of the exact information it represents. The identifier in computer source code can be bound to a value during run time, and the value of the variable may thus change during the course of program execution. Variables in programming may not directly correspond to the concept of variables in mathematics. The value of a computing variable is not necessarily part of an equation or formula as in mathematics. In computing, a variable may be employed in a repetitive process: assigned a value in one place, then used elsewhere, then reassigned a new value and used again in the same way (see iteration). Variables in computer programming are frequently given long names to make them relatively descriptive of their use, whereas variables in mathematics often have terse, one- or two-character names for brevity in transcription and manipulation.

http://en.wikipedia.org/wiki/Variable_%28computer_science%29
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Don't jump into conclusion guys...
Yes, you can relate Math with Programming, but seriously, it's more of a logic and understanding, Math is everywhere, you can't deny it.

Therefore, perhaps he doesn't take Programming course (or not available at his age yet) - so be understanding guys.
 
Status
Not open for further replies.
Top