1. Are you planning to upload your awesome spell or system to Hive? Please review the rules here.
    Dismiss Notice
  2. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  3. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  4. Weave light to take you to your highest hopes - the 6th Special Effect Contest is here!
    Dismiss Notice
  5. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  6. 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:
    350
    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:
    350
    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.