- Joined
- Apr 23, 2008
- Messages
- 263
is there anyway to instantly replace an item because when i delete it and create a new one at the same location it looks really ugly.
Try this:
But I don't what do you mean by "ugly".
- Item Replacing
- Events
- Player - Player 1 (Red) skips a cinematic sequence
- Conditions
- Actions
- Set Location = (Position of Item)
- Item - Remove Item
- Item - Create Tome of Experience at Location
- Set Item = (Last created item)
- Custom script: call RemoveLocation(udg_Location)
Powerup can be used even when the inventory is full.
And when the recipe is complete that permanent item is replaced with the resulting item from the recipe ?
I still don't understand why you would drop the permanent item to be replaced with a powerup
OK, I uderstand now.
But you said the trigger I post have some problem and looks wierd in the game do you mean the item animation when it is created, like tomes when they scale up and chests when they open ?
the Temp Point gets the wrong location for the item without my 0.00 wait
Is that statisfiyes what you need ?
- Drop Item
- Events
- Unit - Warden 0000 <gen> Loses an item
- Conditions
- (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
- Actions
- Trigger - Turn off (This trigger)
- Set TempLocation = ((Position of (Triggering unit)) offset by 100.00 towards (Facing of (Triggering unit)) degrees)
- Item - Remove (Item being manipulated)
- Item - Create Tome of Experience at TempLocation
Turn off Trigger doesn't stop the execution of the reamaining action(s), I turned it off because items get duplicated and create 2 items, turn it on again at the end of the trigger.
I checked now DotA recipe system, it works with a free inventory space. And I can't find what you mean by droping the recipe item then it is replaced by a powerup.