HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Getting the Creep Level of a unit

10-08-2003, 05:59 AM#1
Grater
Is there any way at all to get the creep level of a unit? Or will I just have to make do with the food cost?
10-08-2003, 06:09 AM#2
Supra God CrK
i'm confused to what you are saying...because if it is what i think you are this is quite possibly the easiest answer ever. there is a level for all units if you open up the unit editor and select that unit. it says stats and than level.
example:

stats - level .....4
......................^ this is the part you can change
10-08-2003, 06:23 AM#3
Grater
Okay heres an example:
I want to write a trigger whichs gives 1 random special ability to creeps above 'lvl5' and 2 random special abilities to creeps above 'lvl8'

That is just an example, in reality I need to know the exact level so something like "make a dummy unit try to charm it and if it fails the creep is above lvl5' isn't really pratical.

Iow I need to know if there is a function which directely gets the creeps level.
10-08-2003, 08:18 AM#4
Zwan
Not sure on getting the level without looking at the editor, but you can probably do it with point values. You could set their point values to their level and call them on that perhaps.
10-08-2003, 12:54 PM#5
Vexorian
Quote:
Originally posted by Zwan
Not sure on getting the level without looking at the editor, but you can probably do it with point values. You could set their point values to their level and call them on that perhaps.


In fact, that's the way to do it.
10-08-2003, 01:09 PM#6
Grater
It's a pity I was trying to save work, rather than create more :). The supply cost will suffice, I'll just change a few like forest troll highpriest who costs 4 food and is level4 which is a bit out of whack with most the other lvl4 creeps who cost 3 food.

Thanks anyway.