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
Sausager.w3x
Variables
Begin
Beginning
Movie
Timer
Game
SpeedUp
Gold
Death
AI Sausage
AI Sausage 2
AI Man
Board
UpdBoard
End
TheEnd
Victory
Timer End
Введите ниже нестандартный код для указанной карты. Этот текст будет включен в код карты после объявления переменных и до кода любого триггера.
Name
Type
is_array
initial_value
score
integer
Yes
timer
timer
No
unit
unit
Yes
win
dialog
No
Делаем юнита каждому игроку.
Beginning
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Visibility - Disable fog of war
Player Group - Make (All players) treat (All players) as an Ally with shared vision
Player Group - Make (All players) treat Player Group - Player 1 (Red) as an Enemy
Player Group - Make Player Group - Player 1 (Red) treat (All players) as an Enemy
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 1 (Red) controller) Equal to User
Then - Actions
Unit - Create 1 . Sausager for Player 1 (Red) at (Center of Sausager <gen>) facing 90.00 degrees
Selection - Select (Last created unit) for Player 1 (Red)
Set Variable Set unit[1] = (Last created unit)
Else - Actions
Unit - Create 1 . Sausager for Player 1 (Red) at (Center of Sausager <gen>) facing 90.00 degrees
Set Variable Set unit[1] = (Last created unit)
Trigger - Run AI_Sausage <gen> (ignoring conditions)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 2 (Blue) controller) Equal to User
Then - Actions
Unit - Create 1 . Man for Player 2 (Blue) at (Random point in StartPosition <gen>) facing 270.00 degrees
Selection - Select (Last created unit) for Player 2 (Blue)
Set Variable Set unit[2] = (Last created unit)
Else - Actions
Unit - Create 1 . Man for Player 2 (Blue) at (Random point in StartPosition <gen>) facing 270.00 degrees
Unit - Order (Last created unit) to Attack . unit[1]
Set Variable Set unit[2] = (Last created unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 3 (Teal) controller) Equal to User
Then - Actions
Unit - Create 1 . Man for Player 3 (Teal) at (Random point in StartPosition <gen>) facing 270.00 degrees
Selection - Select (Last created unit) for Player 3 (Teal)
Set Variable Set unit[3] = (Last created unit)
Else - Actions
Unit - Create 1 . Man for Player 3 (Teal) at (Random point in StartPosition <gen>) facing 270.00 degrees
Unit - Order (Last created unit) to Attack . unit[1]
Set Variable Set unit[3] = (Last created unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 4 (Purple) controller) Equal to User
Then - Actions
Unit - Create 1 . Man for Player 4 (Purple) at (Random point in StartPosition <gen>) facing 270.00 degrees
Selection - Select (Last created unit) for Player 4 (Purple)
Set Variable Set unit[4] = (Last created unit)
Else - Actions
Unit - Create 1 . Man for Player 4 (Purple) at (Random point in StartPosition <gen>) facing 270.00 degrees
Unit - Order (Last created unit) to Attack . unit[1]
Set Variable Set unit[4] = (Last created unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 5 (Yellow) controller) Equal to User
Then - Actions
Unit - Create 1 . Man for Player 5 (Yellow) at (Random point in StartPosition <gen>) facing 270.00 degrees
Selection - Select (Last created unit) for Player 5 (Yellow)
Set Variable Set unit[5] = (Last created unit)
Else - Actions
Unit - Create 1 . Man for Player 5 (Yellow) at (Random point in StartPosition <gen>) facing 270.00 degrees
Unit - Order (Last created unit) to Attack . unit[1]
Set Variable Set unit[5] = (Last created unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 6 (Orange) controller) Equal to User
Then - Actions
Unit - Create 1 . Man for Player 6 (Orange) at (Random point in StartPosition <gen>) facing 270.00 degrees
Selection - Select (Last created unit) for Player 6 (Orange)
Set Variable Set unit[6] = (Last created unit)
Else - Actions
Unit - Create 1 . Man for Player 6 (Orange) at (Random point in StartPosition <gen>) facing 270.00 degrees
Unit - Order (Last created unit) to Attack . unit[1]
Set Variable Set unit[6] = (Last created unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 7 (Green) controller) Equal to User
Then - Actions
Unit - Create 1 . Man for Player 7 (Green) at (Random point in StartPosition <gen>) facing 270.00 degrees
Selection - Select (Last created unit) for Player 7 (Green)
Set Variable Set unit[7] = (Last created unit)
Else - Actions
Unit - Create 1 . Man for Player 7 (Green) at (Random point in StartPosition <gen>) facing 270.00 degrees
Unit - Order (Last created unit) to Attack . unit[1]
Set Variable Set unit[7] = (Last created unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 8 (Pink) controller) Equal to User
Then - Actions
Unit - Create 1 . Man for Player 8 (Pink) at (Random point in StartPosition <gen>) facing 270.00 degrees
Selection - Select (Last created unit) for Player 8 (Pink)
Set Variable Set unit[8] = (Last created unit)
Else - Actions
Unit - Create 1 . Man for Player 8 (Pink) at (Random point in StartPosition <gen>) facing 270.00 degrees
Unit - Order (Last created unit) to Attack . unit[1]
Set Variable Set unit[8] = (Last created unit)
Countdown Timer - Start timer as a One-shot timer that will expire in 60.00 seconds
Countdown Timer - Create a timer window for timer with title Sausager Win
Countdown Timer - Show (Last created timer window)
Trigger - Run Movie <gen> (ignoring conditions)
Вступительный ролик
Movie
Events
Conditions
Actions
Cinematic - Turn subtitle display override On
Cinematic - Send transmission to (All players) from unit[2] named Man : Play No sound and display Hey, man, did you steal the sausages? . Modify duration: Set to 1.00 seconds and Wait
Cinematic - Send transmission to (All players) from unit[1] named Sausager : Play No sound and display No, I didn't... . Modify duration: Set to 1.00 seconds and Wait
Cinematic - Send transmission to (All players) from unit[3] named Man : Play No sound and display He is lying, get him! . Modify duration: Set to 1.00 seconds and Wait
Timer
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Scores
Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label (Name of Player 1 (Red)) and value score[0]
Leaderboard - Add Player 2 (Blue) to (Last created leaderboard) with label (Name of Player 2 (Blue)) and value score[1]
Leaderboard - Add Player 3 (Teal) to (Last created leaderboard) with label (Name of Player 3 (Teal)) and value score[2]
Leaderboard - Add Player 4 (Purple) to (Last created leaderboard) with label (Name of Player 4 (Purple)) and value score[3]
Leaderboard - Add Player 5 (Yellow) to (Last created leaderboard) with label (Name of Player 5 (Yellow)) and value score[4]
Leaderboard - Add Player 6 (Orange) to (Last created leaderboard) with label (Name of Player 6 (Orange)) and value score[5]
Leaderboard - Add Player 7 (Green) to (Last created leaderboard) with label (Name of Player 7 (Green)) and value score[6]
Leaderboard - Add Player 8 (Pink) to (Last created leaderboard) with label (Name of Player 8 (Pink)) and value score[7]
Trigger - Run UpdBoard <gen> (ignoring conditions)
SpeedUp
Events
Unit - A unit enters SpeedUp <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Sausager
Actions
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of (Triggering unit) using UI\Feedback\GoldCredit\GoldCredit.mdl
Player - Set (Owner of (Triggering unit)) . Current gold to (((Owner of (Triggering unit)) Current gold) - 1)
Unit - Set (Triggering unit) movement speed to ((Current movement speed of (Triggering unit)) + 1.00)
Special Effect - Destroy (Last created special effect)
Сосисочник получает золото, чтобы покупать вещи.
Gold
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Player - Add 1 to (Owner of unit[1]) . Current gold
Сосисочник умирает.
Death
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Sausager
Actions
Unit - Create 1 . Sausager for (Owner of (Killing unit)) at (Position of (Dying unit)) facing (Facing of (Dying unit)) degrees
Set Variable Set unit[1] = (Last created unit)
Selection - Select unit[1] for (Owner of (Killing unit))
Player Group - Make (All players) treat (Player group((Owner of (Killing unit)))) as an Enemy
Player Group - Make (Player group((Owner of (Killing unit)))) treat (All players) as an Enemy
Unit - Remove (Killing unit) from the game
ИИ сосисочника.
AI Sausage
Events
Time - Every 2.00 seconds of game time
Conditions
Or - Any (Conditions) are true
Conditions
((Owner of unit[1]) controller) Not equal to User
((Owner of unit[1]) slot status) Not equal to Is playing
Actions
Unit - Order unit[1] to Move To . (Random point in (Playable map area))
AI Sausage 2
Events
Time - Every 0.01 seconds of game time
Conditions
Or - Any (Conditions) are true
Conditions
((Owner of unit[1]) controller) Not equal to User
((Owner of unit[1]) slot status) Not equal to Is playing
Actions
Unit - Order unit[1] to Night Elf Warden - Blink . (Random point in (Playable map area))
ИИ Человека
AI Man
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units owned by (Random player from (All players controlled by a Computer player)) of type Man) and do (Order (Picked unit) to Attack.unit[1])
Обн Таблицы
UpdBoard
Events
Conditions
Actions
Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to score[0]
Leaderboard - Change the value for Player 2 (Blue) in (Last created leaderboard) to score[1]
Leaderboard - Change the value for Player 3 (Teal) in (Last created leaderboard) to score[2]
Leaderboard - Change the value for Player 4 (Purple) in (Last created leaderboard) to score[3]
Leaderboard - Change the value for Player 5 (Yellow) in (Last created leaderboard) to score[4]
Leaderboard - Change the value for Player 6 (Orange) in (Last created leaderboard) to score[5]
Leaderboard - Change the value for Player 7 (Green) in (Last created leaderboard) to score[6]
Leaderboard - Change the value for Player 8 (Pink) in (Last created leaderboard) to score[7]
TheEnd
Events
Time - Every 2 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
score[0] Equal to 3
Then - Actions
Game - Pause the game
Wait 1.00 seconds
Game - Victory Player 1 (Red) ( Show dialogs, Skip scores)
Game - Defeat Player 2 (Blue) with the message: You lose!
Game - Defeat Player 3 (Teal) with the message: You lose!
Game - Defeat Player 4 (Purple) with the message: You lose!
Game - Defeat Player 5 (Yellow) with the message: You lose!
Game - Defeat Player 6 (Orange) with the message: You lose!
Game - Defeat Player 7 (Green) with the message: You lose!
Game - Defeat Player 8 (Pink) with the message: You lose!
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
score[1] Equal to 3
Then - Actions
Game - Pause the game
Wait 1.00 seconds
Game - Victory Player 2 (Blue) ( Show dialogs, Skip scores)
Game - Defeat Player 1 (Red) with the message: You lose!
Game - Defeat Player 3 (Teal) with the message: You lose!
Game - Defeat Player 4 (Purple) with the message: You lose!
Game - Defeat Player 5 (Yellow) with the message: You lose!
Game - Defeat Player 6 (Orange) with the message: You lose!
Game - Defeat Player 7 (Green) with the message: You lose!
Game - Defeat Player 8 (Pink) with the message: You lose!
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
score[2] Equal to 3
Then - Actions
Game - Pause the game
Wait 1.00 seconds
Game - Victory Player 3 (Teal) ( Show dialogs, Skip scores)
Game - Defeat Player 2 (Blue) with the message: You lose!
Game - Defeat Player 1 (Red) with the message: You lose!
Game - Defeat Player 4 (Purple) with the message: You lose!
Game - Defeat Player 5 (Yellow) with the message: You lose!
Game - Defeat Player 6 (Orange) with the message: You lose!
Game - Defeat Player 7 (Green) with the message: You lose!
Game - Defeat Player 8 (Pink) with the message: You lose!
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
score[3] Equal to 3
Then - Actions
Game - Pause the game
Wait 1.00 seconds
Game - Victory Player 4 (Purple) ( Show dialogs, Skip scores)
Game - Defeat Player 2 (Blue) with the message: You lose!
Game - Defeat Player 3 (Teal) with the message: You lose!
Game - Defeat Player 1 (Red) with the message: You lose!
Game - Defeat Player 5 (Yellow) with the message: You lose!
Game - Defeat Player 6 (Orange) with the message: You lose!
Game - Defeat Player 7 (Green) with the message: You lose!
Game - Defeat Player 8 (Pink) with the message: You lose!
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
score[4] Equal to 3
Then - Actions
Game - Pause the game
Wait 1.00 seconds
Game - Victory Player 5 (Yellow) ( Show dialogs, Skip scores)
Game - Defeat Player 2 (Blue) with the message: You lose!
Game - Defeat Player 3 (Teal) with the message: You lose!
Game - Defeat Player 4 (Purple) with the message: You lose!
Game - Defeat Player 1 (Red) with the message: You lose!
Game - Defeat Player 6 (Orange) with the message: You lose!
Game - Defeat Player 7 (Green) with the message: You lose!
Game - Defeat Player 8 (Pink) with the message: You lose!
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
score[5] Equal to 3
Then - Actions
Game - Pause the game
Wait 1.00 seconds
Game - Victory Player 6 (Orange) ( Show dialogs, Skip scores)
Game - Defeat Player 2 (Blue) with the message: You lose!
Game - Defeat Player 3 (Teal) with the message: You lose!
Game - Defeat Player 4 (Purple) with the message: You lose!
Game - Defeat Player 5 (Yellow) with the message: You lose!
Game - Defeat Player 1 (Red) with the message: You lose!
Game - Defeat Player 7 (Green) with the message: You lose!
Game - Defeat Player 8 (Pink) with the message: You lose!
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
score[6] Equal to 3
Then - Actions
Game - Pause the game
Wait 1.00 seconds
Game - Victory Player 7 (Green) ( Show dialogs, Skip scores)
Game - Defeat Player 2 (Blue) with the message: You lose!
Game - Defeat Player 3 (Teal) with the message: You lose!
Game - Defeat Player 4 (Purple) with the message: You lose!
Game - Defeat Player 5 (Yellow) with the message: You lose!
Game - Defeat Player 6 (Orange) with the message: You lose!
Game - Defeat Player 1 (Red) with the message: You lose!
Game - Defeat Player 8 (Pink) with the message: You lose!
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
score[7] Equal to 3
Then - Actions
Game - Pause the game
Wait 1.00 seconds
Game - Victory Player 8 (Pink) ( Show dialogs, Skip scores)
Game - Defeat Player 2 (Blue) with the message: You lose!
Game - Defeat Player 3 (Teal) with the message: You lose!
Game - Defeat Player 4 (Purple) with the message: You lose!
Game - Defeat Player 5 (Yellow) with the message: You lose!
Game - Defeat Player 6 (Orange) with the message: You lose!
Game - Defeat Player 7 (Green) with the message: You lose!
Game - Defeat Player 1 (Red) with the message: You lose!
Else - Actions
Victory
Events
Time - Every 2 seconds of game time
Conditions
(Number of units in (Units of type Man)) Equal to 0
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of unit[1]) Equal to Player 1 (Red)
Then - Actions
Set Variable Set score[0] = (score[0] + 1)
Trigger - Run UpdBoard <gen> (ignoring conditions)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of unit[1]) Equal to Player 2 (Blue)
Then - Actions
Set Variable Set score[1] = (score[1] + 1)
Trigger - Run UpdBoard <gen> (ignoring conditions)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of unit[1]) Equal to Player 3 (Teal)
Then - Actions
Set Variable Set score[2] = (score[2] + 1)
Trigger - Run UpdBoard <gen> (ignoring conditions)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of unit[1]) Equal to Player 4 (Purple)
Then - Actions
Set Variable Set score[3] = (score[3] + 1)
Trigger - Run UpdBoard <gen> (ignoring conditions)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of unit[1]) Equal to Player 5 (Yellow)
Then - Actions
Set Variable Set score[4] = (score[4] + 1)
Trigger - Run UpdBoard <gen> (ignoring conditions)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of unit[1]) Equal to Player 6 (Orange)
Then - Actions
Set Variable Set score[5] = (score[5] + 1)
Trigger - Run UpdBoard <gen> (ignoring conditions)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of unit[1]) Equal to Player 7 (Green)
Then - Actions
Set Variable Set score[6] = (score[6] + 1)
Trigger - Run UpdBoard <gen> (ignoring conditions)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of unit[1]) Equal to Player 8 (Pink)
Then - Actions
Set Variable Set score[7] = (score[7] + 1)
Trigger - Run UpdBoard <gen> (ignoring conditions)
Else - Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Remove (Picked unit) from the game)
Countdown Timer - Destroy (Last created timer window)
Unit Group - Pick every unit in (Units of type Man) and do (Remove A001 from (Picked unit))
Trigger - Run Beginning <gen> (ignoring conditions)
Timer End
Events
Time - timer expires
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of unit[1]) Equal to Player 1 (Red)
Then - Actions
Set Variable Set score[0] = (score[0] + 1)
Trigger - Run UpdBoard <gen> (ignoring conditions)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of unit[1]) Equal to Player 2 (Blue)
Then - Actions
Set Variable Set score[1] = (score[1] + 1)
Trigger - Run UpdBoard <gen> (ignoring conditions)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of unit[1]) Equal to Player 3 (Teal)
Then - Actions
Set Variable Set score[2] = (score[2] + 1)
Trigger - Run UpdBoard <gen> (ignoring conditions)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of unit[1]) Equal to Player 4 (Purple)
Then - Actions
Set Variable Set score[3] = (score[3] + 1)
Trigger - Run UpdBoard <gen> (ignoring conditions)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of unit[1]) Equal to Player 5 (Yellow)
Then - Actions
Set Variable Set score[4] = (score[4] + 1)
Trigger - Run UpdBoard <gen> (ignoring conditions)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of unit[1]) Equal to Player 6 (Orange)
Then - Actions
Set Variable Set score[5] = (score[5] + 1)
Trigger - Run UpdBoard <gen> (ignoring conditions)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of unit[1]) Equal to Player 7 (Green)
Then - Actions
Set Variable Set score[6] = (score[6] + 1)
Trigger - Run UpdBoard <gen> (ignoring conditions)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of unit[1]) Equal to Player 8 (Pink)
Then - Actions
Set Variable Set score[7] = (score[7] + 1)
Trigger - Run UpdBoard <gen> (ignoring conditions)
Else - Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Remove (Picked unit) from the game)
Countdown Timer - Destroy (Last created timer window)
Trigger - Run Beginning <gen> (ignoring conditions)
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.