this is an big problem

Status
Not open for further replies.
I believe you can do something like this with trigger editor. Open your trigger editor and create a new trigger, then create the rest as following:
  • Events
    • Unit - A unit Sells a unit
  • Conditions
    • ((Sold unit) is A Hero) Equal to True
  • Actions
    • Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by (Owner of (Sold unit))
This way, you can't have two units of the same hero.

You should also consider playing around with these fields in object editor:
'Techtree - Requirements'
'Techtree - Requirements - Tier 2'
'Techtree - Requirements - Tier 3'

and these fields in Gameplay Constants:
'Techtree - Dependancy Equivalents - Altar'
'Techtree - Dependancy Equivalents - Hero'
 
Last edited:
Alternatively, you can do it like this.

  • Player Group - Pick every player in (All players) and do (Actions)
    • Loop - Actions
      • Player - Limit training of Archimonde Warlock to 1 for (Picked player)
And update Techtree - Dependency Equivalents - Hero under Gameplay Constants.
 

Attachments

  • ScrGameplayConstants.png
    ScrGameplayConstants.png
    103.1 KB · Views: 19
  • ScrGameplayConstantsEditTechtreeDependencyEquivalentsHero.png
    ScrGameplayConstantsEditTechtreeDependencyEquivalentsHero.png
    30.7 KB · Views: 20
Status
Not open for further replies.
Back
Top