• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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