- Joined
- Feb 13, 2010
- Messages
- 116
Ok we have 2 trigers that drop items when a creep its killed
First: Used for multyple item drop
This item drop chance uses integer(variable) to determinate chance to drop an item.
This item drop chance uses integer(variable) to determinate what item to drop.
First: Used for multyple item drop
This item drop chance uses integer(variable) to determinate chance to drop an item.
-
Item Drop Chance
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
Actions
-
-------- We set the random's --------
-
-------- random = integer --------
-
Set Random1 = (Random integer number between 0 and 10)
-
Set Random2 = (Random integer number between 0 and 10)
-
-------- Item 1 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Triggering unit)) Equal to Lvl 2 Pig Boss
-
Random1 Less than or equal to 5
-
-
Then - Actions
-
-------- next we chose what creep drop this item and what are the number that random must be so that the item drops. --------
-
-------- So random is a number betewen 0-10 and the required number is 5 or less so that means that the item has a 50% chance to drop when this creep dies --------
-
Item - Create Claws of Attack +15 at (Position of (Triggering unit))
-
-------- then we crate the item at the position of the dyingng unit --------
-
-
Else - Actions
-
Do nothing
-
-
-
-------- and this is the same trigger but for anthoer creep --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Triggering unit)) Equal to Lvl 2 Pig Melle
-
Random1 Less than or equal to 5
-
-
Then - Actions
-
Item - Create Claws of Attack +15 at (Position of (Triggering unit))
-
-
Else - Actions
-
Do nothing
-
-
-
-------- Item 2 --------
-
-------- Item nr 2 has a 20% chance to drop --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Triggering unit)) Equal to Lvl 2 Pig Boss
-
Random2 Less than or equal to 2
-
-
Then - Actions
-
Item - Create Runed Gauntlets at (Position of (Triggering unit))
-
-
Else - Actions
-
Do nothing
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Triggering unit)) Equal to Lvl 2 Pig Melle
-
Random2 Less than or equal to 2
-
-
Then - Actions
-
Item - Create Runed Gauntlets at (Position of (Triggering unit))
-
-
Else - Actions
-
Do nothing
-
-
-
-
This item drop chance uses integer(variable) to determinate what item to drop.
-
Untitled Trigger 001
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
Actions
-
-------- We set the random's --------
-
-------- random = integer --------
-
Set Random1 = (Random integer number between 0 and 3)
-
-------- Item 1 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Triggering unit)) Equal to Lvl 2 Pig Boss
-
Random1 Equal to 1
-
-
Then - Actions
-
-------- We set the creep --------
-
-------- And random 1 what nr must be so the trigger start working --------
-
Item - Create Claws of Attack +15 at (Position of (Triggering unit))
-
-------- Chose the item --------
-
-
Else - Actions
-
Do nothing
-
-
-
-------- Item 2 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Triggering unit)) Equal to Lvl 2 Pig Boss
-
Random1 Equal to 2
-
-
Then - Actions
-
Item - Create Ring of Protection +5 at (Position of (Triggering unit))
-
-
Else - Actions
-
Do nothing
-
-
-
-------- Item 3 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Triggering unit)) Equal to Lvl 2 Pig Boss
-
Random1 Less than or equal to 3
-
-
Then - Actions
-
Item - Create Heart of Aszune at (Position of (Triggering unit))
-
-
Else - Actions
-
Do nothing
-
-
-
-------- ALL OF THEM MUST BE THE SAME CREEP !!! --------
-
-
-
Untitled Trigger 001
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
Actions
-
-------- We set the random's --------
-
-------- random = integer --------
-
Set Random1 = (Random integer number between 0 and 3)
-
Set Random2 = (Random integer number between 0 and 10)
-
-------- Item 1 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Triggering unit)) Equal to Lvl 2 Pig Boss
-
Random1 Equal to 1
-
Random2 Less than or equal to 5
-
-
Then - Actions
-
-------- We set the creep --------
-
-------- Also set random2 for a chance --------
-
-------- And random 1 what nr must be so the trigger start working --------
-
-------- Also set random2 for a chance --------
-
-------- So random is a number betewen 0-10 and the required number is 5 or less so that means that the item has a 50% chance to drop when this creep dies --------
-
Item - Create Claws of Attack +15 at (Position of (Triggering unit))
-
-------- Chose the item --------
-
-
Else - Actions
-
Do nothing
-
-
-
-------- Item 2 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Triggering unit)) Equal to Lvl 2 Pig Boss
-
Random1 Equal to 2
-
Random2 Less than or equal to 5
-
-
Then - Actions
-
Item - Create Ring of Protection +5 at (Position of (Triggering unit))
-
-
Else - Actions
-
Do nothing
-
-
-
-------- Item 3 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Triggering unit)) Equal to Lvl 2 Pig Boss
-
Random1 Less than or equal to 3
-
Random2 Less than or equal to 5
-
-
Then - Actions
-
Item - Create Heart of Aszune at (Position of (Triggering unit))
-
-
Else - Actions
-
Do nothing
-
-
-
-------- ALL OF THEM MUST BE THE SAME CREEP !!! --------
-
-
Last edited: