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

Create a unit when a unit buys an item

Status
Not open for further replies.
Level 15
Joined
Jul 9, 2008
Messages
1,552
your easyest way to do this is have the building sell units then have a trigger move the sold unit to where u wont it

  • Events
    • Unit - A unit Sells a unit
  • Conditions
    • (Unit-type of (Selling unit)) Equal to (your building)
  • Actions
    • Set temp_p = (where u want the unit to go)
    • Unit - Move (Sold unit) instantly to temp_p
    • Custom script: call RemoveLocation(udg_temp_p)

if u really want it to be items use the same concept with dummy items e.g fake tomes of agi/str/intel that dont do anything

have if then else if bought item = dummy footmen item
create footmen for owner of buying unit at location[/trigger]
 
Status
Not open for further replies.
Top