Triggers

Status
Not open for further replies.
Level 5
Joined
Jul 15, 2012
Messages
101
I'm using Kill Sound System (http://www.hiveworkshop.com/forums/spells-569/kill-sound-system-1-1-a-186817/) and there are bugs i don't know how to fix.
First - when you make triple kill it says triple kill and killing spree sounds at the same time (don't know how to make to say only triple kill).

Second - when you make rampage (5 kills) and you make 6 kills there is no sound of rampage again. And i don't know what's the time given from kill to duoble kill.
 
I will give you my own developed kill system

Set every unique hero to a variable, then set the variable to this hero and use the variable when the hero die(if the hero is not already on the map - but if it's on the map already you don't need variable :) )
  • A unit dies
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Dying unit) Equal to Paladin
    • Actions
      • Set Combopoints[(Player number of (Owner of (Killing unit)))] = (Combopoints[(Player number of (Owner of (Killing unit)))] + 1)
      • Set Combopoints[(Player number of (Owner of (Dying unit)))] = 0
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Killing unit)) Not equal to Grunt
        • Then - Actions
          • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + ( pwned + (Color[(Player number of (Owner of (Dying unit)))] + ((Name of (Owner of (Dying unit))) + |r's head! for |c00FFFF00100|r gold!!))))))
          • Player - Add 100 to (Owner of (Killing unit)) Current gold
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 2
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + just got a |c000042FFDouble Kill|r!)))
              • Sound - Play Double_Kill <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 3
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + just got a |c0020C000Triple Kill|r!!!)))
              • Sound - Play triple_kill <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 4
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is |c00FF0303OWNING|r!!!)))
              • Sound - Play Ownage <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 4
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is on |c0000FF00Killing Spree|r!!!)))
              • Sound - Play Killing_Spree <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 5
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is |c00FF0303Dominating|r!!!)))
              • Sound - Play Dominating <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 6
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + has a |c001CE6B9Mega Kill!!)))
              • Sound - Play MegaKill <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 7
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is |c00FEBA0Eunstoppable|r!!)))
              • Sound - Play Unstoppable <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 8
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is |c0000FF00Wicked Sick|r!!!)))
              • Sound - Play WhickedSick <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 9
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + has a |c00FF0303MONSTER KILL|r!!!)))
              • Sound - Play monster_kill <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 10
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is |c00FF0303GODLIKE|r!!!)))
              • Sound - Play GodLike <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 11
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is |c00FEBA0Ebeyond GODLIKE|r!!! Someone KILL HIM!!!)))
              • Sound - Play HolyShit <gen>
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Killing unit)) Equal to Grunt
        • Then - Actions
          • Game - Display to (All players) the text: (|c00FF0303 + (|c000042FFThe Horde + (|r + ( pwned + (|c000042FF + ((Name of (Owner of (Dying unit))) + |r's head! |c00FF8000NOOB|r!!!))))))
        • Else - Actions
It Works Perfectly

Good luck!
 
Level 5
Joined
Jul 15, 2012
Messages
101
Can you please make it more specific with variables?
  • Set ComboPoints[(Player number of (Owner of (Killing unit)))] = ComboPoints[(Player number of (Owner of (Killing unit)))]
don't know how to do +1?
 
I will give you my own developed kill system

Set every unique hero to a variable, then set the variable to this hero and use the variable when the hero die(if the hero is not already on the map - but if it's on the map already you don't need variable :) )
  • A unit dies
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Dying unit) Equal to Paladin
    • Actions
      • Set Combopoints[(Player number of (Owner of (Killing unit)))] = (Combopoints[(Player number of (Owner of (Killing unit)))] + 1)
      • Set Combopoints[(Player number of (Owner of (Dying unit)))] = 0
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Killing unit)) Not equal to Grunt
        • Then - Actions
          • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + ( pwned + (Color[(Player number of (Owner of (Dying unit)))] + ((Name of (Owner of (Dying unit))) + |r's head! for |c00FFFF00100|r gold!!))))))
          • Player - Add 100 to (Owner of (Killing unit)) Current gold
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 2
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + just got a |c000042FFDouble Kill|r!)))
              • Sound - Play Double_Kill <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 3
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + just got a |c0020C000Triple Kill|r!!!)))
              • Sound - Play triple_kill <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 4
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is |c00FF0303OWNING|r!!!)))
              • Sound - Play Ownage <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 4
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is on |c0000FF00Killing Spree|r!!!)))
              • Sound - Play Killing_Spree <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 5
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is |c00FF0303Dominating|r!!!)))
              • Sound - Play Dominating <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 6
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + has a |c001CE6B9Mega Kill!!)))
              • Sound - Play MegaKill <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 7
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is |c00FEBA0Eunstoppable|r!!)))
              • Sound - Play Unstoppable <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 8
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is |c0000FF00Wicked Sick|r!!!)))
              • Sound - Play WhickedSick <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 9
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + has a |c00FF0303MONSTER KILL|r!!!)))
              • Sound - Play monster_kill <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 10
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is |c00FF0303GODLIKE|r!!!)))
              • Sound - Play GodLike <gen>
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Combopoints[(Player number of (Owner of (Killing unit)))] Equal to 11
            • Then - Actions
              • Game - Display to (All players) the text: (Color[(Player number of (Owner of (Killing unit)))] + ((Name of (Owner of (Killing unit))) + (|r + is |c00FEBA0Ebeyond GODLIKE|r!!! Someone KILL HIM!!!)))
              • Sound - Play HolyShit <gen>
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Killing unit)) Equal to Grunt
        • Then - Actions
          • Game - Display to (All players) the text: (|c00FF0303 + (|c000042FFThe Horde + (|r + ( pwned + (|c000042FF + ((Name of (Owner of (Dying unit))) + |r's head! |c00FF8000NOOB|r!!!))))))
        • Else - Actions
It Works Perfectly

Good luck!
I see, but it doesnt look like a perfect system for me. Why people always think their systems are perfect? :s
  • (Dying unit) Equal to Paladin
  • (Unit-type of (Killing unit)) Not equal to Grunt
@Karr123, don't use this :p

Also there are a lot of not needed function calls, you could store things into variables.

Also.. really need to check for each single kill-amount? Even one was found already.. :/

Using sound[array] & string would make this a lot of better, without that many not needed checks.
__________________________

@Karr123, it's not so hard to do it on your own, if you try but still can't do it --> make a request in request section with a test map and imported sounds and stuff what needed, and someone will do it for you very fast.

Or you of course could go on searching in spell section, maybe you can find one.. but usually specified systems fit better with a map.
 
Status
Not open for further replies.
Top