HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[Help] Converting creeps to heros- can it be done?

01-04-2008, 01:09 AM#1
Wensey
Heres the deal. I'm making a map where all your units are creeps, including heros. I've succesfully taken high level creeps, modified their abilites, attack and armor, and have them become purchasable from the Altar. I realize that they cant level- I actually don't want them to. I have given them inventory however.

The problem: I can't seem to make them be purchasable like regular heros: only one of each, and a new one each tier. They are bought from the altar by changing "units sold" under each race's altar.

I have already changed the gameplay constant for hero techtree requirements by removing the existing heros and putting in mine- is this not working because they are essentially still creeps? Is my only option creating custom heros that are the same as the creeps?
01-04-2008, 01:33 AM#2
rain9441
I think hero requirements are actually built into the hero. Heroes have a whole lot more techtree requirement options for them as well.

You can easily do what you want to do though, just any time one makes a "hero", and the number of "heroes" they have is equal to the limit of "heroes" then set the max # of unit types for all heroes to -1. If they havent reached the max, set max # of unit types for all heroes to 1.

Good luck on reviving though...
01-04-2008, 01:37 AM#3
Wensey
I think im just going to take the time and create custom heros... I think its best to get all the problems out of the way than having to make dozens of workarounds.

Thanks for the help though!
01-04-2008, 02:00 AM#4
rain9441
Well thats a dozen workarounds in itself, you cannot just take a custom unit and change the Stats - Is A Hero flag to true, you have to recreate every single unit as a new unit whose base is "some hero".

And remember the drawback that AI autoacquires targets and prioritizes heroes *dead last* every single time no matter what.
01-04-2008, 03:17 AM#5
Wensey
While we're here, how can I have it so that the "create random creep" creates creeps that are not just from the map I'm on? I'm using glacial thaw as a base map, and all the creeps that come are only from Glacial Thaw (Icecrown Glacier set). If I want, say, creeps from Ashenvale, how would I got about doing this? Replace Units under Advanced doesn't seem to work. Here's the trigger I'm using:

Trigger:
Unit - Create 1 (Random level (Level of (Trained unit)) creep unit-type) for (Owner of (Trained unit)) at (Position of (Trained unit)) facing Default building facing degrees

Tell me if you need the rest of the trigger, but that's the only part pertaining to creeps.
01-04-2008, 03:58 AM#6
TRouBLe_MaKeR
If it really spawns only creeps from Icecrown Glacier then I would suggest that you find the creeps that you want in the Object Editor, go to "Editor - Tilesets" and include Icecrown Glacier in there.. I think it should work