- Joined
- Oct 6, 2006
- Messages
- 293
Alright im trying to make a trigger set. It contains 2 triggers.
1. The first trigger checks if an item is used, in this case a bottle. Its has to be used in an area (shallow pond) for it to work.
2. Checks if an item of filled bottle is used and removes it and replaces with empty bottle.
Problem* I dont know how create a temploc variable or anything i could use to check the location or make a location so that it only can be done from that character inside the area. I currently have it set up below but u can stick any unit in the area and fill your bottle anywhere on land.
Any help appreciated , im just starting to understand variables.
Triggers below
(Problem trigger)
Fill Bottle
Events
Unit - A unit Uses an Item
Conditions
(item-type of (item being manipulated))Equal to reusable bottle
(number of units in (units in enchanted water <gen>))Greater than or equal to 1
Actions
Item - Remove (item being manipulated)
Hero - Create Bottle and give it to (Triggering unit)
(Trigger workin, but can be revised with top)
Use Bottle
Events
Unit - A unit Uses an item
Conditions
(Item-type of (item being manipulated)) Equal to Enchanter Spring Water
Actions
Item - Remove (item being manipulated)
Hero - Create Reusable Bottle and give it to (Triggering unit)
1. The first trigger checks if an item is used, in this case a bottle. Its has to be used in an area (shallow pond) for it to work.
2. Checks if an item of filled bottle is used and removes it and replaces with empty bottle.
Problem* I dont know how create a temploc variable or anything i could use to check the location or make a location so that it only can be done from that character inside the area. I currently have it set up below but u can stick any unit in the area and fill your bottle anywhere on land.
Any help appreciated , im just starting to understand variables.
Triggers below
(Problem trigger)
Fill Bottle
Events
Unit - A unit Uses an Item
Conditions
(item-type of (item being manipulated))Equal to reusable bottle
(number of units in (units in enchanted water <gen>))Greater than or equal to 1
Actions
Item - Remove (item being manipulated)
Hero - Create Bottle and give it to (Triggering unit)
(Trigger workin, but can be revised with top)
Use Bottle
Events
Unit - A unit Uses an item
Conditions
(Item-type of (item being manipulated)) Equal to Enchanter Spring Water
Actions
Item - Remove (item being manipulated)
Hero - Create Reusable Bottle and give it to (Triggering unit)
Last edited: