HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

"Head Shot!"

02-14-2005, 05:47 AM#1
Tooolbox
Yo guys, this is my first post here so don't get all futzy if I have bad protocol or something.

I basically am working on a simple map involving a lot of guns, and I wanted to put in a Headshot function (easy, item version of critical strike), but I didn't want it to display the damage--i want it to say "headshot!" in the text. I know how to mess with the "miss" text but where do I chance the critical strike text. Or, more relevantly, can I?
02-14-2005, 07:11 AM#2
Panto
Never changed it, myself, but if a person was going to, it'd be under Advanced>Game Interface if anywhere.
02-14-2005, 07:19 AM#3
BBDino
I think you wont be able to change it, maybe try something with floaty text if it doesnt work (or cant be done)?
02-14-2005, 03:13 PM#4
Guest
The text that pops up on Critical Strike is hardwired into the spell. The best I can come up with is this.

Headshot!
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacking unit)) Equal to your unit
Actions
Set Randomnumber_variable = (Random integer number between 1 and 20)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Randomnumber_variable Equal to 1
Then - Actions
Floating Text - Create floating text that reads Headshot! above (Attacked unit) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Wait 1.00 seconds
Floating Text - Destroy (Last created floating text)
Unit - Order (Attacking unit) to damage (Attacked unit) for 50.00 using attack type Chaos and damage type Divine.
Else - Actions
02-14-2005, 04:38 PM#5
Tooolbox
Well, I figured I could do that. Oh well. Anyway, I have another related question--how can I make a guy have a chance of missing? I'm a decent trigger-guy, (but no JASS) so I guess maybe when a guy starts attacking...there's some sort of trigger...I don't know. It needs to be kind-of like an evasion only based on the attacker's weapon. Could I get help with this?
02-14-2005, 10:28 PM#6
Quickshok
Theres an old thread about making a passive curse. Not sure how much of that has changed since I believe that was before the new patch, but might as well try it.

http://www.wc3campaigns.com/showthread.php?t=59649
02-15-2005, 01:51 AM#7
Tooolbox
Ah, that might do it. Do you have the thread's address?
02-15-2005, 02:15 AM#8
Quickshok
Yea it was on the top of my post, but now I moved it to the bottom.