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
Alchemy v2.0.w3x
Variables
Pot Of Str 1
Potion of strenght 1 emp p1
Potion of strenght 1 p1
duration postr1p1
alchemy
Alchemy v2
DROP items
alchemy by Sadrax
item removing
Item temoving by Sadrax
remove item with 0 charges p1
log
Wyzwalacz bez nazwy 001
Wpisz poniżej własny skrypt dla mapy. Zostanie on dodany do skryptu mapy po określeniu zmiennych i przed dodaniem kodów wyzwalaczy.
Name
Type
is_array
initial_value
PotDrinkingUnit
unit
No
potofstr1duration_p1
integer
No
removeitem
item
No
TMPnumb
integer
No
triggeringunit_p1
unit
No
Potion of strenght 1 emp p1
Events
Unit - A unit Uses an item
Conditions
((Triggering unit) has an item of type Potion of Strenght(1)(E)) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Not equal to PotDrinkingUnit
Then - Actions
Unit - Remove Pot of str 1 from PotDrinkingUnit
Set Variable Set PotDrinkingUnit = (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item being manipulated) Equal to (Item carried by PotDrinkingUnit of type Potion of Strenght(1)(E))
Then - Actions
Unit - Add Pot of str 1 to PotDrinkingUnit
Set Variable Set potofstr1duration_p1 = "45"
Else - Actions
Set Variable Set potofstr1duration_p1 = "45"
Else - Actions
Set Variable Set PotDrinkingUnit = (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
potofstr1duration_p1 Equal to 0
(Item being manipulated) Equal to (Item carried by PotDrinkingUnit of type Potion of Strenght(1)(E))
Then - Actions
Unit - Add Pot of str 1 to PotDrinkingUnit
Set Variable Set potofstr1duration_p1 = "45"
Else - Actions
Set Variable Set potofstr1duration_p1 = "45"
Potion of strenght 1 p1
Events
Unit - A unit Uses an item
Conditions
((Triggering unit) has an item of type Potion of Strenght(1)) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Not equal to PotDrinkingUnit
Then - Actions
Unit - Remove Pot of str 1 from PotDrinkingUnit
Set Variable Set PotDrinkingUnit = (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item being manipulated) Equal to (Item carried by PotDrinkingUnit of type Potion of Strenght(1))
Then - Actions
Unit - Add Pot of str 1 to PotDrinkingUnit
Set Variable Set potofstr1duration_p1 = "45"
Else - Actions
Set Variable Set potofstr1duration_p1 = "45"
Else - Actions
Set Variable Set PotDrinkingUnit = (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
potofstr1duration_p1 Equal to 0
(Item being manipulated) Equal to (Item carried by PotDrinkingUnit of type Potion of Strenght(1))
Then - Actions
Unit - Add Pot of str 1 to PotDrinkingUnit
Set Variable Set potofstr1duration_p1 = "45"
Else - Actions
Set Variable Set potofstr1duration_p1 = "45"
duration postr1p1
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
potofstr1duration_p1 Greater than or equal to 1
Then - Actions
Set Variable Set potofstr1duration_p1 = (potofstr1duration_p1 - 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
potofstr1duration_p1 Equal to 0
Then - Actions
Unit - Remove Pot of str 1 from PotDrinkingUnit
Else - Actions
Alchemy v2
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Make Potions
Actions
Set Variable Set triggeringunit_p1 = (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) has an item of type Empty Vial) Equal to True
((Triggering unit) has an item of type Healing Herbs) Equal to True
((Triggering unit) has an item of type Water) Equal to True
(Charges remaining in (Item carried by (Triggering unit) of type Empty Vial)) Greater than or equal to 1
(Charges remaining in (Item carried by (Triggering unit) of type Healing Herbs)) Greater than or equal to 1
(Charges remaining in (Item carried by (Triggering unit) of type Water)) Greater than or equal to 1
Then - Actions
Set Variable Set TMPnumb = ((Charges remaining in (Item carried by (Triggering unit) of type Healing Herbs)) - 1)
Item - Set charges remaining in (Item carried by (Triggering unit) of type Healing Herbs) to TMPnumb
Set Variable Set TMPnumb = ((Charges remaining in (Item carried by (Triggering unit) of type Empty Vial)) - 1)
Item - Set charges remaining in (Item carried by (Triggering unit) of type Empty Vial) to TMPnumb
Set Variable Set TMPnumb = ((Charges remaining in (Item carried by (Triggering unit) of type Water)) - 1)
Item - Set charges remaining in (Item carried by (Triggering unit) of type Water) to TMPnumb
Hero - Create Weak Healing Potion and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) has an item of type Empty Vial) Equal to True
((Triggering unit) has an item of type Healing Herbs) Equal to True
((Triggering unit) has an item of type Alcohol (Divine Shield)) Equal to True
(Charges remaining in (Item carried by (Triggering unit) of type Empty Vial)) Greater than or equal to 1
(Charges remaining in (Item carried by (Triggering unit) of type Healing Herbs)) Greater than or equal to 1
(Charges remaining in (Item carried by (Triggering unit) of type Alcohol (Divine Shield))) Greater than or equal to 1
Then - Actions
Set Variable Set TMPnumb = ((Charges remaining in (Item carried by (Triggering unit) of type Healing Herbs)) - 1)
Item - Set charges remaining in (Item carried by (Triggering unit) of type Healing Herbs) to TMPnumb
Set Variable Set TMPnumb = ((Charges remaining in (Item carried by (Triggering unit) of type Empty Vial)) - 1)
Item - Set charges remaining in (Item carried by (Triggering unit) of type Empty Vial) to TMPnumb
Set Variable Set TMPnumb = ((Charges remaining in (Item carried by (Triggering unit) of type Alcohol (Divine Shield))) - 1)
Item - Set charges remaining in (Item carried by (Triggering unit) of type Alcohol (Divine Shield)) to TMPnumb
Hero - Create Weak Healing Potion(E) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) has an item of type Empty Vial) Equal to True
((Triggering unit) has an item of type Blue Mushroom) Equal to True
((Triggering unit) has an item of type Water) Equal to True
(Charges remaining in (Item carried by (Triggering unit) of type Blue Mushroom)) Greater than or equal to 2
(Charges remaining in (Item carried by (Triggering unit) of type Empty Vial)) Greater than or equal to 1
(Charges remaining in (Item carried by (Triggering unit) of type Water)) Greater than or equal to 1
Then - Actions
Set Variable Set TMPnumb = ((Charges remaining in (Item carried by (Triggering unit) of type Empty Vial)) - 1)
Item - Set charges remaining in (Item carried by (Triggering unit) of type Empty Vial) to TMPnumb
Set Variable Set TMPnumb = ((Charges remaining in (Item carried by (Triggering unit) of type Blue Mushroom)) - 2)
Item - Set charges remaining in (Item carried by (Triggering unit) of type Blue Mushroom) to TMPnumb
Set Variable Set TMPnumb = ((Charges remaining in (Item carried by (Triggering unit) of type Water)) - 1)
Item - Set charges remaining in (Item carried by (Triggering unit) of type Water) to TMPnumb
Hero - Create Potion of Strenght(1) and give it to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) has an item of type Empty Vial) Equal to True
((Triggering unit) has an item of type Blue Mushroom) Equal to True
((Triggering unit) has an item of type Alcohol (Divine Shield)) Equal to True
(Charges remaining in (Item carried by (Triggering unit) of type Blue Mushroom)) Greater than or equal to 2
(Charges remaining in (Item carried by (Triggering unit) of type Empty Vial)) Greater than or equal to 1
(Charges remaining in (Item carried by (Triggering unit) of type Alcohol (Divine Shield))) Greater than or equal to 1
Then - Actions
Set Variable Set TMPnumb = ((Charges remaining in (Item carried by (Triggering unit) of type Empty Vial)) - 1)
Item - Set charges remaining in (Item carried by (Triggering unit) of type Empty Vial) to TMPnumb
Set Variable Set TMPnumb = ((Charges remaining in (Item carried by (Triggering unit) of type Blue Mushroom)) - 2)
Item - Set charges remaining in (Item carried by (Triggering unit) of type Blue Mushroom) to TMPnumb
Set Variable Set TMPnumb = ((Charges remaining in (Item carried by (Triggering unit) of type Alcohol (Divine Shield))) - 1)
Item - Set charges remaining in (Item carried by (Triggering unit) of type Alcohol (Divine Shield)) to TMPnumb
Hero - Create Potion of Strenght(1)(E) and give it to (Triggering unit)
Else - Actions
DROP items
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Drop items
Actions
Hero - Drop the item from slot 1 of (Triggering unit) .
Hero - Drop the item from slot 2 of (Triggering unit) .
Hero - Drop the item from slot 3 of (Triggering unit) .
Hero - Drop the item from slot 4 of (Triggering unit) .
Hero - Drop the item from slot 5 of (Triggering unit) .
Hero - Drop the item from slot 6 of (Triggering unit) .
How to import:
a) click category with right mouse button and click "copy" (or just press ctrl+c)
b) ctrl + v in your maps trigger editor to paste it in there
[repeat 1 and b for all categories]
c) create variables [variable_name(var_type)]
potofstr1duration_p1 (C)
TMPnumb (C)
PotDrinkingUnit (unit)
triggeringunit_p1 (unit)
removeitem (item)
(if some aren't there they are for other players OR i just forgot about them[then it's my mistake -.-])
d) LAST but not the least: copy all special units, skills, items, efects (you'll need this)
HOW IT WORKS?
totaly new system. (more info in changelog)
Whats included:
- recipes for 2 potions (weak healing potion and potion of strenght 1);
- 2 potions and 2 different reagents;
CHANGELOG:
v 2.0 update:
a whole new system. this time it will work better and more realistic. 1st of all u need to find an Alchemist lab (yea, yea... no idea so copying from WoW/Gothic) next u need to buy WATER & VIALS cause without this raw materials u cant make potions (BONUS: find any kind of strong alcochol to empower the potion a bit.
1 warning: make ALL consumables (materials, potions, etc) as campaign item type, reserving other types for armors/weapons/artifacts/etc.
remove item with 0 charges p1
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Charges remaining in (Item carried by triggeringunit_p1 in slot 6)) Equal to 0
Then - Actions
Set Variable Set removeitem = (Item carried by triggeringunit_p1 in slot 6)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-class of removeitem) Equal to Campaign
Then - Actions
Item - Remove removeitem
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Charges remaining in (Item carried by triggeringunit_p1 in slot 5)) Equal to 0
Then - Actions
Set Variable Set removeitem = (Item carried by triggeringunit_p1 in slot 5)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-class of removeitem) Equal to Campaign
Then - Actions
Item - Remove removeitem
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Charges remaining in (Item carried by triggeringunit_p1 in slot 4)) Equal to 0
Then - Actions
Set Variable Set removeitem = (Item carried by triggeringunit_p1 in slot 4)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-class of removeitem) Equal to Campaign
Then - Actions
Item - Remove removeitem
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Charges remaining in (Item carried by triggeringunit_p1 in slot 3)) Equal to 0
Then - Actions
Set Variable Set removeitem = (Item carried by triggeringunit_p1 in slot 3)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-class of removeitem) Equal to Campaign
Then - Actions
Item - Remove removeitem
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Charges remaining in (Item carried by triggeringunit_p1 in slot 2)) Equal to 0
Then - Actions
Set Variable Set removeitem = (Item carried by triggeringunit_p1 in slot 2)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-class of removeitem) Equal to Campaign
Then - Actions
Item - Remove removeitem
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Charges remaining in (Item carried by triggeringunit_p1 in slot 1)) Equal to 0
Then - Actions
Set Variable Set removeitem = (Item carried by triggeringunit_p1 in slot 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-class of removeitem) Equal to Campaign
Then - Actions
Item - Remove removeitem
Else - Actions
Else - Actions
Wyzwalacz bez nazwy 001
Events
Map initialization
Conditions
Actions
Quest - Create a Optional quest titled How this work? with the description Get the materials placed in lower left corner of the map and put them in the alchemist lab. next use the labs skill "make potions" and witnes the power of alchemy =) (water will make normal potion while Alcohol empowers it a bit) , using icon path ReplaceableTextures\CommandButtons\BTNPotionRed.blp
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.