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
#Muliplier drops on a gen skript or mulitplier op pickup items
1 messages · Page 1 of 1 (latest)
- "
({_amount}*{boostertest})" will be null. You set the booster to"2", a string/text, not a number - instead of dropping at each gen individually, I would make those list variables, that way you can simply loop it
i don't understand it
Which one?
1 and 2
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}
Its alr between ""
That just the location dirtgen1
no, text is not a number. you cant do math with a string
yes, but you can make it a list, then you can loop th list and drop the dirt, instead of having 1 line per generator
hmm the first one worked but the second one idk how i'm need to loop a drop performance
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