• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Simple Item Drop System for Percentages

This bundle is marked as pending. It has not been reviewed by a staff member yet.
First time submitting. I hope this gets reviewed just in case I missed anything.
I've tried to make it GUI, MUI, Leakless.
Just copy the folder and make sure all variables are declared.

Drop system for GUI users where you create an Array for the items dropped and a second Array for how much chance(percentage) of each item has to drop.
After setting these, you just choose wich Arrays to use when applying the drop.

Example Percentages:
Mana Potion - 10% (writen as 1,0)
Health Potion - 5% (writen as 0,5)
Orb of Frost - 1% (writen as 0,1)
Min chance - 0,1% (writen as 0,01)
Max chance - 100,0% (writen as 10,00)

And the system will make the maths (instead of repeating them every time for each unit).
You can apply the same Arrays to many units or create new Arrays for each new unit.

There is also an extra variable in the begginning that lets you change the "dificulty" of the drop, meaning: that variable can be used to reduce all chances overall.

This was the simplest version I've been able to came up with, doesn't require use of hashtables and item ID's wich can be a bit more advanced to newer users.
Contents

Just another Warcraft III map (Map)

Level 2
Joined
Mar 1, 2020
Messages
22
Is this drop item system?

Edit: Oh, so... It useful for RPG map. I like It
 
Last edited:
Level 3
Joined
Mar 1, 2018
Messages
41
Sorry I didn't notice. Yes it's a drop system for GUI users where you create an Array for the items dropped and a second Array for how much chance(percentage) of each item has to drop.
After setting these, you just choose wich Arrays to use when applying the drop.
 
Level 11
Joined
Jul 17, 2013
Messages
544
Sorry I didn't notice. Yes it's a drop system for GUI users where you create an Array for the items dropped and a second Array for how much chance(percentage) of each item has to drop.
After setting these, you just choose wich Arrays to use when applying the drop.


it would be intresting if there was an option to set max limit of items that can drop. just to prevent too much items.
 
Top