Hello everybody,
i got an unsolved problem respective the area search effect.
Here is, what i want to do:
1 ability with:
1 persistent effect, that periodically does:
1 area search, that finds suitable unit targets around itself.
1 area search that finds suitible teleport targets on the whole map.
1 teleport effect, that teleports every suitable unit to the suitable teleport location.
FYI there is only one suitable teleport destination at one time, so there shouldn't be any interferences.
My problem is, i don't know how to combine these area searches to have a reference for the target location.
At the moment my data looks like this.
persistent effect-> target search -> unit search ->teleport effect
But at the teleport effect i can only refer to the unit search (target), because it's the last search i did.
I don't see a way to get the results from the search that was before.
So after all i have a unit ready teleport, but no target, because i cannot refer to the target search that was before the unit search.
Does someone have any idea how to solve that problem?
put the unit search after the persistent, and make it's target effect the teleport-target search, and make that second effect teleport?
Basically, just change the order. Hit unit first, target second.
If i do units first, I am able to define the Teleport Destination as Target Unit/Point, since target search was the last search.
But how to define the teleported unit now? Caster? No, because that's the portal. Outer? & Origin? & Source? No, same reason. Target would be the the target of the last search, i.e. the destination portal. So after all it would teleport the target portal to the target portals destination oO.
I think just adding an apply behavior into the chain as the unit search target effect, the behavior lasting 0 seconds and having it's initital effect as the target search, would make the unit "caster"
Very nice idea!
Didn't work out though :( .
It's still the portal that is moving.
Anyway i noted something wrong before:
The spell structure is now:
Ability(Behaviour) -> Behaviour that creates -> Persistent effect that periodically does -> Unit Search with target effect -> apply behaviour effect -> dummy behaviour with initial effect -> target search -> actual teleport effect with: "Teleported Unit - Caster" and "Destination - Target Point/Unit".
Another thing i realized is, that the portal gets teleported in direction to the left bottom corner, instead of to the actual position of the other portal.
So there has to be some kind of invalidity in placement.
The target search though works perfectly, since i tried it with other area search target effects, that validated the other portals position.
Still any ideas?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello everybody, i got an unsolved problem respective the area search effect. Here is, what i want to do:
1 ability with: 1 persistent effect, that periodically does: 1 area search, that finds suitable unit targets around itself. 1 area search that finds suitible teleport targets on the whole map. 1 teleport effect, that teleports every suitable unit to the suitable teleport location.
FYI there is only one suitable teleport destination at one time, so there shouldn't be any interferences. My problem is, i don't know how to combine these area searches to have a reference for the target location. At the moment my data looks like this.
persistent effect-> target search -> unit search ->teleport effect
But at the teleport effect i can only refer to the unit search (target), because it's the last search i did. I don't see a way to get the results from the search that was before. So after all i have a unit ready teleport, but no target, because i cannot refer to the target search that was before the unit search.
Does someone have any idea how to solve that problem?
put the unit search after the persistent, and make it's target effect the teleport-target search, and make that second effect teleport?
Basically, just change the order. Hit unit first, target second.
@TheAlmaity: Go
I also tried that. My problem is the actual teleport effect that comes last: The two respective parameters are:
Which unit is teleported? - Caster | Outer | Origin | Source | Target Teleport Destination? - Caster Unit/Point | Outer Unit/Point | Origin Unit/Point | Source Unit/Point | Target Unit/Point
If i do units first, I am able to define the Teleport Destination as Target Unit/Point, since target search was the last search. But how to define the teleported unit now? Caster? No, because that's the portal. Outer? & Origin? & Source? No, same reason. Target would be the the target of the last search, i.e. the destination portal. So after all it would teleport the target portal to the target portals destination oO.
Or am i missunderstanding something here?
I'd guess caster, source, or origin.
I think just adding an apply behavior into the chain as the unit search target effect, the behavior lasting 0 seconds and having it's initital effect as the target search, would make the unit "caster"
@TheAlmaity: Go
Very nice idea! Didn't work out though :( . It's still the portal that is moving.
Anyway i noted something wrong before: The spell structure is now:
Ability(Behaviour) -> Behaviour that creates -> Persistent effect that periodically does -> Unit Search with target effect -> apply behaviour effect -> dummy behaviour with initial effect -> target search -> actual teleport effect with: "Teleported Unit - Caster" and "Destination - Target Point/Unit".
Another thing i realized is, that the portal gets teleported in direction to the left bottom corner, instead of to the actual position of the other portal. So there has to be some kind of invalidity in placement. The target search though works perfectly, since i tried it with other area search target effects, that validated the other portals position.
Still any ideas?