Trouble with mobs dropping items (Solved)
I've been doing pretty good up until this skill, what is suppose to happen is you cast the skill on a enemy unit and it has a random chance to land. If it lands, it leaves a buff that lets the players know and when that unit dies it drops an item. Right now the skill works and the buff is left on the creature, but when it dies, nothing happens. I have tried a few different ways to check the dying unit for a buff but none have worked yet. My most recent attempt is:
I know the unit has the buff which is based off of the ability slow (with no decreases) and the buff duration is maxed and is on the unit when the final blow is made. Hope someone knows what i did wrong or has another way to go about it.
Thanks for your time
YO_MA_MA
I've been doing pretty good up until this skill, what is suppose to happen is you cast the skill on a enemy unit and it has a random chance to land. If it lands, it leaves a buff that lets the players know and when that unit dies it drops an item. Right now the skill works and the buff is left on the creature, but when it dies, nothing happens. I have tried a few different ways to check the dying unit for a buff but none have worked yet. My most recent attempt is:
-
Spoiled Dies
-
Events
- Unit - A unit Dies
-
Conditions
- ((Triggering unit) has buff Spoiled ) Equal to True
- -------- I have also tried "dying unit" --------
-
Actions
- Set SpoiledChanceInt = (Random integer number between 1 and 2)
- Game - Display to (All players) for 30.00 seconds the text: actions now
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- SpoiledChanceInt Equal to 1
-
Then - Actions
- Game - Display to (All players) for 30.00 seconds the text: 1
- Else - Actions
-
If - Conditions
-
Events
I know the unit has the buff which is based off of the ability slow (with no decreases) and the buff duration is maxed and is on the unit when the final blow is made. Hope someone knows what i did wrong or has another way to go about it.
Thanks for your time
YO_MA_MA
Last edited: