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!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
DotA-CB v1.0.w3x
Variables
Initialization
Melee Initialization
AI
Start AI
Attack Enemy
AI Neutral
AI Order
AI Revive
Defeat
Defeat
Name
Type
is_array
initial_value
AI_UNIT
unit
Yes
aiAttackEnemyHeroLevel
integer
No
creepPlayerGroup
force
No
userPlayers
player
Yes
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
Melee Game - Set starting resources (for all players)
Melee Game - Remove creeps and critters from used start locations (for all players)
Melee Game - Create starting units (for all players)
Melee Game - Run melee AI scripts (for computer players)
Melee Game - Enforce victory/defeat conditions (for all players)
Start AI
Events
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If ((Race of (Picked player)) Equal to Human) then do (Start melee AI script for (Picked player): human.ai (Unexpected type: 'aiscript')) else do (Do nothing)
If ((Race of (Picked player)) Equal to Orc) then do (Start melee AI script for (Picked player): orc.ai (Unexpected type: 'aiscript')) else do (Do nothing)
If ((Race of (Picked player)) Equal to Undead) then do (Start melee AI script for (Picked player): undead.ai (Unexpected type: 'aiscript')) else do (Do nothing)
If ((Race of (Picked player)) Equal to Night Elf) then do (Start melee AI script for (Picked player): elf.ai (Unexpected type: 'aiscript')) else do (Do nothing)
Attack Enemy
Events
Unit - A unit Gains a level
Conditions
((Owner of (Triggering unit)) is in creepPlayerGroup.) Equal to True
(Hero level of (Triggering unit)) Greater than or equal to aiAttackEnemyHeroLevel
Actions
-------- Send command 1, which tells the AI to start attacking the enemy --------
-------- (This is checked in the "Attack Enemy" condition in the AI Editor) --------
AI - Send (Owner of (Triggering unit)) the AI Command ( 1 , 0 )
AI Neutral
Events
Map initialization
Conditions
Actions
Hero - Set (Last created unit) Hero-level to 100 , Show level-up graphics
Hero - Learn skill for (Last created unit) : Night Elf Demon Hunter - Mana Burn
Hero - Learn skill for (Last created unit) : Night Elf Demon Hunter - Immolation
Hero - Learn skill for (Last created unit) : Night Elf Demon Hunter - Evasion
Hero - Learn skill for (Last created unit) : Night Elf Demon Hunter - Mana Burn
Hero - Learn skill for (Last created unit) : Night Elf Demon Hunter - Immolation
Hero - Learn skill for (Last created unit) : Night Elf Demon Hunter - Metamorphosis
Hero - Learn skill for (Last created unit) : Night Elf Demon Hunter - Evasion
Hero - Learn skill for (Last created unit) : Night Elf Demon Hunter - Mana Burn
Hero - Learn skill for (Last created unit) : Night Elf Demon Hunter - Immolation
Hero - Learn skill for (Last created unit) : Night Elf Demon Hunter - Evasion
Hero - Set (Last created unit) Hero-level to 100 , Show level-up graphics
Hero - Learn skill for (Last created unit) : Neutral Sea Witch - Forked Lightning
Hero - Learn skill for (Last created unit) : Neutral Sea Witch - Frost Arrows
Hero - Learn skill for (Last created unit) : Neutral Sea Witch - Mana Shield
Hero - Learn skill for (Last created unit) : Neutral Sea Witch - Forked Lightning
Hero - Learn skill for (Last created unit) : Neutral Sea Witch - Frost Arrows
Hero - Learn skill for (Last created unit) : Neutral Sea Witch - Tornado
Hero - Learn skill for (Last created unit) : Neutral Sea Witch - Mana Shield
Hero - Learn skill for (Last created unit) : Neutral Sea Witch - Forked Lightning
Hero - Learn skill for (Last created unit) : Neutral Sea Witch - Frost Arrows
Hero - Learn skill for (Last created unit) : Neutral Sea Witch - Mana Shield
Trigger - Turn on AI_Order <gen>
AI Order
Events
Time - Every 2 seconds of game time
Conditions
Actions
AI Revive
Events
Unit - A unit Dies
Conditions
And - All (Conditions) are true
Conditions
((Dying unit) is A Hero) Equal to True
(Owner of (Dying unit)) Equal to Neutral Hostile
Actions
Game - Display to (All players) the text: (((Name of (Owner of (Killing unit))) + has killed ) + ((Name of (Dying unit)) + for 1000 Gold!))
Hero - Instantly revive (Dying unit) at (Center of Region_004 <gen>) , Show revival graphics
Player - Add 1000 to (Owner of (Killing unit)) . Current gold
Defeat
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Dying unit) Equal to Emblem 0026 <gen>
Then - Actions
Player Group - Pick every player in (All allies of Player 1 (Red).) and do (Actions)
Loop - Actions
Game - Defeat Player 1 (Red) with the message: Defeat!
Game - Defeat (Picked player) with the message: Defeat!
Unit Group - Pick every unit in (Units owned by (Picked player).) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit Group - Pick every unit in (Units owned by Player 1 (Red).) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Dying unit) Equal to Emblem 0027 <gen>
Then - Actions
Player Group - Pick every player in (All allies of Player 4 (Purple).) and do (Actions)
Loop - Actions
Game - Defeat Player 4 (Purple) with the message: Defeat!
Game - Defeat (Picked player) with the message: Defeat!
Unit Group - Pick every unit in (Units owned by (Picked player).) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit Group - Pick every unit in (Units owned by Player 4 (Purple).) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Dying unit) Equal to Emblem 0028 <gen>
Then - Actions
Player Group - Pick every player in (All allies of Player 7 (Green).) and do (Actions)
Loop - Actions
Game - Defeat Player 7 (Green) with the message: Defeat!
Game - Defeat (Picked player) with the message: Defeat!
Unit Group - Pick every unit in (Units owned by (Picked player).) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit Group - Pick every unit in (Units owned by Player 7 (Green).) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Dying unit) Equal to Emblem 0029 <gen>
Then - Actions
Player Group - Pick every player in (All allies of Player 10 (Light Blue).) and do (Actions)
Loop - Actions
Game - Defeat Player 10 (Light Blue) with the message: Defeat!
Game - Defeat (Picked player) with the message: Defeat!
Unit Group - Pick every unit in (Units owned by (Picked player).) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Unit Group - Pick every unit in (Units owned by Player 10 (Light Blue).) and do (Actions)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.