| 10-31-2003, 05:00 PM | #1 |
I'm working on a trigger to have enemy heroes keep up with the average hero level of the players. I'm pretty sure I've got that trigger to work, but I'm hopeful there's some way to have enemy heroes learn skills at random. I.e., instead of "Hero - Learn Skill" where you have to specify the skill they learn, is there some means of getting them to dump a point into a random skill? I want this to be fairly generic; I suppose I could have specific triggers for each enemy hero and a random number generator for them learning the skills they possess, but it would be nice to have one trigger tell them all to get to learning. |
| 10-31-2003, 05:18 PM | #2 |
If the unit is owned by a computer, it will automaticly put it into a random spell. If that doesnt work, add all spells to a Ability array, then use 'Hero - Learn (AbillityArray[Random Number from 0 to 4)' Now just run this 5 times at each level, and it will work perfectly. |
| 10-31-2003, 08:00 PM | #3 |
I'll give that a whirl (didn't know that the CPU already took care of that, will test) if the computer can't figure it out. Thanks! Edit: No, they don't, at least not with Set Hero Level actions. Lemme try to level 'em up through some other means. |
