HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Item Transformation

07-08-2008, 12:18 PM#1
Evernite.
Hello, I have a problem with an item transformation. What I have is object A, with a dummy ability, targeting items. I want that ability to change one specific type of item into object B. Basically:
Code:
Item A ~ Specific Item Type => Item B

I tried to detect the ability used by object A, but without success, nothing is created. I also tried detecting the order given to the unit using the item, but I didn't succeed either.

GUI seems to speak a different language than I do sometimes. :(
07-09-2008, 09:42 AM#2
Pyrogasm
Well, you might do something like this:
Trigger:
Items
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Item Transmute
(Item-type of (Target item of ability being cast)) Equal to Health Potion
Collapse Actions
Set TempPoint = (Position of (Target item of ability being cast))
Item - Remove (Target item of ability being cast)
Item - Create Mana Potion at TempPoint
Custom script: call RemoveLocation(udg_TempPoint)
If you wanted to do it for multiple items, you could use an If-Then-Else or a loop.
07-09-2008, 11:13 AM#3
Evernite.
Ah, thank you! It worked perfectly!

I think the main reason of my problem was that it was a non-hero unit that used the item... silly me, I forgot about that. :(

Thank you again. :)
07-09-2008, 11:23 AM#4
Pyrogasm
Sure thing.