HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Adding items to doodads automatically.

05-19-2006, 08:56 AM#1
Siphonized
I want every barrel/crate to have a 1% chance to drop something, but I don't want to select each barrels manually and add the item list...

Is it possible to apply it automatically?
05-19-2006, 09:03 AM#2
aquilla
Trigger:
Collapse Event
Event - A destructable dies
Collapse Conditions
Dying destructable is of type Barrel
Random Integer between 0 and 100 is equal to 1
Collapse Actions
Item - Create whatever item

Edited by Blade.dk. Reason: Changed it a bit so it looks correct with the trigger tags :).
05-19-2006, 12:23 PM#3
Siphonized
Not the same editor... I don't have that Event :<
05-19-2006, 08:45 PM#4
Anitarf
There's no generic destructable dies event.

There's the destructable in region dies event, but I think it has some issues.
05-21-2006, 08:53 AM#5
PerfectlyInsane
Do you think it would be possible to copy and paste a barrel that has an item inside?
05-21-2006, 09:15 AM#6
Siphonized
No idea...
But the region destructible thing "works"... It does spawn an item, just that it does it in the center of the map... there's no Action that matches the Condition... Since there's only (Position of (Triggering UNIT))... And a destructible is not a unit.
05-21-2006, 09:18 AM#7
Anitarf
That's why there's also a function for Position of Destructible, just look harder for it.
05-21-2006, 09:57 AM#8
Siphonized
Lol, how the hell did I miss that..