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

How to sell a hero (to shop) withoute killing it?

Status
Not open for further replies.
Level 22
Joined
Jan 10, 2005
Messages
3,426
so, still having trouble with this huh? :p

events: unit begins casting an ability
conditions: ability comparison => ability is equal to 'that hero sell ability'
actions: remove 'unit type var for hero' from the game
player add property => add gold and wood (the amount u paid for last hero

ps: when u choose a hero, set it as a variable (so the trigger above works)

this rly should work. also create a new selector for the player ofcourse
 
Status
Not open for further replies.
Top