• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Create a unit when a unit buys an item

Status
Not open for further replies.
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.
Back
Top