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
Cooking System + water.w3x
Variables
cook
How to import this system
ingredients
cooking
process 1
process 2
Water
process
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
Foodscook
itemcode
Yes
First copy the all abilities and items then correct the variable you can edit this map by remake and add some condition
but dont forgett to credit me ! :D Hope i help
- Cook System
- Well System
ingredients
Events
Map initialization
Conditions
(Item-type of (Matching item)) Equal to Foodscook[(Random integer number between 1 and 4)]
Actions
Set Variable Set Foodscook[1] = "I006"
Set Variable Set Foodscook[2] = "I007"
Set Variable Set Foodscook[3] = "I004"
Set Variable Set Foodscook[4] = "I005"
cooking
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Cook
Actions
Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Other\Doom\DoomTarget.mdl
Wait 1.50 seconds
Special Effect - Destroy (Last created special effect)
Wait 5.00 seconds
Item - Remove (Item carried by (Random unit from (Units owned by (Triggering player) of type Fire Pit)) in slot 1)
Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Other\Doom\DoomDeath.mdl
Special Effect - Destroy (Last created special effect)
Game - Display to (All players) the text: (|c0020c000Yummy your food is ready !|r + ((Name of (Owner of (Triggering unit))) + ))
Item - Create Foodscook[(Random integer number between 1 and 4)] at (Position of (Triggering unit))
process 1
Events
Unit - A unit Acquires an item
Conditions
(Unit-type of (Triggering unit)) Equal to Fire Pit
Actions
Unit - Add Cook to (Triggering unit)
process 2
Events
Unit - A unit Loses an item
Conditions
(Unit-type of (Triggering unit)) Equal to Fire Pit
Actions
Unit - Remove Cook from (Triggering unit)
process
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Get water from the well (Neutral Hostile 2), (Neutral Hostile)
Actions
Special Effect - Create a special effect at (Position of (Triggering unit)) using Objects\Spawnmodels\NightElf\NEDeathMedium\NEDeath.mdl
Wait 1.00 seconds
Special Effect - Destroy (Last created special effect)
Wait 3.00 seconds
Special Effect - Create a special effect at (Position of (Triggering unit)) using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
Special Effect - Destroy (Last created special effect)
Game - Display to (All players) the text: (|c0020c000Your water is ready!|r + ((Name of (Owner of (Triggering unit))) + ))
Item - Create Water at (Position of (Casting 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.