• 🏆 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!

[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