🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!
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
(8)Seahunter.w3x
Variables
Initialization
Untitled Trigger 001
Cam Reset
Fire Cannon
Kill Missile
Untitled Trigger 002
Untitled Trigger 003
Untitled Trigger 004
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
MoveDestination
location
Yes
PlayerShip
unit
Yes
Starfleet
force
No
TerraKinetics
force
No
Untitled Trigger 001
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Player Group - Add Player 1 (Red) to Starfleet
Player Group - Add Player 5 (Yellow) to Starfleet
Player Group - Add Player 6 (Orange) to Starfleet
Player Group - Add Player 7 (Green) to Starfleet
Player Group - Add Player 2 (Blue) to TerraKinetics
Player Group - Add Player 4 (Purple) to TerraKinetics
Player Group - Add Player 9 (Gray) to TerraKinetics
Player Group - Add Player 10 (Light Blue) to TerraKinetics
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Unit - Create 1 . Starboat for (Picked player) at ((Picked player) start location) facing Default building facing degrees
Visibility - Create an initially Enabled visibility modifier for (Picked player) emitting Visibility across (Playable map area)
Player - Set (Picked player) . Current gold to 5
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
Loop - Actions
Set Variable Set PlayerShip[(Player number of (Owner of (Picked unit)))] = (Picked unit)
Set Variable Set MoveDestination[(Player number of (Owner of (Picked unit)))] = (Position of (Picked unit))
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
Loop - Actions
Hero - Create Ammunition and give it to (Picked unit)
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Iceberg)) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Patrol To . (Random point in Region_002 <gen>)
Player Group - Pick every player in Starfleet and do (Actions)
Loop - Actions
Camera - . Apply . gg_cam_Camera_003 for (Picked player) over 0 seconds
Camera - Set (Picked player) 's camera Rotation to 90.00 over 0 seconds
Camera - Set the camera bounds for (Picked player) to (Region((Point(0, -256.00)), (Point(0, -256.00))))
Player Group - Pick every player in TerraKinetics and do (Actions)
Loop - Actions
Camera - . Apply . gg_cam_Camera_003 for (Picked player) over 0 seconds
Camera - Set (Picked player) 's camera Rotation to 270.00 over 0 seconds
Camera - Set the camera bounds for (Picked player) to (Region((Point(0, -256.00)), (Point(0, -256.00))))
Cam Reset
Events
Player - Player 1 (Red) skips a cinematic sequence
Player - Player 2 (Blue) skips a cinematic sequence
Player - Player 4 (Purple) skips a cinematic sequence
Player - Player 5 (Yellow) skips a cinematic sequence
Player - Player 6 (Orange) skips a cinematic sequence
Player - Player 7 (Green) skips a cinematic sequence
Player - Player 9 (Gray) skips a cinematic sequence
Player - Player 10 (Light Blue) skips a cinematic sequence
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering player) is in Starfleet.) Equal to True
Then - Actions
Camera - . Apply . gg_cam_Camera_003 for (Triggering player) over 0 seconds
Camera - Set (Triggering player) 's camera Rotation to 90.00 over 0 seconds
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering player) is in TerraKinetics.) Equal to True
Then - Actions
Camera - . Apply . gg_cam_Camera_003 for (Triggering player) over 0 seconds
Camera - Set (Triggering player) 's camera Rotation to 270.00 over 0 seconds
Else - Actions
Fire Cannon
Events
Unit - A unit Starts the effect of an ability
Conditions
Actions
Trigger - Turn off (This trigger)
Trigger - Turn on (This trigger)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Fan of Knives
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Charges remaining in (Item carried by (Triggering unit) of type Ammunition)) Greater than 0
Then - Actions
Item - Set charges remaining in (Item carried by (Triggering unit) of type Ammunition) to ((Charges remaining in (Item carried by (Triggering unit) of type Ammunition)) - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is in Starfleet.) Equal to True
Then - Actions
Unit - Create 1 . Peasant for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing 90.00 degrees
Unit - Order (Last created unit) to Attack-Move To . ((Position of (Last created unit)) offset by 512.00 towards 90.00 degrees.)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is in TerraKinetics.) Equal to True
Then - Actions
Unit - Create 1 . Peasant for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing 270.00 degrees
Unit - Order (Last created unit) to Attack-Move To . ((Position of (Last created unit)) offset by 512.00 towards 270.00 degrees.)
Else - Actions
Else - Actions
Unit - Order (Triggering unit) to Orc Tauren Chieftain - War Stomp .
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Ability being cast) Equal to Reload (Neutral Hostile 1), (Neutral Hostile)
Then - Actions
Game - Display to (Player group((Owner of (Triggering unit)))) for 2.00 seconds the text: ====================Reloading===============
Wait 2.00 game-time seconds
Item - Set charges remaining in (Item carried by (Triggering unit) of type Ammunition) to (Item level of (Item carried by (Triggering unit) of type Ammunition))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Wander (Neutral)
Then - Actions
Unit - Order (Triggering unit) to Move To . ((Position of (Triggering unit)) offset by 512.00 towards (Facing of (Triggering unit)) degrees.)
Else - Actions
Kill Missile
Events
Unit - A unit enters Region_000 <gen>
Unit - A unit enters Region_001 <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Peasant
Actions
Unit - Kill (Triggering unit)
Untitled Trigger 002
Events
Unit - A unit Is issued an order targeting a point
Conditions
(Issued order) Equal to (Order(attack))
(Unit-type of (Triggering unit)) Equal to Peasant
Actions
Wait 0.40 game-time seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is in Starfleet.) Equal to True
Then - Actions
Unit - Order (Triggering unit) to Attack-Move To . ((Position of (Triggering unit)) offset by 512.00 towards 90.00 degrees.)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is in TerraKinetics.) Equal to True
Then - Actions
Unit - Order (Triggering unit) to Attack-Move To . ((Position of (Triggering unit)) offset by 512.00 towards 270.00 degrees.)
Else - Actions
Untitled Trigger 003
Events
Unit - A unit Is attacked
Conditions
Actions
Unit - Kill (Attacked unit)
Unit - Kill (Attacking unit)
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of (Triggering unit) using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
Untitled Trigger 004
Events
Unit - A unit Dies
Conditions
Or - Any (Conditions) are true
Conditions
((Triggering unit) is A Hero) Equal to True
(Unit-type of (Triggering unit)) Equal to Iceberg
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) Current gold) Greater than 0
Then - Actions
Player - Set (Owner of (Triggering unit)) . Current gold to (((Owner of (Triggering unit)) Current gold) - 1)
Wait 2.00 game-time seconds
Hero - Instantly revive (Dying unit) at ((Owner of (Dying unit)) start location) , Show revival graphics
Hero - Create Potion of Divinity (Divine Shield) and give it to (Dying unit)
Item - Set charges remaining in (Item carried by (Dying unit) of type Ammunition) to (Item level of (Item carried by (Dying unit) of type Ammunition))
Else - Actions
Game - Display to (Player group((Owner of (Triggering unit)))) for 5.00 seconds the text: ==============================You have no more lives.==========
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to Iceberg
Then - Actions
Unit - Remove (Triggering unit) from the game
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is in Starfleet.) Equal to True
(Number of units in (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and (((Owner of (Matching unit)) is in Starfleet.) Equal to True)))) Equal to 0
Then - Actions
Player Group - Pick every player in Starfleet and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: Defeat!
Player Group - Pick every player in TerraKinetics and do (Actions)
Loop - Actions
Game - Victory (Picked player) ( Show dialogs, Show scores)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) is in TerraKinetics.) Equal to True
(Number of units in (Units in (Playable map area) matching ((((Matching unit) is A Hero) Equal to True) and (((Owner of (Matching unit)) is in TerraKinetics.) Equal to True)))) Equal to 0
Then - Actions
Player Group - Pick every player in TerraKinetics and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: Defeat!
Player Group - Pick every player in Starfleet and do (Actions)
Loop - Actions
Game - Victory (Picked player) ( Show dialogs, Show 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.