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

[Trigger] Items apearing

Status
Not open for further replies.
Level 8
Joined
Jan 18, 2007
Messages
331
its pretty easy. just use a trigger.

Events:
a unit dies (you can chose a player specific unit, but remember 2 set wath player that uses the unit*[or witch player that owns the unit])

conditions*
owner of dieing unit equals to player(your player)

actions

item- create a random item for killing unit(or mabey dying unit)

thats my trigger... and theres a random item item.
 
Level 8
Joined
Nov 5, 2005
Messages
342
If ur after particular drops (like maybe spider-based drops from spiders) you could do something more specific, like:

EVENT: Unit Dies

CONDITIONS:
OR Any Conditions are true
[Unit type of (Dying Unit) equal to (Spider 1)]
[Unit type of (Dying Unit) equal to (Spider 2)]

EVENTS:
Set Variable (Spider Drops) = Random Integer between 1-10
IF ((Spider Drop) equal to 1) THEN (Create (Spider Part) at position of (Dying Unit)) ELSE (Do Nothing)
IF ((Spider Drop) equal to 2) THEN (Create (Spider Part 2) at position of (Dying Unit)) ELSE (Do Nothing)
IF ((Spider Drop) greater than 2) THEN (Do Nothing) ELSE (Do Nothing)

Ok, I got a lil carried away, but its a useful way of doing it for RPGs and the like.
 
Status
Not open for further replies.
Top