🏆 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!
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
Survival Project.w3x
Variables
Initialization
Initial Lumber
Food
Wheat
New Food
Farms
Help
Help 1
Hunger
Hunger
Hunger 2 1
Hunger 3 1
Hunger 4 1
Hunger 2
Hunger 2 2
Hunger 3 2
Hunger 4 2
Plant Growing
Wheat Seeds
Matirials
Iron
Special Transactions
Sword
Hunting
Chicken
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
Initial Lumber
Events
Map initialization
Conditions
Actions
Player - Add 100 to Player 1 (Red) . Current lumber
Player - Add 100 to Player 2 (Blue) . Current lumber
Player - Add 100 to Player 3 (Teal) . Current lumber
Player - Add 100 to Player 4 (Purple) . Current lumber
Wheat
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Wheat
Actions
Item - Create Wheat at (Position of (Triggering unit))
Farms
Events
Time - Every 60.00 seconds of game time
Conditions
Actions
Unit - Create 1 . Wheat for Player 5 (Yellow) at (Random point in Farm_2 <gen>) facing Default building facing degrees
Unit - Create 1 . Wheat for Player 5 (Yellow) at (Random point in Farm_1 <gen>) facing Default building facing degrees
Unit - Create 1 . Wheat for Player 5 (Yellow) at (Random point in Farm_3 <gen>) facing Default building facing degrees
Unit - Create 1 . Wheat for Player 5 (Yellow) at (Random point in Farm_4 <gen>) facing Default building facing degrees
Help 1
Events
Map initialization
Conditions
Actions
Quest - Create a Optional quest titled Help:Survival with the description What would normaly be your mana gauge is now your hunger gauge and if your hunger gauge runs out then you start losing life and eventually you will die. , using icon path ReplaceableTextures\CommandButtons\BTNSpy.blp
Quest - Create a Optional quest titled Help:Planting with the description In this game you have to plant to get plants to survive and eat. To get seeds and plant them go your farm (Build one if needed) then purchase seeds then plant them (In your garden if you dont want other people stealing your plants.) and wait. , using icon path ReplaceableTextures\CommandButtons\BTNSpy.blp
Hunger
Events
Unit - Person 0025 <gen> 's mana becomes Less than or equal to 0.00
Conditions
Actions
Unit - Add a 120.00 second Generic expiration timer to (Triggering unit)
Hunger 2 1
Events
Unit - Person 0026 <gen> 's mana becomes Less than or equal to 0.00
Conditions
Actions
Unit - Add a 120.00 second Generic expiration timer to (Triggering unit)
Hunger 3 1
Events
Unit - Person 0027 <gen> 's mana becomes Less than or equal to 0.00
Conditions
Actions
Unit - Add a 120.00 second Generic expiration timer to (Triggering unit)
Hunger 4 1
Events
Unit - Person 0028 <gen> 's mana becomes Less than or equal to 0.00
Conditions
Actions
Unit - Add a 120.00 second Generic expiration timer to (Triggering unit)
Hunger 2
Events
Unit - Person 0025 <gen> 's mana becomes Greater than or equal to 1.00
Conditions
Actions
Unit - Pause the expiration timer for (Triggering unit) .
Hunger 2 2
Events
Unit - Person 0026 <gen> 's mana becomes Greater than or equal to 1.00
Conditions
Actions
Unit - Pause the expiration timer for (Triggering unit) .
Hunger 3 2
Events
Unit - Person 0027 <gen> 's mana becomes Greater than or equal to 1.00
Conditions
Actions
Unit - Pause the expiration timer for (Triggering unit) .
Hunger 4 2
Events
Unit - Person 0028 <gen> 's mana becomes Greater than or equal to 1.00
Conditions
Actions
Unit - Pause the expiration timer for (Triggering unit) .
Wheat Seeds
Events
Unit - A unit Finishes construction
Conditions
(Unit-type of (Triggering unit)) Equal to Wheat Seeds
Actions
Wait 45.00 seconds
Unit - Replace (Triggering unit) with a Wheat using The new unit's max life and mana
Iron
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Mine
Actions
Wait 1.00 seconds
If ((Terrain type at (Position of (Triggering unit))) Equal to Lordaeron Summer - Rock) then do (Create Iron at (Position of (Triggering unit))) else do (Do nothing)
Sword
Events
Unit - A unit Sells an item (from shop)
Conditions
(Item-type of (Last created item)) Equal to Sword
Actions
If ((Item carried by (Buying unit) of type Iron) Equal to (Item carried by (Buying unit) in slot 1)) then do (Create Sword at (Position of (Buying unit))) else do (Display to (All players matching ((Owner of (Buying unit)) Equal to (Owner of (Buying unit))).) the text: You need to have 1 iron to purchase that.)
Chicken
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Chicken
Actions
Item - Create Chicken at (Position of (Triggering unit))
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.