HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Respawned units to drop random item

07-08-2007, 04:24 PM#1
UnknownEntity
Hey!

Feels abit silly to ask this, but I can't get it to work no matter how I try. On a map I'm making the creeps respawn after a set amount of time, so far so good. But I wan't them to drop items aswell and the items should have a chance to drop and only 1 item can drom from 1 creep.

The trigger that haves the creeps respawned is a diferent trigger than the one that should create the droped item. So far the trigger that makes a item drop look like this. So, a unit dies and it's owned by Player 11 (Dark Green), and it has a 20% chance to drop.

Trigger:
Collapse Events
Unit - A unit Dies
Collapse Conditions
(Owner of Dying unit)) Equal to Player 11 (Dark Green)
(Random integer number between 1 and 100) Less than or equal to 20
Actions

And to my problem, lets say that I have 10 diferent items that should be able to drop. Only 1 of these items can drop per unit owned by Player 11 (Dark Green). And there should be a 20% chance for an item to drop.

Thanks in advance.
07-08-2007, 04:51 PM#2
sas_Skorpion
How about checking this out :)

---http://wc3campaigns.net/showthread.php?t=80678

hope it can help or maybe try looking for the Creep System made by Paskovitch ... i didnt find it in the download section but ill attach it
Attached Files
File type: w3xCreepSystemPack.w3x (93.3 KB)
07-08-2007, 05:43 PM#3
Histenchist
Can you atleast TRY to use search...
Monster Spawning, Random Item Drops, Random Chat (with villagers) and Taunts by Rao Dao Zao
07-08-2007, 08:16 PM#4
UnknownEntity
Thanks alot for the helpfull replies. I'll try these out!

Yes, that was very helpfull, just what I needed! +rep to both of you.