This glitch can be proudly called WTF.
The idea: an ability, that when cast creates a small critter that can carry 1 item (doesn't drop items on death flag set in obj. editor). Then trigger checks for a random item in region and gives it to the critter. Simple.
Event: Unit casts an ability
Condition: Ability being cast equals Silence //Any ability that targets aoe would work
Action:
Unit - Create 1 SmallCritter for Owner of Casting unit at the position of Target point of ability being cast facing <whatever angle>.
Set itemSomeItem = Random item in region centered at target point of abilitybeingcast with 400 width 400 height.
Give itemSomeItem to last created unit
It works fine, yes. They all work "fine" at first
The fun part begins when one or some of the critters carrying items get killed.
A minute after their corpses fully decay (2-3 min total), the items they were carrying magically manifest at their death locations! I thought that's a leak, checked the death spots (prior to reappearances) with "Count items in range" trigger (showed zero items). So that must be something else...
Thousand kudos to whoever can enlighten me on what the hell is going on...
Update: I turned off all other triggers besides "Create small critter". Same result - items reappear.
The idea: an ability, that when cast creates a small critter that can carry 1 item (doesn't drop items on death flag set in obj. editor). Then trigger checks for a random item in region and gives it to the critter. Simple.
Event: Unit casts an ability
Condition: Ability being cast equals Silence //Any ability that targets aoe would work
Action:
Unit - Create 1 SmallCritter for Owner of Casting unit at the position of Target point of ability being cast facing <whatever angle>.
Set itemSomeItem = Random item in region centered at target point of abilitybeingcast with 400 width 400 height.
Give itemSomeItem to last created unit
It works fine, yes. They all work "fine" at first
A minute after their corpses fully decay (2-3 min total), the items they were carrying magically manifest at their death locations! I thought that's a leak, checked the death spots (prior to reappearances) with "Count items in range" trigger (showed zero items). So that must be something else...
Thousand kudos to whoever can enlighten me on what the hell is going on...
Update: I turned off all other triggers besides "Create small critter". Same result - items reappear.
Last edited by a moderator: