W
warcraftguy
Guest
Ok first i made a trigger like this...
Test
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Gnoll lv 2
Actions
Set dyingunit = (Random integer number between 1 and 5)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
dyingunit Equal to 1
Then - Actions
Item - Create sword at (Position of (Dying unit))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
dyingunit Equal to 2
Then - Actions
Item - Create light axe at (Position of (Dying unit))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
dyingunit Equal to 3
Then - Actions
Item - Create huge axe at (Position of (Dying unit))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
dyingunit Equal to 4
Then - Actions
Item - Create long sword at (Position of (Dying unit))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
dyingunit Equal to 5
Then - Actions
Item - Create dagger at (Position of (Dying unit))
Else - Actions
Do nothing
The problem was that the item that dropped was always #5 (dagger) can anyone help me out
Test
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Gnoll lv 2
Actions
Set dyingunit = (Random integer number between 1 and 5)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
dyingunit Equal to 1
Then - Actions
Item - Create sword at (Position of (Dying unit))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
dyingunit Equal to 2
Then - Actions
Item - Create light axe at (Position of (Dying unit))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
dyingunit Equal to 3
Then - Actions
Item - Create huge axe at (Position of (Dying unit))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
dyingunit Equal to 4
Then - Actions
Item - Create long sword at (Position of (Dying unit))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
dyingunit Equal to 5
Then - Actions
Item - Create dagger at (Position of (Dying unit))
Else - Actions
Do nothing
The problem was that the item that dropped was always #5 (dagger) can anyone help me out


