There is 2 way the effect i want happen .
first way is that you have 2 items of required items for the merging on 3
then you get the 3rd item and the 3 items become one containing the skills of all 3 ( for the skills retained i bet that would be item creating ) . For the merging part banreality just told me trigger is the key so i guess maybe trigger ill have to check.
the second way is that u have the items needed but need to buy the recipe for them to merge|||Very simple, just check if there are items in slots from a hero through a trigger, if you need a helping hand, ill can deliver an example later today.|||Well thanks item trigger i should be able to find it ill post if i cant make it on my own from there thank you.|||Ok, this is an easy one, what you mean is similar to recipee except without the recipe part. For this i'll say you want to fill a vial of water.
Create the 5 items,
1. Empty vial
2. 1/3 full vial
3. 2/3 full vial
4. full Vial
5. Some kind of item that would fill up the vials [in this case, Water Jug]
you can make these do anything you really want, aura's, really anything, but make sure they only have 1 charge if their a charged item.
Code:
Unit - A unit Acquires an item
((Hero manipulating item) Water Jug) Equal to True
((Hero manipulating item) has an item of type Empy Vial) Equal to True
Item - Remove (Item carried by (Hero manipulating item) of Empty Vial)
Item - Remove (Item carried by (Hero manipulating item) of Jug of Water)
Item - Create 1/3 Full Vial at (Position of (Hero manipulating item))
Special Effect - Create a special effect at (Center of (Playable map area)) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Hero - Give (Last created item) to (Hero manipulating item)
Wait 2.00 seconds
Special Effect - Destroy (Last created special effect)
Do nothing
this is a very simple version of this code, you can set it up so you use the vial on a unit, such as a "fountain of Water" but this trigger is used untill you fill up the water|||Thank you very nice i shall test out and learn this =]
No comments:
Post a Comment