🏆 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!
🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!
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
MilitiaWarMultiplayer.w3x
Variables
KamPlayer2
Start Fight Copy
End fight loop Copy Copy
ResearchsSword Copy
ResearchsArmor Copy
ResearchsSword2 Copy
ResearchsArmor2 Copy
ResearchsSword3 Copy
ResearchsArmor3 Copy
Victory/Defeat
VictoryPlay1
VictoryPlay2
Defeat1
Defeat2
Inicio
inicio
KamPlayer1
Start Fight
End fight loop Copy
ResearchsSword
ResearchsArmor
ResearchsSword2
ResearchsArmor2
ResearchsSword3
ResearchsArmor3
Variables
Inserisci il codice dello script personalizzato per la mappa nello spazio sottostante. Il testo verrà incluso nello script della mappa dopo che le variabili sono state dichiarate e prima di qualsiasi codice trigger.
Name
Type
is_array
initial_value
Point
location
No
Point2
location
No
UnitGroup
group
No
UnitGroup2
group
No
UnitsInRangeGroup
group
No
UnitsInRangeGroup2
group
No
Start Fight Copy
Events
Unit - A unit Is attacked
Conditions
(Owner of (Attacking unit)) Equal to Player 2 (Blue)
((Unit-type of (Attacking unit)) Equal to Milicia) or (((Unit-type of (Attacking unit)) Equal to Footman) or (((Unit-type of (Attacking unit)) Equal to Knight) or ((Unit-type of (Attacking unit)) Equal to Dark Minion)))
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(UnitGroup2 is empty) Equal to True
Then - Actions
Trigger - Turn on End_fight_loop_Copy <gen>
Else - Actions
Unit Group - Add (Attacking unit) to UnitGroup
Unit - Change ownership of (Attacking unit) to Player 4 (Purple) and Retain color
End fight loop Copy Copy
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in UnitGroup and do (Actions)
Loop - Actions
Set Variable Set Point2 = (Position of (Picked unit))
Set Variable Set UnitsInRangeGroup2 = (Units within 500.00 of Point matching (((Matching unit) belongs to an enemy of Player 2 (Blue).) Equal to True).)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(UnitsInRangeGroup2 is empty) Equal to True
(All units of UnitsInRangeGroup2 are dead) Equal to True
Then - Actions
Unit - Change ownership of (Picked unit) to Player 2 (Blue) and Change color
Unit Group - Remove (Picked unit) from UnitGroup2 .
Else - Actions
-------- destroy the unit group and point here to avoid leaks --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(UnitGroup2 is empty) Equal to True
Then - Actions
Trigger - Turn off (This trigger)
Else - Actions
ResearchsSword Copy
Events
Unit - A unit owned by Player 2 (Blue) . Finishes research
Conditions
(Current research level of Rhme (Unexpected type: 'techcode') for Player 2 (Blue)) Equal to 1
Actions
Wait 2.00 seconds
Player - Set the current research level of Rhme (Unexpected type: 'techcode') to 1 for Player 4 (Purple)
ResearchsArmor Copy
Events
Unit - A unit owned by Player 2 (Blue) . Finishes research
Conditions
(Current research level of Rhar (Unexpected type: 'techcode') for Player 2 (Blue)) Equal to 1
Actions
Wait 2.00 seconds
Player - Set the current research level of Rhar (Unexpected type: 'techcode') to 1 for Player 4 (Purple)
ResearchsSword2 Copy
Events
Unit - A unit owned by Player 2 (Blue) . Finishes research
Conditions
(Current research level of Rhme (Unexpected type: 'techcode') for Player 2 (Blue)) Equal to 2
Actions
Wait 2.00 seconds
Player - Set the current research level of Rhme (Unexpected type: 'techcode') to 2 for Player 4 (Purple)
ResearchsArmor2 Copy
Events
Unit - A unit owned by Player 2 (Blue) . Finishes research
Conditions
(Current research level of Rhar (Unexpected type: 'techcode') for Player 2 (Blue)) Equal to 2
Actions
Wait 2.00 seconds
Player - Set the current research level of Rhar (Unexpected type: 'techcode') to 2 for Player 4 (Purple)
ResearchsSword3 Copy
Events
Unit - A unit owned by Player 2 (Blue) . Finishes research
Conditions
(Current research level of Rhme (Unexpected type: 'techcode') for Player 2 (Blue)) Equal to 3
Actions
Wait 2.00 seconds
Player - Set the current research level of Rhme (Unexpected type: 'techcode') to 3 for Player 4 (Purple)
ResearchsArmor3 Copy
Events
Unit - A unit owned by Player 2 (Blue) . Finishes research
Conditions
(Current research level of Rhar (Unexpected type: 'techcode') for Player 2 (Blue)) Equal to 3
Actions
Wait 2.00 seconds
Player - Set the current research level of Rhar (Unexpected type: 'techcode') to 3 for Player 4 (Purple)
VictoryPlay1
Events
Time - Every 10.00 seconds of game time
Conditions
(Number of units in (Units in (Playable map area) owned by Player 2 (Blue))) Less than or equal to 5
Actions
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
Game - Defeat Player 2 (Blue) with the message: Defeat!
VictoryPlay2
Events
Time - Every 10.00 seconds of game time
Conditions
(Number of units in (Units in (Playable map area) owned by Player 1 (Red))) Less than or equal to 5
Actions
Game - Victory Player 2 (Blue) ( Show dialogs, Show scores)
Game - Defeat Player 1 (Red) with the message: Defeat!
Defeat1
Events
Time - Every 10.00 seconds of game time
Conditions
(Number of units in (Units in (Playable map area) owned by Player 1 (Red))) Less than or equal to 5
Actions
Game - Victory Player 2 (Blue) ( Show dialogs, Show scores)
Game - Defeat Player 1 (Red) with the message: Defeat!
Defeat2
Events
Time - Every 10.00 seconds of game time
Conditions
(Number of units in (Units in (Playable map area) owned by Player 2 (Blue))) Less than or equal to 5
Actions
Game - Victory Player 1 (Red) ( Show dialogs, Show scores)
Game - Defeat Player 2 (Blue) with the message: Defeat!
inicio
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Player - Make Player 1 (Red) treat Player 3 (Teal) as an Ally with shared vision
Player - Make Player 1 (Red) treat Player 4 (Purple) as an Enemy
Player - Make Player 3 (Teal) treat Player 1 (Red) as an Ally with shared vision
Player - Make Player 3 (Teal) treat Player 2 (Blue) as an Enemy
Player - Make Player 3 (Teal) treat Player 4 (Purple) as an Enemy
Player - Make Player 2 (Blue) treat Player 3 (Teal) as an Enemy
Player - Make Player 2 (Blue) treat Player 4 (Purple) as an Ally with shared vision
Player - Make Player 4 (Purple) treat Player 2 (Blue) as an Ally with shared vision
Player - Make Player 4 (Purple) treat Player 1 (Red) as an Enemy
Player - Make Player 4 (Purple) treat Player 3 (Teal) as an Enemy
Player - Set Player 1 (Red) . Current gold to 150
Player - Set Player 1 (Red) . Current lumber to 100
Player - Set Player 2 (Blue) . Current gold to 150
Player - Set Player 2 (Blue) . Current lumber to 100
Player - Limit training of Líder Guerreiro to 1 for Player 1 (Red)
Player - Limit training of Líder das Arqueiras to 1 for Player 1 (Red)
Player - Limit training of Líder Guerreiro to 1 for Player 2 (Blue)
Player - Limit training of Líder das Arqueiras to 1 for Player 2 (Blue)
Visibility - Disable fog of war
Start Fight
Events
Unit - A unit Is attacked
Conditions
(Owner of (Attacking unit)) Equal to Player 1 (Red)
((Unit-type of (Attacking unit)) Equal to Milicia) or (((Unit-type of (Attacking unit)) Equal to Footman) or (((Unit-type of (Attacking unit)) Equal to Knight) or ((Unit-type of (Attacking unit)) Equal to Dark Minion)))
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(UnitGroup is empty) Equal to True
Then - Actions
Trigger - Turn on End_fight_loop_Copy <gen>
Else - Actions
Unit Group - Add (Attacking unit) to UnitGroup
Unit - Change ownership of (Attacking unit) to Player 3 (Teal) and Retain color
End fight loop Copy
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in UnitGroup and do (Actions)
Loop - Actions
Set Variable Set Point = (Position of (Picked unit))
Set Variable Set UnitsInRangeGroup = (Units within 500.00 of Point matching (((Matching unit) belongs to an enemy of Player 1 (Red).) Equal to True).)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(UnitsInRangeGroup is empty) Equal to True
(All units of UnitsInRangeGroup are dead) Equal to True
Then - Actions
Unit - Change ownership of (Picked unit) to Player 1 (Red) and Change color
Unit Group - Remove (Picked unit) from UnitGroup .
Else - Actions
-------- destroy the unit group and point here to avoid leaks --------
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.