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
Sheep Hunted v1.0.w3x
Variables
Инициализация
Init
Init Nigers
---------------------------
Kills
---------------------------
Sheeps Spawn
Sheeps Anti Cheat
Sheeps Move
Sheeps Delete
---------------------------
Bot On
Move PL1
Move Up
Move Up Копировать
Move Down
Move Down Копировать
Move Right
Move Right Копировать
Move Left
Move Left Копировать
Move PL2
Move Up2
Move Up2 Копировать
Move Down2
Move Down2 Копировать
Move Right2
Move Right2 Копировать
Move Left2
Move Left2 Копировать
Move Timers
Timer 1
Timer 2
Attack PL 1
Attack PL 1
Attack PL 2
Attack PL 2
BOT!
Bot Move
Bot Attack
Bot Target
Anti Cheat
Anti Cheat
Введите ниже нестандартный код для указанной карты. Этот текст будет включен в код карты после объявления переменных и до кода любого триггера.
Name
Type
is_array
initial_value
Bot_Group
group
No
Bot_Target
unit
No
Degress
real
Yes
Kills
integer
Yes
Shrek
unit
Yes
Table
leaderboard
No
Timer
timer
Yes
Init
Events
Map initialization
Conditions
Actions
Destructible - Open Gate 0015 <gen>
Game - Set the time of day to 6.00
Game - Turn the day/night cycle Off
Visibility - Disable fog of war
Visibility - Disable black mask
Game - Display to (All players) for 60.00 seconds the text: Для передвижения используйте стрелки: |c00FFFF00вверх, вниз, влево, вправо|r.Для атаки нажмите |c00FFFF00Ф|r или английскую |c00FFFF00A|r.Для остановки движения нажмите |c00FFFF00Ы|r или английскую |c00FFFF00S|r.|c00FF0000PS:Для лучшей вероятности что вы ударите в движении нажмите сразу два раза кнопку атаки.|r
Init Nigers
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Инфо:
Set Variable Set Table = (Last created leaderboard)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 1 (Red) slot status) Equal to Is playing
Then - Actions
Unit - Create 1 . Охотник на овц for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing degrees
Set Variable Set Shrek[1] = (Last created unit)
Leaderboard - Add Player 1 (Red) to Table with label (Name of Player 1 (Red)) and value Kills[1]
Selection - Select Shrek[1] for Player 1 (Red)
Camera - Pan camera for Player 1 (Red) to (Position of Shrek[1]) over 0 seconds
Camera - Lock camera target for Player 1 (Red) to Shrek[1] , offset by ( 0 , 0 ) using Default rotation
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 2 (Blue) slot status) Equal to Is playing
Then - Actions
Unit - Create 1 . Охотник на овц for Player 2 (Blue) at (Player 2 (Blue) start location) facing Default building facing degrees
Set Variable Set Shrek[2] = (Last created unit)
Leaderboard - Add Player 2 (Blue) to Table with label (Name of Player 2 (Blue)) and value Kills[2]
Selection - Select Shrek[2] for Player 2 (Blue)
Camera - Pan camera for Player 2 (Blue) to (Position of Shrek[2]) over 0 seconds
Camera - Lock camera target for Player 2 (Blue) to Shrek[2] , offset by ( 0 , 0 ) using Default rotation
Else - Actions
Sound - Play MeGaMuZ <gen>
Kills
Events
Unit - A unit Dies
Conditions
(Owner of (Dying unit)) Equal to Player 12 (Brown)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 1 (Red)
Then - Actions
Set Variable Set Kills[1] = (Kills[1] + 1)
Leaderboard - Change the value for Player 1 (Red) in Table to Kills[1]
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Killing unit)) Equal to Player 2 (Blue)
Then - Actions
Set Variable Set Kills[2] = (Kills[2] + 1)
Leaderboard - Change the value for Player 2 (Blue) in Table to Kills[2]
Else - Actions
Sheeps Spawn
Events
Time - Every 2 seconds of game time
Conditions
(Number of living Sheep units owned by Player 12 (Brown)) Less than or equal to 20
Actions
Unit - Create 1 . Sheep for Player 12 (Brown) at (Random point in Sheep_Spawn <gen>) facing Default building facing degrees
Unit - Order (Last created unit) to Move To . (Random point in Sheep_Move <gen>)
Sheeps Anti Cheat
Events
Unit - A unit enters Sheep_Spawn <gen>
Conditions
Actions
Unit - Order (Entering unit) to Move To . (Random point in Sheep_Move <gen>)
Sheeps Move
Events
Time - Every 3.50 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in Sheep_Move <gen> owned by Player 12 (Brown)) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Move To . (Random point in Sheep_Move <gen>)
Sheeps Delete
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Sheep
Actions
Special Effect - Create a special effect at (Position of (Dying unit)) using Objects\Spawnmodels\Human\HumanLargeDeathExplode\HumanLargeDeathExplode.mdl
Special Effect - Destroy (Last created special effect)
Unit - Remove (Dying unit) from the game
Bot On
Events
Map initialization
Conditions
(Player 2 (Blue) controller) Equal to Computer
Actions
Wait 0.20 seconds
Player - Set name of Player 2 (Blue) to BoT_NooBkO
Leaderboard - Change the label for Player 2 (Blue) in Table to (Name of Player 2 (Blue))
Trigger - Turn on Bot_Move <gen>
Trigger - Turn on Bot_Attack <gen>
Move Up
Events
Player - Player 1 (Red) Presses the Up Arrow key
Conditions
Actions
Set Variable Set Degress[1] = "90.00"
Unit - Order Shrek[1] to Move To . ((Position of Shrek[1]) offset by 150.00 towards 90.00 degrees.)
Countdown Timer - Start Timer[1] as a Repeating timer that will expire in 0.50 seconds
Move Up Копировать
Events
Player - Player 1 (Red) Releases the Up Arrow key
Conditions
Actions
Countdown Timer - Pause Timer[1]
Move Down
Events
Player - Player 1 (Red) Presses the Down Arrow key
Conditions
Actions
Set Variable Set Degress[1] = "270.00"
Unit - Order Shrek[1] to Move To . ((Position of Shrek[1]) offset by 150.00 towards 270.00 degrees.)
Countdown Timer - Start Timer[1] as a Repeating timer that will expire in 0.50 seconds
Move Down Копировать
Events
Player - Player 1 (Red) Releases the Down Arrow key
Conditions
Actions
Countdown Timer - Pause Timer[1]
Move Right
Events
Player - Player 1 (Red) Presses the Right Arrow key
Conditions
Actions
Set Variable Set Degress[1] = "0.00"
Unit - Order Shrek[1] to Move To . ((Position of Shrek[1]) offset by 150.00 towards 0.00 degrees.)
Countdown Timer - Start Timer[1] as a Repeating timer that will expire in 0.50 seconds
Move Right Копировать
Events
Player - Player 1 (Red) Releases the Right Arrow key
Conditions
Actions
Countdown Timer - Pause Timer[1]
Move Left
Events
Player - Player 1 (Red) Presses the Left Arrow key
Conditions
Actions
Set Variable Set Degress[1] = "180.00"
Unit - Order Shrek[1] to Move To . ((Position of Shrek[1]) offset by 150.00 towards 180.00 degrees.)
Countdown Timer - Start Timer[1] as a Repeating timer that will expire in 0.50 seconds
Move Left Копировать
Events
Player - Player 1 (Red) Releases the Left Arrow key
Conditions
Actions
Countdown Timer - Pause Timer[1]
Move Up2
Events
Player - Player 2 (Blue) Presses the Up Arrow key
Conditions
Actions
Set Variable Set Degress[2] = "90.00"
Unit - Order Shrek[2] to Move To . ((Position of Shrek[2]) offset by 150.00 towards 90.00 degrees.)
Countdown Timer - Start Timer[2] as a Repeating timer that will expire in 0.50 seconds
Move Up2 Копировать
Events
Player - Player 2 (Blue) Releases the Up Arrow key
Conditions
Actions
Countdown Timer - Pause Timer[2]
Move Down2
Events
Player - Player 2 (Blue) Presses the Down Arrow key
Conditions
Actions
Set Variable Set Degress[2] = "270.00"
Unit - Order Shrek[2] to Move To . ((Position of Shrek[2]) offset by 150.00 towards 270.00 degrees.)
Countdown Timer - Start Timer[2] as a Repeating timer that will expire in 0.50 seconds
Move Down2 Копировать
Events
Player - Player 2 (Blue) Releases the Down Arrow key
Conditions
Actions
Countdown Timer - Pause Timer[2]
Move Right2
Events
Player - Player 2 (Blue) Presses the Right Arrow key
Conditions
Actions
Set Variable Set Degress[2] = "0.00"
Unit - Order Shrek[2] to Move To . ((Position of Shrek[2]) offset by 150.00 towards 0.00 degrees.)
Countdown Timer - Start Timer[2] as a Repeating timer that will expire in 0.50 seconds
Move Right2 Копировать
Events
Player - Player 2 (Blue) Releases the Right Arrow key
Conditions
Actions
Countdown Timer - Pause Timer[2]
Move Left2
Events
Player - Player 2 (Blue) Presses the Left Arrow key
Conditions
Actions
Set Variable Set Degress[2] = "180.00"
Unit - Order Shrek[2] to Move To . ((Position of Shrek[2]) offset by 150.00 towards 180.00 degrees.)
Countdown Timer - Start Timer[2] as a Repeating timer that will expire in 0.50 seconds
Move Left2 Копировать
Events
Player - Player 2 (Blue) Releases the Left Arrow key
Conditions
Actions
Countdown Timer - Pause Timer[2]
Timer 1
Events
Time - Timer[1] expires
Conditions
Actions
Unit - Order Shrek[1] to Move To . ((Position of Shrek[1]) offset by 150.00 towards Degress[1] degrees.)
Timer 2
Events
Time - Timer[2] expires
Conditions
Actions
Unit - Order Shrek[2] to Move To . ((Position of Shrek[2]) offset by 150.00 towards Degress[2] degrees.)
Attack PL 1
Events
Unit - A unit Starts the effect of an ability
Conditions
((Ability being cast) Equal to Атаковать) and ((Casting unit) Equal to Shrek[1])
Actions
Unit Group - Pick every unit in (Units within 70.00 of ((Position of Shrek[1]) offset by 95.00 towards (Facing of Shrek[1]) degrees.).) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Equal to Player 12 (Brown)
((Picked unit) is dead) Equal to False
Then - Actions
Unit - Cause Shrek[1] to damage (Picked unit) , dealing 100.00 damage of attack type Chaos and damage type Normal
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Picked unit) using Objects\Spawnmodels\Critters\Albatross\CritterBloodAlbatross.mdl
Special Effect - Destroy (Last created special effect)
Sound - Play Attack <gen> at 100.00 % volume, attached to (Picked unit)
Else - Actions
Wait 0.95 seconds
Unit - Order Shrek[1] to Stop .
Attack PL 2
Events
Unit - A unit Starts the effect of an ability
Conditions
((Ability being cast) Equal to Атаковать) and ((Casting unit) Equal to Shrek[2])
Actions
Unit Group - Pick every unit in (Units within 70.00 of ((Position of Shrek[2]) offset by 95.00 towards (Facing of Shrek[2]) degrees.).) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Equal to Player 12 (Brown)
((Picked unit) is dead) Equal to False
Then - Actions
Unit - Cause Shrek[2] to damage (Picked unit) , dealing 100.00 damage of attack type Chaos and damage type Normal
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Picked unit) using Objects\Spawnmodels\Critters\Albatross\CritterBloodAlbatross.mdl
Special Effect - Destroy (Last created special effect)
Sound - Play Attack <gen> at 100.00 % volume, attached to (Picked unit)
Else - Actions
Unit - Order Shrek[2] to Stop .
Bot Move
Events
Time - Every 3.01 seconds of game time
Conditions
Actions
Unit - Order Shrek[2] to Move To . ((Random point in Sheep_Move <gen>) offset by (Random real number between 100.00 and 300.00) towards (Random real number between 0 and 360.00) degrees.)
Bot Attack
Events
Time - Every 1.50 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units within 5000.00 of (Position of Shrek[2]).) and do (Actions)
Loop - Actions
Unit Group - Remove (Picked unit) from Bot_Group .
Unit Group - Pick every unit in (Units within 120.00 of (Position of Shrek[2]).) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Picked unit)) is an enemy of (Owner of Shrek[2]).) Equal to True
((Picked unit) is alive) Equal to True
Then - Actions
Unit Group - Add (Picked unit) to Bot_Group
Else - Actions
Trigger - Run Bot_Target <gen> (ignoring conditions)
Unit - Order Shrek[2] to Stop .
Unit - Make Shrek[2] face (Position of Bot_Target) over 0 seconds
Animation - Play Shrek[2] 's attack animation
Wait 0.05 seconds
Unit Group - Pick every unit in (Units within 70.00 of ((Position of Shrek[2]) offset by 95.00 towards (Facing of Shrek[2]) degrees.).) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Equal to Player 12 (Brown)
((Picked unit) is dead) Equal to False
Then - Actions
Unit - Cause Shrek[2] to damage (Picked unit) , dealing 100.00 damage of attack type Chaos and damage type Normal
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of (Picked unit) using Objects\Spawnmodels\Critters\Albatross\CritterBloodAlbatross.mdl
Special Effect - Destroy (Last created special effect)
Sound - Play Attack <gen> at 100.00 % volume, attached to (Picked unit)
Else - Actions
Unit - Order Shrek[2] to Stop .
Bot Target
Events
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Bot_Group is empty) Equal to False
Then - Actions
Set Variable Set Bot_Target = (Random unit from Bot_Group)
Else - Actions
Anti Cheat
Events
Unit - A unit enters Anti_Cheat <gen>
Conditions
((Entering unit) is A Hero) Equal to True
Actions
Unit - Move (Entering unit) instantly to (Random point in Anti_Cheat_Move <gen>)
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.