Warcraft III resources & community, 2003–2006 · archived

Help with triggers

4 posts
#1

Help with triggers

How do i make a unit have a random chance to drop like 1 of 3 items on death? its a spawned unit and wasnt already on the map.
#2
e-summoned unit dies
a-picked random real # between 1-99
if 1-33 create 1 [item1] at position of dying unit
if 34-66 create 1 [item2] at position of dying unit
if 67-99 create 1 [item3] at position of dying unit

hope this helps
#3
hmmm ok ill try to get that... 1 more thing, first time using WEU's save/load code and when you save it gives you the code eg. (no items low stats lvl 1 = H000) so the trigger i have so far is

E: player types chat messege [-load ]
C: P1Hero = none
A: Advanced - Restore a hero with the password (Entered chat string) for Player 1 (Red) at (Center of Death Spawner <gen>)

Ive seen similar ones and can tell its wrong because they had several added things in conditions etc. i just dont know what to use for this trigger...
#4
how do i get that action cause uhh dont know what it is... first time using that :?