- Joined
- Jun 22, 2016
- Messages
- 71
I don't understand what is happening with this code. The functionality is to get the number of remaining charges from the dropped holdable item version and then removed. Then it creates a rune item version in its place with the charges passed on to it.
So far it's creating a new item in a nearby point that isn't the place I dropped it and a duplicate were I picked it up.
Also I'm doing my best to avoid memory leaks.
Any help would be appreciated.
So far it's creating a new item in a nearby point that isn't the place I dropped it and a duplicate were I picked it up.
Also I'm doing my best to avoid memory leaks.
Any help would be appreciated.
-
Blood Vial Drop
-

Events
-


Unit - A unit Loses an item
-
-

Conditions
-


(Item-type of (Item being manipulated)) Equal to Blood Vial
-
-

Actions
-


-------- Dropping the Purchase version and giving the charges to the Powerup version. --------
-


Set tempItem = (Item being manipulated)
-


Set tempInteger = (Charges remaining in tempItem)
-


Set tempPoint = (Position of tempItem)
-


Item - Remove tempItem
-


Item - Create Blood Vial at tempPoint
-


Set tempItem = (Last created item)
-


Item - Set charges remaining in tempItem to tempInteger
-


Custom script: call RemoveLocation(udg_tempPoint)
-
-

