• 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.

Drop Chance

Status
Not open for further replies.
Level 3
Joined
Jul 26, 2011
Messages
38
Hi guys

can u help me with this?

if a enemy die there 50% chance to drop an item
if the 50% chance fail. Kill (killing unit)

how to do this?
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
this is wrote from head on mobile so there may be spelling errors
  • Events
    • Unit - A unit dies
  • Conditions
    • Unit-Type of Triggering unit is equal to whatever unit type you want
      • //if you want this for any unit remove the condition
  • Actions
    • If Math - Random Integer from 1 to 2 or whatever it is is equal to 1 do Then actions else do Else actions
    • Then
      • Item - Create Item ...
    • Else
      • Unit - kill Killing Unit
when I get my hands on keyboard I will write it in editor and copy it here if noone else does so meanwhile
 
Status
Not open for further replies.
Top