Conditions unit/weapon/target killed
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Conditions unit/weapon/target killed
In the final senario for my campin, I need a certain unit to kill a certain enemy with a certain attack. The problem is that I can't attach a filter for the weapon to a "die" event, and I don't know if I can attach a "target dies" condition to an attack ends event. If this is possible then I'd like to know the reckomended way of going about it, if it is not then I'll figure out a way to get around it storywise.
"There are two kinds of old men in the world. The kind who didn't go to war and who say that they should have lived fast died young and left a handsome corpse and the old men who did go to war and who say that there is no such thing as a handsome corpse."
Re: Conditions unit/weapon/target killed
Why wouldn't [special_filter] work?Velensk wrote:In the final senario for my campin, I need a certain unit to kill a certain enemy with a certain attack. The problem is that I can't attach a filter for the weapon to a "die" event
Check the hitpoints of the unit in there?Velensk wrote:and I don't know if I can attach a "target dies" condition to an attack ends event.
Re: Conditions unit/weapon/target killed
In the description for the filter special tag, it listed the types of events it would work for, and die was not one of them. I have not actualy tried it, but I assumed if they did not list it, it would not work.
"There are two kinds of old men in the world. The kind who didn't go to war and who say that they should have lived fast died young and left a handsome corpse and the old men who did go to war and who say that there is no such thing as a handsome corpse."
-
- Art Contributor
- Posts: 410
- Joined: October 30th, 2006, 4:55 am
- Location: The Big Ö (a.k.a. Austria)
Re: Conditions unit/weapon/target killed
Just do an attack_end event with filter_second checking if its hp are 0 or lower.
that little girl's parents were attacked by ninjas - generic npc
hee hee! - little girl
hee hee! - little girl