I'm having a small issue concerning my teleport trigger. Ok, actually it's not directly the trigger since it's working fine but anyways, here's the problem:
I created this trigger:
Events
- - Unit - Unit Enters (Region A)
Actions
- - Unit - Move (Triggering unit) instantly to (Region B) (No Blend)
now the problem is that i created the same trigger the other way round. Because of that the unit is "trapped" in the teleport and keeps being ported from A to B and back to A. How can I set up the trigger that the unit first has to leave the region before it can step in again and be ported back. I could of course create another teleport for the way back but that doesn't fit in my map.
And the 2nd questions is: Can I add an effect that it looks like a protoss warp or something when the unit is getting ported?
Im new to the editor and I usually use dumb long workarounds that people do 10x faster/easier, but anyway here is what I would do
I would have it add a buff or something, and when you have that buff you cant be teleported.
so
EVENT-unit enters region A
CONDITION- unit doesn't have buff/behavior
apply behavior to unit(u could just do that and end it) or have this behavior add a buff called recently teleported
well to do it the easy way with no "has buff"
E. unit enters region
C. region = to region A
C. unit has behavior (does nothing at all)
A. teleport to region B
go to behaviors in data editor, add a behavior, name it whatever u want, no need to edit anything on it, because it does nothing at all what so ever, this is the thing you give your char. when he teleports. O ya duration will matter, so he can get back to teleporting later, so set duration to whatever you think is fair like 3 seconds, so they have time to get out of the region, and can teleport again if they want
Hope it works, if it don't maybe make an effect, that adds a behavior, then I know the behavior will only last a certain duration(its like stimpack), I dunno if its given through trigger if itll last forever or not. I would try to set it up to help you but cant till tomorrow, I can't get my own triggers to work lol. Maybe someone more pro will lend you a hand
I used this buff trick and it worked well, thanks. =)
Unfortunately another problem came up -> everytime I send a unit in my teleporter (A) it spawns, as it is supposed to be, at teleporter (B). The problem is that he immediately starts walking back to teleporter (A) since his actual target wasn't really teleporter (A) but some point i clicked behind it -> to make it walk through the region.
How can I make the unit stand still after getting ported or how can I remove every existing order?
/e: Ha, problem solved, was too easy to think about it. =)
Solution:
Action
- - Order (Triggering unit) to (Stop) (Replace Existing Order)
hey everyone,
I'm having a small issue concerning my teleport trigger. Ok, actually it's not directly the trigger since it's working fine but anyways, here's the problem:
I created this trigger:
Events - - Unit - Unit Enters (Region A)
Actions - - Unit - Move (Triggering unit) instantly to (Region B) (No Blend)
now the problem is that i created the same trigger the other way round. Because of that the unit is "trapped" in the teleport and keeps being ported from A to B and back to A. How can I set up the trigger that the unit first has to leave the region before it can step in again and be ported back. I could of course create another teleport for the way back but that doesn't fit in my map.
And the 2nd questions is: Can I add an effect that it looks like a protoss warp or something when the unit is getting ported?
Thanks, Lennywing
@Lennywing: Go
Im new to the editor and I usually use dumb long workarounds that people do 10x faster/easier, but anyway here is what I would do
I would have it add a buff or something, and when you have that buff you cant be teleported. so EVENT-unit enters region A CONDITION- unit doesn't have buff/behavior apply behavior to unit(u could just do that and end it) or have this behavior add a buff called recently teleported
@threeleven: Go
That's a good idea, thanks, but how do I actually do that? I'm not really familiar with the Data yet.
@Lennywing: Go
well to do it the easy way with no "has buff" E. unit enters region C. region = to region A C. unit has behavior (does nothing at all) A. teleport to region B
go to behaviors in data editor, add a behavior, name it whatever u want, no need to edit anything on it, because it does nothing at all what so ever, this is the thing you give your char. when he teleports. O ya duration will matter, so he can get back to teleporting later, so set duration to whatever you think is fair like 3 seconds, so they have time to get out of the region, and can teleport again if they want
@threeleven: Go
Hope it works, if it don't maybe make an effect, that adds a behavior, then I know the behavior will only last a certain duration(its like stimpack), I dunno if its given through trigger if itll last forever or not. I would try to set it up to help you but cant till tomorrow, I can't get my own triggers to work lol. Maybe someone more pro will lend you a hand
@threeleven: Go
I used this buff trick and it worked well, thanks. =)
Unfortunately another problem came up -> everytime I send a unit in my teleporter (A) it spawns, as it is supposed to be, at teleporter (B). The problem is that he immediately starts walking back to teleporter (A) since his actual target wasn't really teleporter (A) but some point i clicked behind it -> to make it walk through the region.
How can I make the unit stand still after getting ported or how can I remove every existing order?
/e: Ha, problem solved, was too easy to think about it. =) Solution:
Action - - Order (Triggering unit) to (Stop) (Replace Existing Order)