• 🏆 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!

[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