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

2 questions

Status
Not open for further replies.
Level 3
Joined
Jun 3, 2013
Messages
34
By what you mean dissappear, you mean remove?
  • Hero Remove when sold
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • ((Sold unit) is A Hero) Equal to True
    • Actions
      • Unit - Remove (Sold unit) from the game
Or moving it somewhere...
  • Hero Move to Base or something...
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • ((Sold unit) is A Hero) Equal to True
    • Actions
      • Set udg_YourRegion = (A region where you want to move the Hero)
      • Unit - Move (Sold unit) instantly to (udg_YourRegion)
      • Custom script: call RemoveLocation (udg_YourRegion)
As for the Earthquake, it only slows units and deals damage to buildings.
 
Level 5
Joined
Jul 17, 2013
Messages
90
By what you mean dissappear, you mean remove?
  • Hero Remove when sold
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • ((Sold unit) is A Hero) Equal to True
    • Actions
      • Unit - Remove (Sold unit) from the game
Or moving it somewhere...
  • Hero Move to Base or something...
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • ((Sold unit) is A Hero) Equal to True
    • Actions
      • Set udg_YourRegion = (A region where you want to move the Hero)
      • Unit - Move (Sold unit) instantly to (udg_YourRegion)
      • Custom script: call RemoveLocation (udg_YourRegion)
As for the Earthquake, it only slows units and deals damage to buildings.
I didnt meant that. When I buy the hero the icon of the hero is still inside the tavern
 
Level 3
Joined
Jun 3, 2013
Messages
34
Jimaras5690 You should set the Limit of that Sold Unit to 0 after it would be sold. NOT 1.
Infinite limit would be -1.
 
Level 3
Joined
Jun 3, 2013
Messages
34
Here's one of the ways on how it can be done, there's many ways though.
  • Hero Limit
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • ((Sold unit) is A Hero) Equal to True
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Player - Limit training of (Unit-type of (Sold unit)) to 0 for (Picked player)
 
Status
Not open for further replies.
Top