• 🏆 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] need an AI(like in dota)

Status
Not open for further replies.
Level 7
Joined
Jun 4, 2006
Messages
127
i'm not sure if this is used in dota

1st Level
EVENT
- Unit - (Unit) finishes training a unit
CONDITIONS
- (Unit type of (Trained unit)) Equal to (unit)
- ((Player) controller) Equal to Computer
- Level of (Trained unit) Equal to 1
- Owner of (Trained unit) Equal to (Player)
ACTIONS
- Hero - Learn skill for (Trained Unit): (Skill)

Level 2 or up
EVENT
- Unit - Unit gains level
CONDITIONS
- ((Player) controller) Equal to Computer
- Level of (Triggering unit) Equal to (More than 1)
- Owner of (Triggering unit) Equal to (Player)
ACTIONS
- Hero - Learn Skill for (Triggering Unit): (Skill)

Continue Attack after casting
EVENT
- Unit - A unit Finishes casting an ability
CONDITIONS
- Owner of (Casting Unit) Equal to (Player)
- ((Player) controller) Equal to Computer
- Or any (Conditions) are true
- (Ability being casted) Equal to (Skill)
- THEN CONTINUE
ACTIONS
- Wait (seconds) (for reincarnation skill somthing like that)
- Order (Casting Unit) to Attack-Move to (Center/Random point of (Region))

Summoned Unit Attacks
EVENTS
- Every 1 second of the game
CONDITIONS
- Owner of (Picked Unit) Equal to (Player)
- ((Player) controller) Equal to Computer
ACTIONS
- Unit Group - Pick every (unit of type) and do (Unit - Order (Picked Unit) to Attack-Move to (random point/Center of (region))

Hero Retreat
EVENTS
- Unit is Attacked
CONDITIONS
- ((Attacked unit) is a hero) Equal to True
- (Owner of attacking unit) Equal to (Player)
- ((Player) controller) Equal to (Player)
ACTIONS
- Unit - Unit order (attacking unit to move to (center/random point on (region)
- Wait (seconds)
- Unit - Unit order (attacking unit to Attack-move to (center/random point on (region)
 
Status
Not open for further replies.
Top