1. Are you planning to upload your awesome spell or system to Hive? Please review the rules here.
    Dismiss Notice
  2. Seek unity between the elements in the 22nd Terraining Contest Poll.
    Dismiss Notice
  3. Seize the moment! The 18th Mini Mapping Contest has commenced.
    Dismiss Notice
  4. The heavens smile on the old faithful. The 16th Techtree Contest has begun.
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Simple Item Drop System for Percentages

Submitted by CarlosCepinha
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)

  1. emil23

    emil23

    Joined:
    Jul 17, 2013
    Messages:
    408
    Resources:
    1
    Maps:
    1
    Resources:
    1
    how about giving it a name? instead just another warcraft iii map
     
  2. Norris

    Norris

    Joined:
    Mar 1, 2020
    Messages:
    22
    Resources:
    0
    Resources:
    0
    Is this drop item system?

    Edit: Oh, so... It useful for RPG map. I like It
     
    Last edited: Apr 20, 2020
  3. CarlosCepinha

    CarlosCepinha

    Joined:
    Mar 1, 2018
    Messages:
    41
    Resources:
    0
    Resources:
    0
    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.
     
  4. emil23

    emil23

    Joined:
    Jul 17, 2013
    Messages:
    408
    Resources:
    1
    Maps:
    1
    Resources:
    1

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