• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[AI] aos ai

Status
Not open for further replies.
Level 10
Joined
Jul 2, 2004
Messages
690
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?
 
Level 5
Joined
Sep 14, 2004
Messages
66
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.
 
Level 2
Joined
Sep 4, 2004
Messages
30
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.

Any questions? :)
 
Status
Not open for further replies.
Top