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
Schiffeverseken.w3x
Variables
Initialisierung
Begin
CreateShips
Abwaehlen
RemoveSpell
Start
RedsRound
gf
hf
leaderboard
LeaderboardRe
Attack1
UnitDie
Lose
Kartenspezifischen eigenen Skript-Code unten eingeben. Dieser Text wird in das Karten-Skript nach der Deklaration der Variablen und vor jeglichem Auslöser-Code eingefügt.
Name
Type
is_array
initial_value
Board
leaderboard
No
Gebiete
rect
Yes
Round
integer
No
Ships
integer
Yes
Begin
Events
Map initialization
Conditions
Actions
Camera - Pan camera for Player 1 (Red) to (Player 1 (Red) start location) over 0.01 seconds
Camera - Pan camera for Player 2 (Blue) to (Player 2 (Blue) start location) over 0.01 seconds
Selection - Select Commander 0000 <gen> for Player 1 (Red)
Selection - Select Commander 0003 <gen> for Player 2 (Blue)
Visibility - Disable fog of war
Visibility - Disable black mask
Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across (Playable map area)
Visibility - Create an initially Enabled visibility modifier for Player 2 (Blue) emitting Visibility across (Playable map area)
Floating Text - Create floating text that reads A1 at (Center of A1 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads A2 at (Center of A2 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads A3 at (Center of A3 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads A4 at (Center of A4 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads A5 at (Center of A5 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads A6 at (Center of A6 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads B1 at (Center of B1 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads C1 at (Center of C1 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads D1 at (Center of D1 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads E1 at (Center of E1 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
Floating Text - Create floating text that reads F1 at (Center of F1 <gen>) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
-------- Gebiete --------
CreateShips
Events
Unit - A unit Begins casting an ability
Conditions
Actions
Unit - Create 1 AirCraftCarrier (Cinematic) for (Triggering player) at (Target point of ability being cast) facing (Position of (Target unit of ability being cast))
Unit - Order (Triggering unit) to Stop .
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering player) Equal to Player 1 (Red)
Then - Actions
Set Variable Set Ships[1] = (Ships[1] + 1)
Selection - Select Commander 0000 <gen> for Player 1 (Red)
Else - Actions
Selection - Select Commander 0003 <gen> for Player 2 (Blue)
Set Variable Set Ships[2] = (Ships[2] + 1)
Abwaehlen
Events
Player - Player 1 (Red) Deselects a unit
Player - Player 2 (Blue) Deselects a unit
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering player) Equal to Player 1 (Red)
Then - Actions
Selection - Select Commander 0000 <gen> for (Triggering player)
Else - Actions
Selection - Select Commander 0003 <gen> for (Triggering player)
RemoveSpell
Events
Time - Every 0.25 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Ships[1] Equal to 5
Then - Actions
Unit - Remove Boat from Commander 0000 <gen>
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Ships[2] Equal to 5
Then - Actions
Unit - Remove Boat from Commander 0003 <gen>
Else - Actions
Start
Events
Time - Every 2.00 seconds of game time
Conditions
Ships[1] Equal to 5
Ships[2] Equal to 5
Actions
Trigger - Turn off RemoveSpell <gen>
Trigger - Turn off CreateShips <gen>
Set Variable Set Round = "1"
Trigger - Turn off (This trigger)
RedsRound
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Round Equal to 1
Then - Actions
Trigger - Turn on Lose <gen>
Game - Display to (All players) the text: Now Red can kill Blue's little crappy boats!
Unit - Remove Attack!!! from Commander 0003 <gen>
Unit - Add Attack!!! to Commander 0000 <gen>
Trigger - Turn off hf <gen>
Trigger - Turn on gf <gen>
Trigger - Turn off (This trigger)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Round Equal to 2
Then - Actions
Game - Display to (All players) the text: Now Blue can kill Red's little crappy boats!
Unit - Remove Attack!!! from Commander 0000 <gen>
Unit - Add Attack!!! to Commander 0003 <gen>
Trigger - Turn off gf <gen>
Trigger - Turn on hf <gen>
Trigger - Turn off (This trigger)
Else - Actions
gf
Events
Unit - A unit Stops casting an ability
Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
Actions
Set Variable Set Round = "2"
Trigger - Turn on RedsRound <gen>
hf
Events
Unit - A unit Stops casting an ability
Conditions
(Owner of (Triggering unit)) Equal to Player 2 (Blue)
Actions
Set Variable Set Round = "1"
Trigger - Turn on RedsRound <gen>
leaderboard
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Sunken Ships
Set Variable Set Board = (Last created leaderboard)
Leaderboard - Add Player 1 (Red) to Board with label ((Name of Player 1 (Red)) + ships) and value Ships[1]
Leaderboard - Add Player 2 (Blue) to Board with label ((Name of Player 2 (Blue)) + ships) and value Ships[2]
Leaderboard - Sort Board by Value in Descending order
Leaderboard - Show (Last created leaderboard)
LeaderboardRe
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Leaderboard - Change the value for Player 1 (Red) in Board to Ships[1]
Leaderboard - Change the value for Player 2 (Blue) in Board to Ships[2]
Attack1
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Attack!!!
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 1) Equal to 1
Then - Actions
Special Effect - Create a special effect at (Target point of ability being cast) using nuke.mdx
Wait 1.50 seconds
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at (Target point of ability being cast) using nukeeffekt.mdx
Unit Group - Pick every unit in (Units within 250.00 of (Target point of ability being cast) matching ((Owner of (Matching unit)) Equal to (Random player from (All enemies of (Triggering player).))).) and do (Kill (Picked unit))
Wait 0.50 seconds
Special Effect - Destroy (Last created special effect)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 2) Equal to 2
Then - Actions
If ((Owner of (Triggering unit)) Equal to Player 1 (Red)) then do (Create 1 A10Tunderbolt for Neutral Hostile at (Position of Commander 0000 <gen>) facing (Target point of ability being cast)) else do (Create 1 A10Tunderbolt for Neutral Hostile at (Position of Commander 0003 <gen>) facing (Position of (Triggering unit)))
Unit - Order (Last created unit) to Attack Ground . (Target point of ability being cast)
Wait 4.00 seconds
Unit - Kill (Last created unit)
Else - Actions
UnitDie
Events
Unit - A unit Dies
Conditions
Actions
Floating Text - Create floating text that reads Owned at (Position of (Triggering unit)) with Z offset 0 , using font size 10 , color ( 100 %, 100 %, 100 %), and 0 % transparency
If ((Owner of (Triggering unit)) Equal to Player 1 (Red)) then do (Set VariableSet Ships[1] = (Ships[1] - 1)) else do (Set VariableSet Ships[2] = (Ships[2] - 1))
Unit - Remove (Triggering unit) from the game
Lose
Events
Time - Every 0.25 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Ships[1] Equal to 0
Then - Actions
Game - Defeat Player 1 (Red) with the message: You lost all ships!Try again!
Game - Victory Player 2 (Blue) ( Show dialogs, Skip scores)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Ships[2] Equal to 0
Then - Actions
Game - Defeat Player 2 (Blue) with the message: You lost all ships!Try again!
Game - Victory Player 1 (Red) ( Show dialogs, Skip scores)
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.