How do you create an effect item that teleports the caster to a targeted unit or structure?, Lets just say for an example a Fountain , If somebody could explain me through a Step by Step Demo , thanks
I cant give you step by step but a little hint
First creating and using an item....well there are enough post about that and there is this
(PS: this is awesome....i started to build my heros like this and the inventory)
for the teleport part:
there is an Effect-type called Teleport which you can use.
The item would be of type Target.
Basicly thats all. setting the fields of them depends on how you use them.
I'm already good at making Items with Carry Behavior and Instant Potions , the question is how do you create an Effect that Teleports the Unit to a targeted Structure or Unit? Thanks.
I just created on telepoert item....took me 20 minutes.
Create a Effect of type Teleport. Set: Effect: Teleport Falgs +: (I unchecked all. set it the way you need) Effect: Unit +: (None):Caster Target: Target +: (None):Target Point (in your case target unit)
If you want to specify a unit you will have to set Effect: Validators as DrSuperEvil said.
Create a Item of type Target. Set: Basic: Class: Misc (set it so you can pick it up with your hero/unit) Basic: Effect: Teleport (see above) Basic: Flags: Transient Basic: Range: 15 (depends on how far you want to teleport for all around the map set to 500) Basic: Face: TeleButton (created one for that, so you have to do it too)
So now i have a item that can teleport my unit. clicking on the item, the cursor changes and then clicking on the location....simple as that.
I'm not at home, so I cant check. meaning everthing I say could be totally wrong XD.
Let's call the unit you want to teleport A and a dummy unit(no actor, no radius, etc.) B.
The concept is to create B at the location of A, then teleport A. teleporting back is just a matter of finding B, teleporting A to location of B and then destroying B.
The main problem is finding B, espacially if you have more then one unit A.
"Linking" two units together is kinda hard I can explain my idea, but it is complicated and I'm not sure if it works.
For your teleporting ability it would look like this:
you have two buffs: Buff 1 = B_Teleport ; Buff 2 = B_Teleport_Back_Dummy
B_Teleport has Effect - Initial: Create B
B_Teleport Effect - Periodic: Set of Teleport Back, remove behaviours, destroy B
The Set has a validator checking if unit A has the Buff "B_Teleport_Back_Dummy".
The Effect "Teleport Back" has Target: (Create B):Target
So now your abilities would work like this:
Teleport is a Set of Apply B_Teleport and Teleport to Target.
Your recall ability is simply applying B_Teleport_Back_Dummy.
The idea is that the periodic buff allows you to keep the effect tree, thats why you can use (Create B):Target as the target of your recall.
As I mentioned before: I cant check, I havent tried, this is just an idea.
Well easier then expected....no dummy unit needed. periodic buff and that to keep the effect-tree, but thats all.
I attached my example.
I made the abilites in 10 minutes and it didnt work. then spend 50 minutes to find out there is target called Origin Point XD.
How do you create an effect item that teleports the caster to a targeted unit or structure?, Lets just say for an example a Fountain , If somebody could explain me through a Step by Step Demo , thanks
I cant give you step by step but a little hint
First creating and using an item....well there are enough post about that and there is this
(PS: this is awesome....i started to build my heros like this and the inventory)
for the teleport part:
there is an Effect-type called Teleport which you can use.
The item would be of type Target.
Basicly thats all. setting the fields of them depends on how you use them.
Do not forget a Unit Type or Unit Filters validator to specify targets better.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
I'm already good at making Items with Carry Behavior and Instant Potions , the question is how do you create an Effect that Teleports the Unit to a targeted Structure or Unit? Thanks.
I just created on telepoert item....took me 20 minutes.
Create a Effect of type Teleport. Set:
Effect: Teleport Falgs +: (I unchecked all. set it the way you need)
Effect: Unit +: (None):Caster
Target: Target +: (None):Target Point (in your case target unit)
If you want to specify a unit you will have to set Effect: Validators as DrSuperEvil said.
Create a Item of type Target. Set:
Basic: Class: Misc (set it so you can pick it up with your hero/unit)
Basic: Effect: Teleport (see above)
Basic: Flags: Transient
Basic: Range: 15 (depends on how far you want to teleport for all around the map set to 500)
Basic: Face: TeleButton (created one for that, so you have to do it too)
So now i have a item that can teleport my unit. clicking on the item, the cursor changes and then clicking on the location....simple as that.
@Shieldnutzz: Go
The Settings in my Editor are different , Hopefully in my part that helped thanks :)
@Shieldnutzz: Go
How about an Item that Recalls him back to his previous position? :) Thanks anyways mate.
@Mugen245: Go
I'm not at home, so I cant check. meaning everthing I say could be totally wrong XD.
Let's call the unit you want to teleport A and a dummy unit(no actor, no radius, etc.) B.
The concept is to create B at the location of A, then teleport A. teleporting back is just a matter of finding B, teleporting A to location of B and then destroying B.
The main problem is finding B, espacially if you have more then one unit A.
"Linking" two units together is kinda hard I can explain my idea, but it is complicated and I'm not sure if it works.
For your teleporting ability it would look like this:
you have two buffs: Buff 1 = B_Teleport ; Buff 2 = B_Teleport_Back_Dummy
B_Teleport has Effect - Initial: Create B
B_Teleport Effect - Periodic: Set of Teleport Back, remove behaviours, destroy B
The Set has a validator checking if unit A has the Buff "B_Teleport_Back_Dummy".
The Effect "Teleport Back" has Target: (Create B):Target
So now your abilities would work like this:
Teleport is a Set of Apply B_Teleport and Teleport to Target.
Your recall ability is simply applying B_Teleport_Back_Dummy.
The idea is that the periodic buff allows you to keep the effect tree, thats why you can use (Create B):Target as the target of your recall.
As I mentioned before: I cant check, I havent tried, this is just an idea.
@Shieldnutzz: Go
I'll wait for the right time best thanks mate :)
Well easier then expected....no dummy unit needed. periodic buff and that to keep the effect-tree, but thats all.
I attached my example.
I made the abilites in 10 minutes and it didnt work. then spend 50 minutes to find out there is target called Origin Point XD.
@Shieldnutzz: Go
I got my Item working with Origin Point , thanks mate :)