#Muliplier drops on a gen skript or mulitplier op pickup items

1 messages · Page 1 of 1 (latest)

lone shard
#
    trigger:
        send "%player% is testing boosters" to players
        create bossbar titled "&b&lTesting booster!" and id "test.boostbar" for players with progress 100 with colors blue
        set {boostertest} to "2"
        loop 100 times:
            set {_BarValue} to value of bossbar "test.boostbar"
            remove 1 from {_BarValue}
            set bossbar "test.boostbar" value to {_BarValue}
            wait 3 ticks
        remove bossbar "test.boostbar"
        set {boostertest} to "1"

command /boostertest:
    trigger:
        send "its now %{boostertest}%" to player

on pick up of dirt:
    if event-item is dirt named "dirt":
        set {_amount} to amount of event-item
        message "&r     &a&l+%{_amount}%" to player
        give ({_amount}*{boostertest}) dirt to player```

this is my booster skript, i was thinking to make the multi on pickup for a personal booster and then

```every {@dirt_genspeed} seconds:
    set {_amount} to {@dirt_ammount} * {boosterglobal}
    drop {_amount} brown dye with name "{@dirt_name}" with lore "", "&e⭐&7⭐⭐⭐⭐ Resource", "" and "{@dirt_rarity}" at {dirtgen1} without velocity
    drop {_amount} brown dye with name "{@dirt_name}" with lore "", "&e⭐&7⭐⭐⭐⭐ Resource", "" and "{@dirt_rarity}" at {dirtgen2} without velocity
    drop {_amount} brown dye with name "{@dirt_name}" with lore "", "&e⭐&7⭐⭐⭐⭐ Resource", "" and "{@dirt_rarity}" at {dirtgen3} without velocity```

and was thinking to make it like this to have it for global boosters
elfin merlin
#
  1. "({_amount}*{boostertest})" will be null. You set the booster to "2", a string/text, not a number
  2. instead of dropping at each gen individually, I would make those list variables, that way you can simply loop it
elfin merlin
#

Which one?

lone shard
#

1 and 2

elfin merlin
#

In the first one, you set the variable to ”2”, and not 2. Thus, it is a string (or text), not a number, and cannot be used in math

#

For the second one, instead of having {dirtgen1}, have {dirtgen::1}

lone shard
elfin merlin
elfin merlin
lone shard
#

on pick up of dirt: if event-item is dirt named "dirt": set {_amount} to amount of event-item message "&r &a&l+%{_amount}%" to player give ({_amount}*{boostertest}) dirt to player

#

and this is not working

elfin merlin
#

Because thats not the expression

#

Its item amount of …