Hi everyone,
Here is my problem,
I'm trying to recreate some warcraft 3 spell from a naruto game. The spell consist of targetting a tree and after you're unit get teleported to the top of the tree
and after he runs back to the ground. So, I was wondering if it was possible to apply an offset on the target position so I can make my hero on the top of the tree.THx :D
EDIT: How can I make that only tree can be targetted with this ability?
Thx.
Now, I'm trying to validate the target unit. The ability can only works on that target unit type ( A tree ). What field do you need to change to validate the target unit type?
PS: I made a validator of unit type but I don't know where I put it...
Some people might say you can check off a stupid unit flag on the tree like Hover for example and validate unit filter Hover on the effect that does the targeting but its much easier and doesnt take up a unit flag that can mayb be used later. I would make a Behavior named "Tree" duration 0 that is hidden and add it to the Tree unit, then use a validator to compare unit behavior count, so that it validates target has behavior Tree GTE 1 , put that either on the teleport effect, or whatever effect is in the abilities Effect Field so if its a set or a persistent or the teleport either way make sure the effect targets units only so the Target Target field of that effect will be "Target Unit" only and the validator just add the Tree one we made and Vio La that ability can only target tree's. Using this method you can invent unit types to your hearts content with noting more than a behavior and a validator the two of which prolly take up less than a kilobyte, and only take a couple of seconds to make.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi everyone, Here is my problem, I'm trying to recreate some warcraft 3 spell from a naruto game. The spell consist of targetting a tree and after you're unit get teleported to the top of the tree and after he runs back to the ground. So, I was wondering if it was possible to apply an offset on the target position so I can make my hero on the top of the tree.THx :D
EDIT: How can I make that only tree can be targetted with this ability?
make the tree a unit (like minerals are)
there is an effect to modify height you can add to the teleport
Thx. Now, I'm trying to validate the target unit. The ability can only works on that target unit type ( A tree ). What field do you need to change to validate the target unit type? PS: I made a validator of unit type but I don't know where I put it...
Some people might say you can check off a stupid unit flag on the tree like Hover for example and validate unit filter Hover on the effect that does the targeting but its much easier and doesnt take up a unit flag that can mayb be used later. I would make a Behavior named "Tree" duration 0 that is hidden and add it to the Tree unit, then use a validator to compare unit behavior count, so that it validates target has behavior Tree GTE 1 , put that either on the teleport effect, or whatever effect is in the abilities Effect Field so if its a set or a persistent or the teleport either way make sure the effect targets units only so the Target Target field of that effect will be "Target Unit" only and the validator just add the Tree one we made and Vio La that ability can only target tree's. Using this method you can invent unit types to your hearts content with noting more than a behavior and a validator the two of which prolly take up less than a kilobyte, and only take a couple of seconds to make.