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

Gameplay Constants Hero Limit

Status
Not open for further replies.
Level 9
Joined
Mar 1, 2009
Messages
280
I have legendary heroes and regular heroes i want to limit the training regular heroes to 3.

i have like 100+ regular heroes and will add more, i want to add the heroes to "Gameplay Constants->Techtree - Dependency Equivalents - Hero" list in game play constants but there is some kinda of arbitrary limit of 50... i can't add more than 5 heroes to the list... how do i beat this?

some of these other threads suggest editiing in to an mpq editor? but in those same threads they admit their in a error when importing the file back into their wc3 map???

does any one know a work around for the arbitrary game play constants hero limit?
 
Level 9
Joined
Mar 1, 2009
Messages
280
i've been looking at the other post and the one that mentions it says shift-click doesnt work

tested it out my self and no it doesn't work, exiting the screen and going back it still cuts off any more from being added
 
Last edited:
Level 29
Joined
May 14, 2021
Messages
1,115
Go here:
World Edit Pic 1.jpg


Then here:
World Edit Pic 2.jpg


And, one last thing. Hit the mask button (Object Editor) and take a look here:
World Edit Pic 3.jpg


The "Techtree - Requirements" is important, especially if you want to add non-vanilla heroes (single player campaign) to be trainable on melee map. You need to do some research about it and set it right.
 
Level 9
Joined
Mar 1, 2009
Messages
280
the problem is techtree - dependency equivalents - hero will not allow more than 50 heroes.

daffa is right, i will right up my solution soon....
well no running into problems disabling all heroes disables my legendary heroes as well... they should always be available

is their a way to exclude these some heroes from the limit training of heroes action?

well crap i'm going to have to make a unit dummy copy of the legendary heroes and replace them with the dummy with the actual legendary.

I thought i knew what Daffa was talking about but i don't any one else got a clue?
 
Last edited:
Level 9
Joined
Mar 1, 2009
Messages
280
I figured it out, you have to add a dummy hero that also spawns in when you have finished training your hero, the dummy is removed immediately.
also remember the dummy hero has to be in game constants list
here are the triggers i used. {THESE TRIGGERS WORKED FOR ME}
basic hero limit trigger
  • HeroLimit
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Player - Set (Picked player).Food cap to 300
          • Player - Limit training of Heroes to 3 for (Picked player)
