Ok, so I am trying to create a validator that says "if you picked up this item and it is applying the behavior, then return true, else, return false".
Basically, I am trying to apply the marauder's concussive shell slow effect only if the hero has picked up the concussive shells item. The item applies a dummy behavior that does nothing. I want the validator to count the beahviors on the unit and return true if there is at least one of the dummy behaviors applied. The actor validates the effect using this validator. So it should only produce the desired effect if the validator returns true. So when I play the game, it works fine when the concussive shells item has not been picked up. But when I pick the item up, no launch effect and no impact effect appear, as well as no sounds. Btw, the actors are the same as the Maurader Attack and Marauder Attack Upgraded actors, except that I changed the damage effect, launch missile effect, and validator.
So I'm thinking that somehow the validator is not working correctly, because the regular attack works
Here is the link to the screenshot of my validator.
Ok, so I am trying to create a validator that says "if you picked up this item and it is applying the behavior, then return true, else, return false".
Basically, I am trying to apply the marauder's concussive shell slow effect only if the hero has picked up the concussive shells item. The item applies a dummy behavior that does nothing. I want the validator to count the beahviors on the unit and return true if there is at least one of the dummy behaviors applied. The actor validates the effect using this validator. So it should only produce the desired effect if the validator returns true. So when I play the game, it works fine when the concussive shells item has not been picked up. But when I pick the item up, no launch effect and no impact effect appear, as well as no sounds. Btw, the actors are the same as the Maurader Attack and Marauder Attack Upgraded actors, except that I changed the damage effect, launch missile effect, and validator.
So I'm thinking that somehow the validator is not working correctly, because the regular attack works
Here is the link to the screenshot of my validator.
http://s1232.photobucket.com/albums/ff371/SaintTrigger/?action=view¤t=Validator.jpg
Thanks