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-NvU+ Orc v1.0.w3x
Variables
Initialization
Melee Initialization
AI
Set Up User Players
Create User Player
Start Melee AI
Attack Enemy
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code.
Name
Type
is_array
initial_value
aiAttackEnemyHeroLevel
integer
No
creepPlayerGroup
force
No
userCurrent
integer
No
userPlayers
player
Yes
userStartLocations
location
Yes
userStartRegions
location
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)
Set Up User Players
Events
Conditions
Actions
-------- Create each player --------
For each (Integer A) from 0 to 3 , do (Actions)
Loop - Actions
Set Variable Set userCurrent = (Integer A)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(userPlayers[userCurrent] slot status) Equal to Is playing
Then - Actions
-------- Occupied player slot, create player --------
Trigger - Run Create_User_Player <gen> (checking conditions)
Else - Actions
Create User Player
Events
Conditions
Actions
-------- Create the starting units --------
Melee Game - Create (Race of userPlayers[userCurrent]) starting units for userPlayers[userCurrent] at userStartLocations[userCurrent] ( Include Heroes)
-------- Start the normal melee AI if this is a computer --------
If ((userPlayers[userCurrent] controller) Equal to Computer) then do (Run Start_Melee_AI <gen> (checking conditions)) else do (Do nothing)
Start Melee AI
Events
Conditions
Actions
If ((Race of userPlayers[userCurrent]) Equal to Human) then do (Start melee AI script for userPlayers[userCurrent]: human.ai (Unexpected type: 'aiscript')) else do (Do nothing)
If ((Race of userPlayers[userCurrent]) Equal to Orc) then do (Start melee AI script for userPlayers[userCurrent]: orc.ai (Unexpected type: 'aiscript')) else do (Do nothing)
If ((Race of userPlayers[userCurrent]) Equal to Undead) then do (Start melee AI script for userPlayers[userCurrent]: undead.ai (Unexpected type: 'aiscript')) else do (Do nothing)
If ((Race of userPlayers[userCurrent]) Equal to Night Elf) then do (Start melee AI script for userPlayers[userCurrent]: 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 )
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.