• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

item drop??

Status
Not open for further replies.
Level 1
Joined
Nov 25, 2005
Messages
4
How can i make so that monsters drops different random items depending on the level of the monster?

I want high level monsters to drop random high level items etc.
 
Level 6
Joined
May 13, 2005
Messages
164
Create a INTEGER variable, lets name it <itemdrops> and set it to 100.

Create Trigger as follows...

Event-
A unit dies

Conditions-
(dying unit) equal to <the creep that drops item>

Actions-
Set <itemdrops> to random number from 1 to 10

If/then/else-
-If <itemdrops> equal to 1
-then create (item) on position of (dying unit)
-else do nothing

If/then/else-
-If <itemdrops> greater than 1
-then do nothing
-else do nothing



This trigger drops the specific item from the creep you specified in the condition. The item has a 1 out of 10 chance of dropping on ground whenever the specific creep is slained.
 
Status
Not open for further replies.
Top