673 posts Sunny Singapore, the lil' red dot joined
#1
aos ai
hmmm..... anyone mind making me an ai in an aos? i couldnt do the learning spells part cus all my spells are custom and the ones which appear there are the uneditted ones.. so... ya... anyone?
The learning spell parts is easy. I've done that with triggers. You don't need a script for that.
Events: A unit gains a level Conditions: or - multiple Owner of leveling hero eqaul to player4 Owner of leveling hero eqaul to player5 Owner of leveling hero eqaul to player6 Owner of leveling hero eqaul to player7 Level of leveling hero is 2 Actions: If all coniditions are true then conditions: unit type of leveling hero is "HeroName" learn skill for leveling hero "Skill" else new if all coniditions are true
And so on until you've covered all heroes you use. Then just copy the trigger and change the level of leveling hero to 3,4,5 and so on, and change skills.
Well, not if there are 250++ custom abilities, like in my map. I don't think it's a good idea to make hundreds of triggers/lines of code just for the learning.
Anybody knows a simple way to force computers to learn all learnable abilities?
In scripts there will be also hundreds of lines of code if you have 70 custom hero-types with 4*70=280 custom abilities. (Only hero abilities must be learned.)
An easy way to learn abilities if you want him to learn only 2 abilities until level 5 in proper order, then you simply write down the abilities in order of priority: ____E: Hero Gains a level ____C: Herotype of leveling hero equal to Demon Hunter ____A: Hero learn - Metamorphosis ______Hero learn - Immolation ______Hero learn - Evasion ______Hero learn - Mana burn This will cover all levels and the learning order will be here: ____Imm, Ev, Imm, Ev, Imm, Meta, Ev, MB, MB, MB This way you only have to cover hero-types! But you can cover specific heroes too if you write a condition for that like: ____C: leveling hero equal to my_spec_hero where my_spec_hero is a variable you have to set previously.