• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Scroll of Town Portal

Status
Not open for further replies.
Level 5
Joined
Jun 24, 2009
Messages
118
Hello everyone. I have problem with item ''scroll of town teleport''. Effect I want is to teleport my hero to base (with casting time and invulnearablity) just clicking at my teleport item.The base is already created also as region. Can someone help me how to do this?
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
The easiest way would be this:

  • Melee Initialization
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (Item Effect)
    • Actions
      • Unit - Make (Triggering unit) Invulnerable
      • Wait 2.00 seconds
      • Set TempLoc = (Center of (Your Region))
      • Unit - Move (Triggering unit) instantly to TempLoc
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Unit - Make (Triggering unit) Vulnerable
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
I see ap0c already posted something, but here's the thing in a map.

http://www.hiveworkshop.com/forums/pastebin.php?id=tffsxh

It teleports you to the closest Town hall. You can remove that if you don't need it.

I also made it so that the unit becomes invulnerable when he starts channeling the ability, and he then channels it for 2 seconds before teleporting. Not sure what you wanted.
 
Level 5
Joined
Jun 24, 2009
Messages
118
Conditions
(Ability being cast) Equal to (Item Effect)

How can I do that? There's no aviablity to do this @ Ability Comparision.
 
Level 9
Joined
Dec 8, 2009
Messages
654
there is, u just have to change the hero into items. need a screenshot of it?
edit: heres the screenie of it:
 

Attachments

  • ability.png
    ability.png
    39.6 KB · Views: 222
Level 28
Joined
Jan 26, 2007
Messages
4,789
Okaayyy... so you made the item, right?
The item has an ability (yes, items have abilities :O), in your case it would be an instant cast ability (such as wind walk, taunt, ...).
When that ability is cast, do my trigger O_O

I've made it simple for you and created a map, if you need a complete tutorial on how to open the map and use the trigger, ask me.
(wow, a map below 10kB... you don't see that a lot).
 

Attachments

  • SimpleTeleport.w3x
    9.4 KB · Views: 95
Status
Not open for further replies.
Top