Azrooh
New Member
- Reaction score
- 5
Solved
When I pick up the item, nothing happens.The item isn't even in the unit's inventory. The unit is a normal unit with an inventory instead of a hero, could that be causing it?
Trigger:
- Stacking
- Events
- Unit - A unit Acquires an item
- Conditions
- (Item-type of (Item being manipulated)) Equal to Shotgun Shell
- Actions
- Set BulletType = (Item-type of (Item being manipulated))
- Set BulletCharge = (Charges remaining in (Item being manipulated))
- Set BulletUnit = (Triggering unit)
- Item - Remove (Item being manipulated)
- Wait 0.01 seconds
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (BulletUnit has an item of type BulletType) Equal to True
- Then - Actions
- Item - Set charges remaining in (Item carried by BulletUnit of type Shotgun Shell) to ((Charges remaining in (Item carried by BulletUnit of type Shotgun Shell)) + BulletCharge)
- Else - Actions
- Hero - Create BulletType and give it to BulletUnit
- Item - Set charges remaining in (Last created item) to BulletCharge
- If - Conditions
- Events
When I pick up the item, nothing happens.The item isn't even in the unit's inventory. The unit is a normal unit with an inventory instead of a hero, could that be causing it?