HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Detecting when Shadowmeld activates

02-16-2007, 06:00 AM#1
Falitian
I'm trying to create a healing effect whenever a hero-ability version of Shadowmeld is activated, but I am having trouble detecting it via events such as "Unit begins the Effect of and Ability"
02-16-2007, 06:50 AM#2
Pyrogasm
Check a unit's current order? Maybe using shadowmeld activates the "hide" or "shadowmeld" order.
02-16-2007, 07:01 AM#3
Av3n
Hide actives NE shadowmeld

-Av3n
02-16-2007, 11:13 AM#4
Falitian
WALL OF TEXT


Ok, well I've been running some tests. The ordercode is "ambush" for the shadowmeld ability to activate. However, the "ambush" ordercode is only activated when the ability itself is clicked, not for the cases when the ability automatically enables when a unit is inactive, and is thus still using the "stop" ordercode. This isn't a problem for my situation, but if there is someone else who is using this information, I tried detecting other orders that both break and enable the passive effect of the shadowmeld ability and found that you cannot detect the inactiveness of a unit through ordercodes. I attempted to track it through "stop" "patrol" "hold position" and none of them worked. I was, however, successfully able to detect when shadowmeld was broken through the activating of triggers that detected when the unit was damage, revealed, or received the ordercodes: "move to" "attack" "attack once" "Patrol to" and the other spell abilities that my hero had. The "stop" and "hold position" ordercodes are irrelevant when the unit is already using the "ambush" ordercode as they automatically default back to ambush when issued the either "stop" or "hold position".