S
SrH-Kush420
Guest
This is Pretty Simple But For Thos Of You Who Dont Know How To Do It Heres mine. Item Drops Are when You Kill a Unit and You Get Like #/# chance To Get That Item.
Step 1: Creating the variable
Name - DropNumber
Type - Integer Array
Step 2: Setting up the trigger
Usually the event for item drops is
Now we must set up the variables and part of the conditions.
There we just setup the unit type of dying unit and the variables for the drop.
Step 3: Setting up the actions
Here we will check if the DropNumber Variable is = to the Number we Set it up as "(DropNumber = (Random integer number between 1 and 10)"
If it is then the item will drop if not then nothing happens.
Heres the final trigger:
Step 1: Creating the variable
Name - DropNumber
Type - Integer Array
Step 2: Setting up the trigger
Usually the event for item drops is
Code:
.
Events
Unit - A unit Dies
.
Code:
Iron Sword
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Dying unit)) Equal to Furblog Mini
(Owner of (Dying unit)) Equal to Neutral Hostile
Then - Actions
Set DropNumber = (Random integer number between 1 and 10)
Else - Actions
Step 3: Setting up the actions
Here we will check if the DropNumber Variable is = to the Number we Set it up as "(DropNumber = (Random integer number between 1 and 10)"
If it is then the item will drop if not then nothing happens.
Code:
Then - Actions
Set DropNumber = (Random integer number between 1 and 10)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
DropNumber Equal to 1
Then - Actions
Item - Create Iron Sword at (Position of (Dying unit))
Else - Actions
Heres the final trigger:
Code:
Iron Sword
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Dying unit)) Equal to Furblog Mini
(Owner of (Dying unit)) Equal to Neutral Hostile
Then - Actions
Set DropNumber = (Random integer number between 1 and 10)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
DropNumber Equal to 1
Then - Actions
Item - Create Iron Sword at (Position of (Dying unit))
Else - Actions
Else - Actions