• 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.

[Trigger] Order unit to buy a tavern hero

Status
Not open for further replies.
Level 2
Joined
Apr 1, 2008
Messages
10
subject pretty much says it all. i need a patron unit to be ordered to buy a hero at a tavern. is there a trigger that provides this functionality? thanks in advance.
 
Level 4
Joined
Feb 4, 2008
Messages
82
Yes you can do that, you can simply fake that effect, like ordering your unit to move to the tavern then make a triger to create a specific unit (whatever that unit is) at any position unit.

Triggers:
1- Moving a unit :
Isuue Order moving a unit targeting a point (located under unit in actions)
Issue Order moving a unit to a region (located under unit in actions)

2- Creating a unit:

Creat a unit of Type "XXX" facing "XXX" at "Center of playable map" (located under unit in actions)
 
Level 4
Joined
Mar 15, 2008
Messages
71
if you really want to make a certain player buy a certain unit then you could do this :
  • Actions
    • Unit - Order Some_Unit to move to Tavern_Unit
    • Wait until ((Region centered at (Position of Tavern_Unit) with size (200,200) contains Some_Unit), checking every 1 seconds
    • Selection - Select Tavern_Unit for (Owner of Some_Unit)
    • Game - Force (Owner of Some_Unit) to press the key [[[***Hotkey for buying that unit you want***]]]
 
Last edited:
Status
Not open for further replies.
Top