• 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 Streak reward

Status
Not open for further replies.

xplicitjohn

X

xplicitjohn

My idea is when a player gets a certain number of kills (50 kills). They get an item.

How do i get it to display its name and make it acquire an item?

And how do i get the triger below to work?





  • Test
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Kill_Count[1] Equal to 50
        • Then - Actions
          • Game - Display to (All players) the text: ((Name of (Triggering player)) + has got 50 kills and gets an item!)
          • Hero - Create Battle Standard and give it to (Triggering unit)
        • Else - Actions
          • Do nothing
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 001
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set i1 = (Player number of (Owner of (Killing unit)))
      • Set Kills[i1] = (Kills[i1] + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Kills[i1] Equal to 50
        • Then - Actions
          • Hero - Give (*Item*) to *Hero*
          • Game - Display to (All players) the text: ((Name of (Owner of (Killing unit))) + has fifty kills!)
        • Else - Actions
If you have one hero per player, have them saved to a unit array. P1 hero at index 1, p2 hero at index 2 amd so on. Create the item for Hero[i1].
 
Status
Not open for further replies.
Top