#how would i go about making it so everyone who damages a dragon gets a drop?

1 messages · Page 1 of 1 (latest)

robust summit
#

just check on damage of dragon

#

and then add the attacker to a list

#

then check when the dragon dies

#

ye pretty much

#

thats the concept

#

make a function to make it easier to see

tacit wolf
robust summit
#
    set {_random} to random integer between 1 and 10
    if {_random} is 1:
        give {_p} bonemeal```
#

this is an example

#

u can edit it

#

but u can just loop the players and then input them into the function

#
    loop {AllAttackers::*}:
      randomitems(loop-value)```
#

i sent u the concept of the function

#

from there u should be able to understand it

#

and edit it

tacit wolf
#
  1. These variables are probably better off as lists
  2. why the heck are you passing in {AllAttackers::*} but then looping it (the original, not the parameter) as well?
  3. ^, give loop-value random element of ...
robust summit
#

wait whats number 3 x8ight

#

whats that suoposed to do.. teach me wise one

#

wdym give loop-value random element of?

#

u can just do it without a function?

tacit wolf
#

!give me random element of (diamond, emerald, coal)

robust summit
#

i had no idea ty 😮

#

no i think its equal amounts

#

which means ure gonna have to use a function like a proposed