I´m not shure will it work but i need 10% to drop "small shit" and 2% to drop "big shit"You are confusing your random item placement with a chance function.
Should be more like this
It will drop big shit if 3% chance occured and wont drop any others. If 3% didnt occur then it checks if the 5% occured and drops random small shit.
Shit happens
Events
Unit - A unit Dies
Conditions
((Killing unit) is A Hero) Equal to True
Actions
Set tempinteger= (Random integer number between 1 and 100)
Set FIXLAGS = (Position of (Dying unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempinteger less than or equal to 3
Then - Actions
Set dropsomeshit[50] = Big shit
Item - Create dropsomeshit[50] at FIXLAGS
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If- Conditions
tempinteger less than or equal to 5
Then - Actions
Set dropsomeshit[1] = Small Shit
Set dropsomeshit[2] = Small Shit
Set dropsomeshit[3] = Small Shit
Set dropsomeshit[4] = Small Shit
Set dropsomeshit[5] = Small Shit
Item - Create dropsomeshit[(Random integer number between 1 and 5)] at FIXLAGS
Else - Actions
Custom script: call RemoveLocation(udg_FIXLAGS)
Game - Display to (All players) the text: BIG VAMP
This method works well and simple too but.. except theres a little difference to mine..Fill in the rest of the info
Untitled Trigger 001
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Equal to 1
Then - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Equal to 2
Then - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Equal to 3
Then - Actions
Else - Actions
Dude, it's simple. Please turn your brain on.
condition is good it means that only when player 11 kills a unit with his hero it may have chance to drop gold from dying unit like in "Vampirism Fire 5.06"I still don't think that your brain is on...
firstly, shouldn't it be COIN instead of COINT
secondly, I think you mean "(Owner of (Dying unit))" instead of "(Owner of (Killing unit))"
thirdly, why not just do "if integer is 8 or lower do drop gold coin" then "if integer is 9 drop big gold coin"
That WILL work.
FOURTHLY
you should have set the drop things in INITIALIZATION, not when a unit dies.
Just FYI You do Not need to set the integer into a variable.
works just the same without the hassle.
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 3