HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Question about computer hero skills...

12-01-2003, 07:51 AM#1
mmc
Is there any way to force computer controled hero to learn his skills automaticly?I try to create a random mission generator depending on player's hero.So,when i create a random enemy hero,give him an items,he wont learn his skills.
I know that i can write some big trigger that force this unit to learn specific skills but i wonder is there some other way.
And i got one more problem.When i create computer controled hero,force him to learn his skills ,he use it's in battle but sometimes he start crossing over the map without a reason.I know this is beacause of AI script but i'am sure there is a way to make him stand in constant position...
Any help or advise will be greatly appreciated...;-)
12-01-2003, 01:47 PM#2
Biflspud
He might be returning to his guard position. Unfortunately, Ignore Unit Guard Position specifically doesn't work on peons or heroes (or at least says it doesn't); there's probably not much you can do about that except give him an order to stick around (if you keep him on attack move, he won't idle long enough to go back).

As for a hero learning skills, they don't appear to use skill points they have when they're created. If you create, say, a level 4 hero, it won't actually use any of its skill points until it earns 5th level. So you can invest its skills using "Hero - Learn Ability" triggers, assuming your hero has any points to spare. When they earn a level, however, I'm pretty sure they spend the point as the AI sees fit.
12-01-2003, 02:38 PM#3
mmc
yes,i know that but in this case i create ,let's say, level 4 hero , give him (level5 Exp - 5) and create some unit that he must kill.i try this and i think he wont learn all of his skills again,but i'am not sure.However ,i don't think this way is best option.I hoped that someone will tell me a function from AI script that will force computer hero to learn his skills.i've searched AI-script files but i don't find such accessible function.
Anyway,thanks for the replay but it's isn't helped me much..
I still hope that someone known a solution for this problem...