• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

When type -stats it says... help :(

Status
Not open for further replies.
Level 7
Joined
Apr 13, 2008
Messages
183
Well... I was working on something like stats and I used 2 variables - kills and deaths. When a player kills a hero set kills[some number] = kills[same number] + 1. And the same with deaths. But I cannot figure out this: Player 1 types -stats it says to him - "Your kills are (kills[some number]) and your deaths are (deaths[some number]). Help pls!
P.S. That same number is 1,2,3,4.... (the variables have array you know :wink: )
 
This should work Reatek, you would just have to put the array number in place of SomeNumber:

  • Stats
    • Events
      • Player - Player 1 (Red) types a chat message containing -stats as An exact match
    • Conditions
    • Actions
      • Game - Display to (All players) the text: ((Your kills are: + (String((Kills[SomeNumber])))) + (, and your deaths are: + (String((Deaths[SomeNumber])))))
 
Status
Not open for further replies.
Back
Top