• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Tavern + Teleport

Status
Not open for further replies.
Level 4
Joined
Mar 12, 2008
Messages
83
Hi,

  • teleport
    • Events
      • Unit - A unit enters region1
    • Conditions
      • ((Entering unit) is Hero) Equal to TRUE
    • Actions
      • Unit - Move (Entering unit) instantly to region2
You just make region at the tavern, and every unit which is a hero will be teleported. If you need this for a meele kinda map this will not be good. Because hero buying new hero will be teleported too. But if you need this to kinda hero chosing system this will be okz.
 
Level 3
Joined
Jun 3, 2010
Messages
28
That is very impractical and there are other simpler to understand ways to do it.


  • teleport
    • Events
      • Unit - Hero Tavern Sells a unit
    • Conditions
      • ((Sold unit) is Hero) Equal to TRUE
    • Actions
      • Unit - Move (Sold unit) instantly to region2
 
Level 4
Joined
Mar 12, 2008
Messages
83
I admit that is better. And that could work as a trigger for tavern in map, where a hero can actually buy another hero from tavern. And my trigger could not do that. But if you need it for a hero chosing system that not matter :p
 
Level 11
Joined
May 17, 2010
Messages
389
[trigger=]
Hero Selection
Events
Unit - A unit Sells a unit
Conditions
((Sold unit) is A Hero) Equal to True
Actions
Set PointVariable = (Center of TempRegion <gen>)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by (Picked player)
Unit - Move (Sold unit) instantly to PointVariable, facing 270.00 degrees
Selection - Clear selection for (Owner of (Sold unit))
Selection - Add (Sold unit) to selection for (Owner of (Sold unit))
Camera - Pan camera for (Owner of (Sold unit)) to PointVariable over 0.00 seconds
Game - Display to (All players) the text: ((Name of (Owner of (Sold unit))) + ( has picked + (Name of (Sold unit))))
Custom script: call RemoveLocation(udg_PointVariable)
[/trigger]

Variables Used: PointVariable = Point. You can set PointVariable to any name you want.
 
Status
Not open for further replies.
Top