HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Having additional heroes?

08-09-2006, 07:28 AM#1
Ayn402
(Im moving my question to here)

Can you tell how I can have more then 3 heroes on the field at once? I dont find any option for it when messing with the altar on world editor and I think it would be so cool to have the blade master,farseer,cheiftan,and shadow hunter all out at once for example, the altar wont let me make anymore after 3 heroes are out

any tips on that please?
08-09-2006, 08:00 AM#2
Daelin
Yes... there is the melee initialization function "MeleeStartingHeroLimit" which calls the function "SetPlayerMaxHeroesAllowed". A parameter used is the variable bj_MELEE_HERO_LIMIT. Change the value of the variable BEFORE calling the function itself, and problem is solved. :)

~Daelin
08-09-2006, 11:36 AM#3
erwtenpeller
maybe try and alter it in gameplay consistants.
08-09-2006, 08:20 PM#4
Ayn402
I checked gameplay constants and it did not show me an option for that and I dont reallly understand triggering and intilizations...
08-09-2006, 08:38 PM#5
Alevice
You need to learn triggers for that. Or look for the melee inizialization trigger, and remove the action called "Melee - limit to 3 heroes" or something.
08-09-2006, 08:41 PM#6
Daelin
Ok, just like I said above, you need to modify a global variable. Here is how your map initialization should look.

Trigger:
Melee Initialization
Collapse Events
Map initialization
Conditions
Collapse Actions
Custom script: set bj_MELEE_HERO_LIMIT = 4
Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
Melee Game - Set starting resources (for all players)
Melee Game - Remove creeps and critters from used start locations (for all players)
Melee Game - Create starting units (for all players)
Melee Game - Run melee AI scripts (for computer players)
Melee Game - Enforce victory/defeat conditions (for all players)

Hope you can do it now.

~Daelin