#(Doxa) Dropping items with specific name
25 messages · Page 1 of 1 (latest)
(Doxa) Dropping items with specific name
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
- define item ...
- adjust def:item display:<[list].random>
- drop <[item]>
you can do something like this
ah k
now my problem is with using it in an array
is there any easy way to assign each item a chance and than roll the chance in a script
i mean, for really simple assigning each item a chance, items you want a higher chance of getting just put into the list multiple times
if you want to assign specific chances though you can do
!t util.random
Multiple possible tags: <util.random.uuid>, <util.random_uuid>, <util.random.gauss>, <util.random.duuid[(<source>)]>, <util.random_gauss>, <util.random.int[<#>].to[<#>]>, <util.random_chance[<percent>]>, <util.random.decimal>, <util.random.boolean>, <util.random_decimal>, <util.random_boolean>, <util.random_simplex[x=<#.#>;(y=<#.#>);(z=<#.#>);(w=<#.#>)]>, <util.random.decimal[<#.#>].to[<#.#>]>.
!t util.random_chance
Returns a random boolean (true or false) with the given percent chance (from 0 to 100).
ElementTag(Boolean)
- if <util.random_chance[25]>:
- narrate "This happens 25% of the time"
- else:
- narrate "This happens 75% of the time"
Returns a random integer number between the 2 specified integer numbers, inclusive.
ElementTag(Number)
# Will narrate '1', '2', or '3'
- narrate <util.random.int[1].to[3]>
that to make random chances in if-else statements
gotcha