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

charge system

Status
Not open for further replies.
Level 3
Joined
Jun 17, 2012
Messages
23
hi guys i want to build the spell with charges
i have an idea
we need to build the unit like spell and tell hero to sell unit by hero
all units have recharge time and maximum stock.( maximum charge and recharge time)
i apply it but there is a problem
can't unavailable and available unit with trigger command on player action.
can someone help me?
 
Level 39
Joined
Feb 27, 2007
Messages
5,016
You mean where you would normally use "Disable Ability for Player" you can't because it's selling a unit? I think you can manually remove all stock of an item/unit from the hero with a trigger action, but O don't know what it's called.

Something else you could try is giving the unit sold a different unit as a tech tree requirement. Create one of these techtree units for the owning player on map startup and when you want to disable the ability just remove it. Create a new one when it should be un-disabled. Not confident this will work but it's an idea.
 
Status
Not open for further replies.
Top