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
Scrap Metal Constructors 1.00.w3x
Variables
Initialization
Magnetic Pull
Red Spawn
Blue Spawn
Teal Spawn
Purple Spawn
Yellow Spawn
Orange Spawn
Green Spawn
Pink Spawn
Ragnarok Announcement
Ragnarok Explosion
Constructor Death
Scrap Metal Removal
Metal Refinery
Information Log
Battletank Upgrade
Spawn Scrap Metal
Add Machine Count
Subtract Machine Count
Scrap Metal Functions
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
MagneticPull
ordercode
No
Magnetic Pull
Events
Unit - A unit Begins casting an ability
Conditions
(Item-type of (Target item of ability being cast)) Equal to Scrap Metal
Actions
Item - Move (Target item of ability being cast) to (Position of (Triggering unit))
Red Spawn
Events
Map initialization
Conditions
(Player 1 (Red) slot status) Equal to Is playing
Actions
Unit - Create 1 . Constructor for Player 1 (Red) at (Center of Spawn <gen>) facing Default building facing degrees
Blue Spawn
Events
Map initialization
Conditions
(Player 2 (Blue) slot status) Equal to Is playing
Actions
Unit - Create 1 . Constructor for Player 2 (Blue) at (Center of Spawn <gen>) facing Default building facing degrees
Teal Spawn
Events
Map initialization
Conditions
(Player 3 (Teal) slot status) Equal to Is playing
Actions
Unit - Create 1 . Constructor for Player 3 (Teal) at (Center of Spawn <gen>) facing Default building facing degrees
Purple Spawn
Events
Map initialization
Conditions
(Player 4 (Purple) slot status) Equal to Is playing
Actions
Unit - Create 1 . Constructor for Player 4 (Purple) at (Center of Spawn <gen>) facing Default building facing degrees
Yellow Spawn
Events
Map initialization
Conditions
(Player 5 (Yellow) slot status) Equal to Is playing
Actions
Unit - Create 1 . Constructor for Player 5 (Yellow) at (Center of Spawn <gen>) facing Default building facing degrees
Orange Spawn
Events
Map initialization
Conditions
(Player 6 (Orange) slot status) Equal to Is playing
Actions
Unit - Create 1 . Constructor for Player 6 (Orange) at (Center of Spawn <gen>) facing Default building facing degrees
Green Spawn
Events
Map initialization
Conditions
(Player 7 (Green) slot status) Equal to Is playing
Actions
Unit - Create 1 . Constructor for Player 7 (Green) at (Center of Spawn <gen>) facing Default building facing degrees
Pink Spawn
Events
Map initialization
Conditions
(Player 8 (Pink) slot status) Equal to Is playing
Actions
Unit - Create 1 . Constructor for Player 8 (Pink) at (Center of Spawn <gen>) facing Default building facing degrees
Ragnarok Announcement
Events
Unit - A unit enters (Playable map area)
Conditions
(Unit-type of (Entering unit)) Equal to Ragnarok
Actions
Game - Display to (All players) the text: ((Name of (Owner of (Entering unit))) + has started constructing Ragnarok. It will take 2 minutes to complete, and when it is complete, nothing will save you.)
Ragnarok Explosion
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Ragnarok
Actions
Special Effect - Create a special effect at (Position of (Triggering unit)) using Objects\Spawnmodels\Human\HCancelDeath\HCancelDeath.mdl
Constructor Death
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Constructor
Actions
Unit Group - Pick every unit in (Units owned by (Owner of (Dying unit)).) and do (Change ownership of (Picked unit) to Neutral Passive and Change color)
Game - Display to (All players) the text: ((Name of (Triggering player)) + 's Constructor has died, he is no longer playing.)
Scrap Metal Removal
Events
Unit - A unit enters (Playable map area)
Conditions
(Unit-type of (Triggering unit)) Equal to Scrap Metal
Actions
Player - Add 25 to (Owner of (Entering unit)) . Current gold
Unit - Remove (Entering unit) from the game
Metal Refinery
Events
Time - Every 20.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units of type Metal Refinery) and do (Actions)
Loop - Actions
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Items\AIem\AIemTarget.mdl
Unit - Create 1 . Scrap Metal for (Owner of (Picked unit)) at (Position of (Picked unit)) facing Default building facing degrees
Information Log
Events
Map initialization
Conditions
Actions
Quest - Create a Required quest titled Welcome with the description Welcome to King of the Dump. You control a constructor, which collects scrap metal, and then uses that metal to create machines. Use these machines to destroy rivals. , using icon path ReplaceableTextures\CommandButtons\BTNClockWerkGoblin.blp
Quest - Create a Required quest titled Your Constructor and You with the description Your constructor is the most valuable unit you can possibly have. It can pick up scrap metal and construct various things, including refineries to produce more metal. Be sure to make use of it's magnetic pull ability, it will save you time. It's other ability is spring-loaded jump, which can allow you to get around cliffs more easily. Your constructor is also capable of repairs. If your constructor dies, you lose control of all your units. , using icon path ReplaceableTextures\CommandButtons\BTNClockWerkGoblin.blp
Quest - Create a Optional quest titled Scrap Metal with the description Scrap metal is the resource of this game. It is found as tiny items scattered across the map. Every time you pick up scrap metal, a new piece will spawn in a random region of the map. When a machine is destroyed, it will drop a small amount of scrap metal. , using icon path ReplaceableTextures\CommandButtons\BTNArmorGolem.blp
Battletank Upgrade
Events
Unit - A unit Sells a unit
Conditions
(Unit-type of (Selling unit)) Equal to Battletank
Actions
Unit - Make (Sold unit) face (Facing of (Selling unit)) over 0 seconds
Unit - Set life of (Sold unit) to (Percentage life of (Selling unit)) %
Unit - Remove (Selling unit) from the game
Spawn Scrap Metal
Events
Map initialization
Conditions
Actions
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Item - Create Scrap Metal at (Random point in (Playable map area))
Add Machine Count
Events
Unit - A unit Finishes construction
Conditions
(Unit-type of (Constructed structure)) Not equal to Constructor
Actions
Player - Add 1 to (Owner of (Triggering unit)) . Current lumber
Subtract Machine Count
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Not equal to Constructor
Actions
Item - Create Small Scrap Metal at (Position of (Triggering unit))
Player - Add -1 to (Owner of (Dying unit)) . Current lumber
Scrap Metal Functions
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to Scrap Metal
Actions
Item - Create Scrap Metal at (Random point in (Playable map area))
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.