• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Creep help (displaying how many a player owns)

Status
Not open for further replies.
Level 5
Joined
Nov 2, 2008
Messages
48
Hi, i making a Circle Defense and i need some help.

There are 4 players that defend a circle from creeps, if they are more then 60 creeps in it so will you lose.

My problem is, i want anything so i can see how menny creeps that player 10(creeper) owns

Im using food, when player 10s food limit become more then 60 all lose (1 food per creep)
 
I think this should solve your problem...

  • a
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Owner of (Picked unit)) Equal to Player 10 (Light Blue)
            • Then - Actions
              • Set Counter = (Counter + 1)
            • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Counter Greater than or equal to 60
        • Then - Actions
          • End Game
        • Else - Actions
          • Set Counter = 0
 
You can convert any integer to reals and strings.
When you use strings you see 2 red inscriptions: String1 + String2. A bit higher you see "Concentrate strings." Click on it and choose "Conversion - Convert integer to string." (In WEU it's 4th raw)
 
Status
Not open for further replies.
Back
Top