- Joined
- Sep 12, 2008
- Messages
- 657
well.. i did a trigger that i currently want to drop random item from 4 items in a variable..
i did 99% drop and it still drops only once then stops the drops.. its like it just disables the trigger... heres the trigger:
Events:
Unit - A unit Dies
Conditions:
(Owner of (Dying unit)) Equal to Neutral Hostile
(Unit-type of (Dying unit)) Equal to (Random level 1 creep unit-type)
Actions:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 0 and 100) Less than or equal to 99
Then - Actions
Item - Create Level1_Item[(Random integer number between 1 and 4)] at (Position of (Dying unit))
Game - Display to (All players) the text: ((The + (Name of (Dying unit))) + ( has dropped a + (Name of (Last created item))))
Else - Actions
NOTE: i did another trigger with the
Set Level1_Item[1] = Claws of Attack +15
Set Level1_Item[2] = Kelen's Dagger of Escape
Set Level1_Item[3] = Assassin's Blade
Set Level1_Item[4] = Frostguard
please help me.. its realy important for my map...
i did 99% drop and it still drops only once then stops the drops.. its like it just disables the trigger... heres the trigger:
Events:
Unit - A unit Dies
Conditions:
(Owner of (Dying unit)) Equal to Neutral Hostile
(Unit-type of (Dying unit)) Equal to (Random level 1 creep unit-type)
Actions:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 0 and 100) Less than or equal to 99
Then - Actions
Item - Create Level1_Item[(Random integer number between 1 and 4)] at (Position of (Dying unit))
Game - Display to (All players) the text: ((The + (Name of (Dying unit))) + ( has dropped a + (Name of (Last created item))))
Else - Actions
NOTE: i did another trigger with the
Set Level1_Item[1] = Claws of Attack +15
Set Level1_Item[2] = Kelen's Dagger of Escape
Set Level1_Item[3] = Assassin's Blade
Set Level1_Item[4] = Frostguard
please help me.. its realy important for my map...