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

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