• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

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