• 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 16
Joined
May 1, 2008
Messages
1,605
Seas =)

If the unit is on the map I agree to the solution of Archangel_Tidusx.

If the unit is not on the map you can simply use something like that:

  • Item Drop
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Spirit Wolf
    • Actions
      • Set TempPoint = (Position of (Triggering unit))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 100) Greater than or equal to 70
        • Then - Actions
          • Item - Create Tome of Experience at TempPoint
        • Else - Actions
          • Item - Create Orb of Frost at TempPoint
      • Custom script: call RemoveLocation(udg_TempPoint)
What you see here?:
- The "creep" is Spirit Wolf in this case
- If the Spirit Wolf dies there's the following drop chance:
- 30% for the Tome of Experience
- 70% to an Orb of Frost

I agree if someone would say: "Omg remember if he want to drop 50 items at one creep this can be alot of work" but it's simply the easiest way ^^

Also I don't know if you need this "TempPoint" here - but as I know everyone on hive are "horny" to use TempPoints, so ... :wwink:
 
Status
Not open for further replies.
Top