- Joined
- Feb 13, 2009
- Messages
- 388
Hello, I was trying to make a simple "stacking" system without different "items for inventory" and "items for ground" (rune system) so I've written this.
However when I try to pick up "fruit" I am dropped to desktop without ANY error.

However when I try to pick up "fruit" I am dropped to desktop without ANY error.
-
Events
-

Unit - A unit Acquires an item
-
-
Conditions
-

(Item-type of (Item being manipulated)) Equal to Fruit
-
-
Actions
-

Set pickedItemGround[(Player number of (Owner of (Triggering unit)))] = (Item being manipulated)
-

Hero - Drop pickedItemGround[(Player number of (Owner of (Triggering unit)))] from (Triggering unit)
-

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-


If - Conditions
-



((Triggering unit) has an item of type Fruit) Equal to True
-
-


Then - Actions
-



Set pickedItemcarried[(Player number of (Owner of (Triggering unit)))] = (Item carried by (Triggering unit) of type Fruit)
-



Item - Set charges remaining in pickedItemcarried[(Player number of (Owner of (Triggering unit)))] to ((Charges remaining in pickedItemcarried[(Player number of (Owner of (Triggering unit)))]) + (Charges remaining in pickedItemGround[(Player number of (Owner of (Triggering unit)))]))
-



Item - Remove pickedItemGround[(Player number of (Owner of (Triggering unit)))]
-
-


Else - Actions
-



Hero - Create Fruit and give it to (Triggering unit)
-



Item - Remove pickedItemGround[(Player number of (Owner of (Triggering unit)))]
-
-
-



