• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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