HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help Me!!

10-11-2004, 05:59 AM#1
Miningjrk
Ok heres the thing I want to take critical strike, give it to a item, when the hero has it obviously, he has the % chance to score a critical. When he does, i want it to play a sound that I imported called "headshot.wav". A bunch of you might notice that that is from Unreal Tournament, which it is. Can someone PLEASE HELP ME!!!! I am getting ticked off at this stupid hard-to-detect ability >.<
10-11-2004, 07:42 AM#2
HEZZA
Not quite sure, but either u could set the ability sound to ur custom sound or u could do this, which im not 100% on.

A unit is attacked / unit attacks


Condition: Neccarasy unit type
Ability being used = to itemcritcal

action: sound


I very much doubt that , but thats what it should be like. Sorry for my vaguness im at school
10-11-2004, 09:48 AM#3
Miningjrk
When you could, I would appriciate it if you would clarify that. I'v had it up to my neck with that ability and would appriciate something that will for sure work >.<
10-11-2004, 02:06 PM#4
BuRnInSpartan
nope all you do is

Events: Unit is attacked

Conditions: Attacking Unit = (to unit with the critical strike)

Actions Math Random number between 1-100

If then do multiple functions

if random number equal to 1-15
then play sound at posistion of (unit with the critical strike)
else do nothing

10-11-2004, 08:50 PM#5
Miningjrk
I take it the

If random number equal to 1-15

is the percent chance that critical has to hit? So if its a 20 percent chance I would change it to

If random number equal to 1-20

Is this correct?
10-11-2004, 09:06 PM#6
Moose-Head_Man
omg thank you god, could you PM me those sound efects i have beeen posting several threads over time about me needing the UNreal tourny sound efects, if you could give me the ones you have it would be great, and i am not really sure how you do that thing where it plays the sound...

the random integer wouldn't work all the time, becuase the sound chance to play can pick a different number than the criticle strike random chance
10-11-2004, 09:11 PM#7
Miningjrk
Here is the headshot one. I dont know how to attach a file to a pm so ill post it here. Tell me which other ones you want.
10-11-2004, 10:47 PM#8
Miningjrk
Spartan, your way is very flawed. Does anyone have a better way to do it?
Please?
10-11-2004, 11:32 PM#9
Gandalf2349
Make a custom crit strike ability with the sound effect of headshot.

They have some of those in elite snipers too i think.

God, stupid mouse, batteries dying.. won't last... much..... longer........
10-11-2004, 11:35 PM#10
Miningjrk
I tried adding a sound to it in the field

Sound Effect -

But it dosent play that sound when it crits. Why?
10-11-2004, 11:36 PM#11
Gandalf2349
Try just adding the ability to a unit and see what happens.
10-11-2004, 11:41 PM#12
Miningjrk
No it still didn't work.
10-11-2004, 11:43 PM#13
Gandalf2349
How about keep the ability on the unit and then use a trigger to check when a unit uses the ability and play the sound.

(We may end up just adding/removing the non-iconic ability from the unit that gets the item)
10-11-2004, 11:45 PM#14
Miningjrk
Quote:
How about keep the ability on the unit and then use a trigger to check when a unit uses the ability and play the sound.

Um, I don't know how to detect a critical hit with triggers?
10-12-2004, 12:01 AM#15
Gandalf2349
Wow, circularity. I heard somewhere that you can detect crit. strike when you give it to an item like lightning orb.