• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Spell] Diseaster Cloud after killing a tree

Status
Not open for further replies.
Level 23
Joined
Oct 20, 2012
Messages
3,075
Event
Destructible - Dies
Condition
Unit type of killing unit is equal to Ghoul
Action
Set temp_point = position of triggering destructible
Create 1 Disease cloud for owner of killing unit at temp_point.
Custom script: call RemoveLocation(temp_point)

I dunno, haven't worked with the WE for awhile. Disease cloud could be some kind of dummy unit.
 
Level 6
Joined
Oct 1, 2012
Messages
166
How about detecting an attack by a Ghoul to a tree and then, in the same trigger, checking whether the tree still lives, and, if not, create this cloud?
 
Level 28
Joined
Sep 26, 2009
Messages
2,520
I imagine, that you would have to have a periodic trigger, that fires every 0.05 second (or so) to check health of each destructible and also a trigger, that fires when unit attacks something. Now this may be a little bit theoretic (and may be impossible to detect a target which is destructible), but if you do something like that, it can still be exploited by multiple units attacking the same tree (since unit has a "combat - animation - damage point" field, which changes per unit, you can't use 0,01 periodic event, as that unit may not even finish the attack/damage move before the triggers fire).

I can't say I'm sure you can have a destructible damage detection system, but so far I think it is impossible to have accurate system.
 
Status
Not open for further replies.
Top