HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hero Limiting

11-21-2009, 11:22 PM#1
FootysMaXeD
Hey i've been trying to solve this problem for a while now, and everything i do i continue to result in Wc3 shutting down.

So i'm trying to use the same system that ladder uses to limit heroes.
I want to allow players to pick a hero at the begining, and then allow them to pick a second hero once they get Tier 4.

Game Constants:
Techtree - Dependency Equivalents - Altar Added my wisps here
Techtree - Dependency Equivalents - Hero Added all my heroes here
Techtree - Dependency Equivalents - Tier 1 Hall
Techtree - Dependency Equivalents - Tier 2 Hall Added the four different buildings that are Tier 4

Object Editor (For all my heroes):
Techtree - Requirements Any Alter
Techtree - Requirements - Tier 2 Any Alter, Any Tier 2 Hall
Techtree - Requirements - Tiers Used 2

When i pick a hero from a tavern, it works fine. If i then click any hero tavern again, my Wc3 will immedietly get shut down. This has been extremely frustrating trying to pinpoint the problem, and I havn't been able to get it to work the way I want. Same concept as ladder, just different heroes and different Tiers. I'm wondering if there should be anything in the Tier 1 Hall.
11-22-2009, 12:16 AM#2
Panto
How come you have wisps in your Dependency Equivalents - Altar?

I don't specifically see a reason for it to crash from this. Can you pull just the pertinent objects into a separate test-map to try out variations, like different amounts of Tiers Used and such? You could also post such a map here.

Also, what triggers are you running when the map crashes? It's possible the problem isn't where you think it is.
11-22-2009, 07:08 AM#3
FootysMaXeD
*cry* Thank you for pointing out this possibility: "It's possible the problem isn't where you think it is."

I tried it out in an old map of mine, before i put any of the initialization triggers or any game modes, and it works when i set Tier 2 for the 2nd hero.

I'm gonna spend a little time looking at my triggers and hopefully find the flaw. If not, I'll come back here with some triggers for you to look at :D.

Thanks,
FootysMaXeD