Effective Use OF Preventing Hero Death Message if the unit has buff or any other condition? Would be greatly apprieciated if you could remove the Hero icons that appear on the left side of the screen
You can remove the hero icons in the object editor:
Stats - Hero - Hide Hero Interface Icon
And for the death message, I'd believe that the best thing for this would be to disable the death message completely, and then trigger it... The death message can also be disabled in the object editor:
Stats - Hero - Hide Hero Death Message
EDIT: Here are the triggers needed for the death message:
Trigger:
Custom Death Message
Events
Conditions
(Life of (Triggering unit)) Less than 0.41
((Triggering unit) has buff (Your_Buff)) Equal to True
Actions
Game - Display to (All players) the text: (Player_Colors[(Player number of (Owner of (Triggering unit)))] + ((Proper name of (Triggering unit)) + (|r + has died!)))
This requires you have a variable called "Player_Colors" which is a string array variable with a size of 12.
This is the setup for that variable:
Trigger:
Set Player Colors
Events
Map initialization
Conditions
Actions
Set Player_Colors[1] = |cffFF0202
Set Player_Colors[2] = |cff0041FF
Set Player_Colors[3] = |cff1BE6B8
Set Player_Colors[4] = |cff530080
Set Player_Colors[5] = |cffFFFC00
Set Player_Colors[6] = |cffFE890D
Set Player_Colors[7] = |cff1FBF00
Set Player_Colors[8] = |cffE55AAF
Set Player_Colors[9] = |cff949596
Set Player_Colors[10] = |cff7DBEF1
Set Player_Colors[11] = |cff0F6145
Set Player_Colors[12] = |cff0F6145
And here are the triggers giving the first trigger the events:
Trigger:
Register Heroes Init
Events
Map initialization
Conditions
Actions
Set Temp_Group = (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True))
Unit Group - Pick every unit in Temp_Group and do (Actions)
Loop - Actions
Trigger - Add to Custom Death Message <gen> the event (Unit - (Picked unit)'s life becomes Less than 0.41)
Custom script: call DestroyGroup(udg_Temp_Group)
Trigger:
Register Heroes Spawning
Events
Unit - A unit enters (Playable map area)
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Trigger - Add to Custom Death Message <gen> the event (Unit - (Triggering unit)'s life becomes Less than 0.41)
I haven't tested this with the buff condition, but at least it works without it
Note: If you didin't need the buff condition, or any other for that matter, this would only need 1 trigger, but since dead units don't have buffs (to my knowledge at least) you need to detect when they're near death
I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
I'm on a page about incorrect corrections, and spent the better part of like two hours trying to get someone to understand that -5^2 = -25, not 25, and then that post had comments get reposted because that group is self sustaining, and that person was in turn trying to explain what I just explained to them. And I'm taking that as a victory