HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

problem with replacing unit

08-10-2008, 04:11 AM#1
nome
hi!

when i try to replace a unit, i get a crash..

IDA
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to Arco Simple
Actions
Unit - Replace (Triggering unit) with a Mountain King using The old unit's relative life and mana


Arco simple its a bow...

when i get the item from the floor, i have no problem
the problem is when i buy the item...

any ideas why?

thanks!
08-12-2008, 10:50 PM#2
crayz
Try replacing Triggering Unit with Hero Manipulating Item

Not sure if it will work, but a quick suggestion.
08-12-2008, 11:09 PM#3
Captain Griffen
Replace Unit creates a new unit, removes the old one, and gives the items to the new unit. This of course sets off the trigger again. How about a condition that the unit ISN'T a mountain king to start with? Or just turn off the trigger, replace unit, turn it back on again.