allows you to use the hero constants as long as the dummy is on the hero equivalents list in game constants
  • NumberOFHeroes
    • Events
      • Unit - A unit Begins training a unit
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Altar of Kings
          • (Unit-type of (Triggering unit)) Equal to Altar of Kings (elven)
          • (Unit-type of (Triggering unit)) Equal to Altar of Kings (Dwarven)
          • (Unit-type of (Triggering unit)) Equal to Altar of The Dark Iorn Clan (Dark Iorn)
          • (Unit-type of (Triggering unit)) Equal to Altar of Queens
          • (Unit-type of (Triggering unit)) Equal to Altar of Blood (blood elf)
          • (Unit-type of (Triggering unit)) Equal to Altar of Storms
          • (Unit-type of (Triggering unit)) Equal to Altar of Kalindor (kalindorn)
          • (Unit-type of (Triggering unit)) Equal to Altar of Nor (north)
          • (Unit-type of (Triggering unit)) Equal to Altar of the Fel (Mo'arg)
          • (Unit-type of (Triggering unit)) Equal to Altar of the Legion
          • (Unit-type of (Triggering unit)) Equal to Altar of the Loa (Tribunal)
          • (Unit-type of (Triggering unit)) Equal to Altar of the Lost Tribes
          • (Unit-type of (Triggering unit)) Equal to Altar of the Shadow Council (FelOrc)
          • (Unit-type of (Triggering unit)) Equal to Altar of the Twisted Nether (Ravanger)
          • (Unit-type of (Triggering unit)) Equal to Altar of Draenor (Heavens)
          • (Unit-type of (Triggering unit)) Equal to Altar of Forrunners (Guardian)
          • (Unit-type of (Triggering unit)) Equal to Altar of Flood (flood)
          • (Unit-type of (Triggering unit)) Equal to Altar of the Corrupted
          • (Unit-type of (Triggering unit)) Equal to Pools of Evolution (zerg)
          • (Unit-type of (Triggering unit)) Equal to Altar of Elders
          • (Unit-type of (Triggering unit)) Equal to Hallowed Alter (covenant)
          • (Unit-type of (Triggering unit)) Equal to Altar (Protoss NoPower)
          • (Unit-type of (Triggering unit)) Equal to Altar of Aiur (Protoss Khalai)
          • (Unit-type of (Triggering unit)) Equal to Altar of Cybros (Protoss Purifier)
          • (Unit-type of (Triggering unit)) Equal to Altar of Shakuras (Protoss Nerazim)
          • (Unit-type of (Triggering unit)) Equal to Altar of Slayn (Protoss Tal'darim)
          • (Unit-type of (Triggering unit)) Equal to Altar of Nerub
          • (Unit-type of (Triggering unit)) Equal to Altar of Darkness
          • (Unit-type of (Triggering unit)) Equal to Altar of the Depths
          • (Unit-type of (Triggering unit)) Equal to Altar of the Aspects (Bronze Dragon)
          • (Unit-type of (Triggering unit)) Equal to Altar of the Aspects (Dragon)
    • Actions
      • Set VariableSet TempPoint = (Position of (Triggering unit))
      • Unit - Create 1 AADUMMYHERO (All Heroes) for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
      • Unit - Remove (Last created unit) from the game
      • Custom script: call RemoveLocation (udg_TempPoint)
This is the triggers i did for legendary heroes, you actually train a dummy unit and then the actual hero replaces the dummy unit after it is trained.
  • Legendaries
    • Events
      • Unit - A unit enters (Entire map)
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Entering unit)) Equal to dummy (Malygos)
          • (Unit-type of (Entering unit)) Equal to dummy (Ysera)
          • (Unit-type of (Entering unit)) Equal to dummy (Alexstraza)
          • (Unit-type of (Entering unit)) Equal to dummy (Nozdomu)
          • (Unit-type of (Entering unit)) Equal to dummy (Neltherion)
          • (Unit-type of (Entering unit)) Equal to dummy (indomitable)
          • (Unit-type of (Entering unit)) Equal to dummy (indestructible)
          • (Unit-type of (Entering unit)) Equal to dummy (unstoppable)
          • (Unit-type of (Entering unit)) Equal to dummy (Har'koa)
          • (Unit-type of (Entering unit)) Equal to dummy (Hithiss)
          • (Unit-type of (Entering unit)) Equal to dummy (SilkDancer)
          • (Unit-type of (Entering unit)) Equal to dummy (sporwing)
          • (Unit-type of (Entering unit)) Equal to dummy (Akunda)
          • (Unit-type of (Entering unit)) Equal to dummy (CaveLord)
          • (Unit-type of (Entering unit)) Equal to dummy (Spider King)
          • (Unit-type of (Entering unit)) Equal to dummy (Zoltan)
          • (Unit-type of (Entering unit)) Equal to dummy (Thrall)
          • (Unit-type of (Entering unit)) Equal to dummy (Grom)
          • (Unit-type of (Entering unit)) Equal to dummy (Samuro)
          • (Unit-type of (Entering unit)) Equal to dummy (Cairne)
          • (Unit-type of (Entering unit)) Equal to dummy (Drak'thul)
          • (Unit-type of (Entering unit)) Equal to dummy (Vol'jin)
          • (Unit-type of (Entering unit)) Equal to dummy (Cenarius)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Entering unit)) Equal to dummy (Malygos)
        • Then - Actions
          • Unit - Replace (Entering unit) with a Malygos (Dragon) using The old unit's relative life and mana
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Entering unit)) Equal to dummy (Alexstraza)
            • Then - Actions
              • Unit - Replace (Entering unit) with a Alexstrasza (Dragon) using The old unit's relative life and mana
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Unit-type of (Entering unit)) Equal to dummy (Ysera)
                • Then - Actions
                  • Unit - Replace (Entering unit) with a Ysera (Dragon) using The old unit's relative life and mana
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Unit-type of (Entering unit)) Equal to dummy (Nozdomu)
                    • Then - Actions
                      • Unit - Replace (Entering unit) with a Nozdormu (Dragon) using The old unit's relative life and mana
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Unit-type of (Entering unit)) Equal to dummy (Neltherion)
                        • Then - Actions
                          • Unit - Replace (Entering unit) with a Neltharion (Dragon) using The old unit's relative life and mana
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Unit-type of (Entering unit)) Equal to dummy (indomitable)
                            • Then - Actions
                              • Unit - Replace (Entering unit) with a The Indomitable using The old unit's relative life and mana
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Unit-type of (Entering unit)) Equal to dummy (indestructible)
                                • Then - Actions
                                  • Unit - Replace (Entering unit) with a The Indestructible using The old unit's relative life and mana
                                • Else - Actions
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • (Unit-type of (Entering unit)) Equal to dummy (unstoppable)
                                    • Then - Actions
                                      • Unit - Replace (Entering unit) with a The Unstoppable using The old unit's relative life and mana
                                    • Else - Actions
                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        • If - Conditions
                                          • (Unit-type of (Entering unit)) Equal to dummy (SilkDancer)
                                        • Then - Actions
                                          • Unit - Replace (Entering unit) with a The Silk Dancer (Loa) using The old unit's relative life and mana
                                        • Else - Actions
                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            • If - Conditions
                                              • (Unit-type of (Entering unit)) Equal to dummy (Hithiss)
                                            • Then - Actions
                                              • Unit - Replace (Entering unit) with a Sky Serpent (Tribunal) using The old unit's relative life and mana
                                            • Else - Actions
                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                • If - Conditions
                                                  • (Unit-type of (Entering unit)) Equal to dummy (Har'koa)
                                                • Then - Actions
                                                  • Unit - Replace (Entering unit) with a Snow Stalker (Loa) using The old unit's relative life and mana
                                                • Else - Actions
                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                    • If - Conditions
                                                      • (Unit-type of (Entering unit)) Equal to dummy (Akunda)
                                                    • Then - Actions
                                                      • Unit - Replace (Entering unit) with a Akunda (Loa) using The old unit's relative life and mana
                                                    • Else - Actions
                                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                        • If - Conditions
                                                          • (Unit-type of (Entering unit)) Equal to dummy (sporwing)
                                                        • Then - Actions
                                                          • Unit - Replace (Entering unit) with a Spore Wing (Loa LostOnes) using The old unit's relative life and mana
                                                        • Else - Actions
                                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                            • If - Conditions
                                                              • (Unit-type of (Entering unit)) Equal to dummy (CaveLord)
                                                            • Then - Actions
                                                              • Unit - Replace (Entering unit) with a Lokhano (Loa) using The old unit's relative life and mana
                                                            • Else - Actions
                                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                • If - Conditions
                                                                  • (Unit-type of (Entering unit)) Equal to dummy (ForestLord)
                                                                • Then - Actions
                                                                  • Unit - Replace (Entering unit) with a The Forest Lord (kalindorn) using The old unit's relative life and mana
                                                                • Else - Actions
                                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                    • If - Conditions
                                                                      • (Unit-type of (Entering unit)) Equal to dummy (Avina)
                                                                    • Then - Actions
                                                                      • Unit - Replace (Entering unit) with a Mother Of Flight (kalindorn) using The old unit's relative life and mana
                                                                    • Else - Actions
                                                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                        • If - Conditions
                                                                          • (Unit-type of (Entering unit)) Equal to dummy (GreatBoar)
                                                                        • Then - Actions
                                                                          • Unit - Replace (Entering unit) with a The Great Boar (Loa) using The old unit's relative life and mana
                                                                        • Else - Actions
                                                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                            • If - Conditions
                                                                              • (Unit-type of (Entering unit)) Equal to dummy (Spider King)
                                                                            • Then - Actions
                                                                              • Unit - Replace (Entering unit) with a Spider King (Nerubian) using The old unit's relative life and mana
                                                                            • Else - Actions
                                                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                • If - Conditions
                                                                                  • (Unit-type of (Entering unit)) Equal to dummy (Zoltan)
                                                                                • Then - Actions
                                                                                  • Unit - Replace (Entering unit) with a Zoltan (Nerubian) using The old unit's relative life and mana
                                                                                • Else - Actions
                                                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                    • If - Conditions
                                                                                      • (Unit-type of (Entering unit)) Equal to dummy (Thrall)
                                                                                    • Then - Actions
                                                                                      • Unit - Replace (Entering unit) with a Thrall using The old unit's relative life and mana
                                                                                    • Else - Actions
                                                                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                        • If - Conditions
                                                                                          • (Unit-type of (Entering unit)) Equal to dummy (Grom)
                                                                                        • Then - Actions
                                                                                          • Unit - Replace (Entering unit) with a Grommash Hellscream using The old unit's relative life and mana
                                                                                        • Else - Actions
                                                                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                            • If - Conditions
                                                                                              • (Unit-type of (Entering unit)) Equal to dummy (Samuro)
                                                                                            • Then - Actions
                                                                                              • Unit - Replace (Entering unit) with a Samuro using The old unit's relative life and mana
                                                                                            • Else - Actions
                                                                                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                                • If - Conditions
                                                                                                  • (Unit-type of (Entering unit)) Equal to dummy (Cairne)
                                                                                                • Then - Actions
                                                                                                  • Unit - Replace (Entering unit) with a Cairne Bloodhoof using The old unit's relative life and mana
                                                                                                • Else - Actions
                                                                                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                                    • If - Conditions
                                                                                                      • (Unit-type of (Entering unit)) Equal to dummy (Drak'thul)
                                                                                                    • Then - Actions
                                                                                                      • Unit - Replace (Entering unit) with a Stormreaver Chieftain (Horde) using The old unit's relative life and mana
                                                                                                    • Else - Actions
                                                                                                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                                        • If - Conditions
                                                                                                          • (Unit-type of (Entering unit)) Equal to dummy (Vol'jin)
                                                                                                        • Then - Actions
                                                                                                          • Unit - Replace (Entering unit) with a Darkspear Chieftain (horde) using The old unit's relative life and mana
                                                                                                        • Else - Actions
                                                                                                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                                                                                            • If - Conditions
                                                                                                              • (Unit-type of (Entering unit)) Equal to dummy (Cenarius)
                                                                                                            • Then - Actions
                                                                                                              • Unit - Replace (Entering unit) with a Demigod (Corrupted) using The old unit's relative life and mana
                                                                                                            • Else - Actions
so many legendaries i had to make a second trigger for the rest
  • Legendaries2
    • Events
      • Unit - A unit enters (Entire map)
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Entering unit)) Equal to dummy (Illidan)
          • (Unit-type of (Entering unit)) Equal to dummy (Malfurion)
          • (Unit-type of (Entering unit)) Equal to dummy (Tyranda)
          • (Unit-type of (Entering unit)) Equal to dummy (Kil'jaden)
          • (Unit-type of (Entering unit)) Equal to dummy (Archimond)
          • (Unit-type of (Entering unit)) Equal to dummy (Sargeras)
          • (Unit-type of (Entering unit)) Equal to dummy (Mannoroth)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Entering unit)) Equal to dummy (Illidan)
        • Then - Actions
          • Unit - Replace (Entering unit) with a Illidan (Evil) using The old unit's relative life and mana
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Entering unit)) Equal to dummy (Malfurion)
            • Then - Actions
              • Unit - Replace (Entering unit) with a Malfurion using The old unit's relative life and mana
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Unit-type of (Entering unit)) Equal to dummy (Tyranda)
                • Then - Actions
                  • Unit - Replace (Entering unit) with a Tyrande using The old unit's relative life and mana
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Unit-type of (Entering unit)) Equal to dummy (Sargeras)
                    • Then - Actions
                      • Unit - Replace (Entering unit) with a Sargeras (Legion) using The old unit's relative life and mana
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Unit-type of (Entering unit)) Equal to dummy (Archimond)
                        • Then - Actions
                          • Unit - Replace (Entering unit) with a Archimonde (Legion) using The old unit's relative life and mana
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Unit-type of (Entering unit)) Equal to dummy (Kil'jaden)
                            • Then - Actions
                              • Unit - Replace (Entering unit) with a Master Warlock using The old unit's relative life and mana
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • (Unit-type of (Entering unit)) Equal to dummy (Mannoroth)
                                • Then - Actions
                                  • Unit - Replace (Entering unit) with a Mannoroth (Legion) using The old unit's relative life and mana
                                • Else - Actions
                                  • Do nothing
 
Status
Not open for further replies.
Top