Is this possible to do.?

  • Thread starter Thread starter Biskelion
  • Start date Start date
You could go with an array of type "item-type", put all your items inside,
and randomly create one.

Now, lets take an example, assuming you fill your array something like this:

set myItems[ 1] = item 1
set myItems[ 2] = item 1
set myItems[ 3] = item 1
set myItems[ 4] = item 1
set myItems[ 5] = item 1
set myItems[ 6] = item 2
set myItems[ 7] = item 2
set myItems[ 8] = item 3
set myItems[ 9] = item 3
set myItems[10] = item 4


Then some trigger along the lines of:

E: Creep dies
C: random integer between 1 and 100 less then 20
A: create myItem[ random between 1 and 10 ] at dying spot


The condition in this trigger makes it so that there's only one chance in five
for an item to actually be dropped.
And, (now it comes :)), the item table will make sure,
that item 1 has 1 chance in 2 to come, while, for example, item 3 only has 1 chance in 5.

Adjustable to your tastes and needs.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/
  • The Helper The Helper:
    Also on the bottom right side bar we now have a Trending Content Box!
    +1
  • The Helper The Helper:
    Not on the Headline News page just on the Forums page can we get that Featured and Trending on the home page?
  • Ghan Ghan:
    Since the home page is technically a forum, it now shows on all forum views. Still in the sidebar.
    +1
  • The Helper The Helper:
    Happy Friday! Hope everyone has a fantastic day and an even better weekend!
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +1
  • Wizard Wizard:
    lol
    +1

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top