• 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
How can i set the kill limit via write -kill xx ???

I have a just this:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ((Triggering player) is an ally of Player 1 (Red)) Equal to True
    • Then - Actions
      • Set killt1 = (killt1 + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • killt1 Greater than 74
        • Then - Actions
          • Trigger - Turn off Hero Respawn <gen>
          • Game - Display to (All players) the text: Akislia Takımı Oy...
          • Unit - Pause all units
        • Else - Actions
    • Else - Actions
This 74 part is constant.I wanna change it which i write.
 
how to set the value of -kill xx when player enters it in game

  • set value
    • Events
      • Player - Player 1 (Red) types a chat message containing (Substring(-kill, 6, 10)) as A substring
    • Conditions
    • Actions
      • Set killVariable[(Player number of (Triggering player))] = (Integer((Substring((Entered chat string), 6, 10))))
      • Game - Display to (All players) the text: (String(killVariable[(Player number of (Triggering player))]))
 
Status
Not open for further replies.
Top