Help:First Blood and Killing Spree etc.
Moderator: Cheaters
-
- Newcomer
- Posts: 2
- Joined: April 14th, 2009, 3:23 pm
- Title: Mentally Unstable
Help:First Blood and Killing Spree etc.
I need help, I have the sound formats for these already, but in GUI I was wondering how to make a trigger doing First Blood, and one that if u kill 3 in a row you get Killing Spree, sorta like as in dota.
Hit Me Up On Warcraft Krazie.Bone@USWest
strangemusicinc.com
acidrap.com
mir-store.com(all of mad insanity is good Q-Strange and Mars need to be listened to)
bonethugsnharmony.com(FleshNBone is back in jail after doin' a 9 year sentence)
psychologicalrecords.com
unclehowierecords.com
infectmusic.com
myspace.com/potluck
undergroundnation.ning
For More Hit Me Up
~Unstable
strangemusicinc.com
acidrap.com
mir-store.com(all of mad insanity is good Q-Strange and Mars need to be listened to)
bonethugsnharmony.com(FleshNBone is back in jail after doin' a 9 year sentence)
psychologicalrecords.com
unclehowierecords.com
infectmusic.com
myspace.com/potluck
undergroundnation.ning
For More Hit Me Up
~Unstable
-
- Senior Member
- Posts: 165
- Joined: January 25th, 2008, 5:20 pm
- Title: Lazy
Re: Help:First Blood and Killing Spree etc.
uhmm i have something here but it's shit from the hive... i modified my version of it but for adding the text i had to copy paste so i converted it to jass so only the hive version but anyways have fun
http://www.hiveworkshop.com/forums/reso ... p?t=102866
http://www.hiveworkshop.com/forums/reso ... p?t=102866
Sig by TheWand
-
- Forum Fanatic
- Posts: 315
- Joined: October 16th, 2007, 7:32 pm
Re: Help:First Blood and Killing Spree etc.
Couldent you just make an Interger Variable?
For instance: make a Variable:
Name - Kills
Type - Interger
Array - Yes
Initial Amount - O
Than when someone kills something
Set Kills(Player number of(Owner of (killing unit) = Kills(Player number of(Owner of (killing unit) + 1)
Than, you could do an If Than, Else to make the sounds.
If Condition:
Kills(Player number of(Owner of (killing unit) = 3
Actions:
Play Sound
You could also clear the number... You could set a timer that resets every time the players character kills something. You would have to make a Variable
name - Kills timer
Type - Timer
Array - Yes
Initial Amount - 0
Than make a trigger.
Event - A unit dies
Condition - Do Nothing
Action - Start (Kills Timer)Player number of (owner of Killing Unit) For, (Player number...) With (10) seconds
Than if the Kills timer expires
Event Kills Timer(Player number...) Expires
condition - Do Nothing
Action - Set Kills(Player Number...) = 0
You should make that an If and destroy the other timer if they kill something before that.
Some of the triggers are probly wrong because im to lazy to make the actuall triggers. You can figure it out.
For instance: make a Variable:
Name - Kills
Type - Interger
Array - Yes
Initial Amount - O
Than when someone kills something
Set Kills(Player number of(Owner of (killing unit) = Kills(Player number of(Owner of (killing unit) + 1)
Than, you could do an If Than, Else to make the sounds.
If Condition:
Kills(Player number of(Owner of (killing unit) = 3
Actions:
Play Sound
You could also clear the number... You could set a timer that resets every time the players character kills something. You would have to make a Variable
name - Kills timer
Type - Timer
Array - Yes
Initial Amount - 0
Than make a trigger.
Event - A unit dies
Condition - Do Nothing
Action - Start (Kills Timer)Player number of (owner of Killing Unit) For, (Player number...) With (10) seconds
Than if the Kills timer expires
Event Kills Timer(Player number...) Expires
condition - Do Nothing
Action - Set Kills(Player Number...) = 0
You should make that an If and destroy the other timer if they kill something before that.
Some of the triggers are probly wrong because im to lazy to make the actuall triggers. You can figure it out.
Code: Select all
Example 1
Events
Unit - A unit Dies
Conditions
Actions
Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Kills[(Player number of (Owner of (Killing unit)))] Equal to 3
Then - Actions
Sound - Play (Last played sound)
Else - Actions