#How To Compress This Skript?

1 messages · Page 1 of 1 (latest)

severe gale
#

I was told this skript can be compressed as it is 490 lines

placid steppe
#

well it probably can be shotened but dont expect anyone here to do it for you xd

undone aurora
#

it can be shortened by alot by the looks of it

vale plume
#

there is a way like

#
  set {_n} to loop-value
  set slot {_n} of {_inv} to {_item}```
#

acording to your scripts

#

i think this is the way loop {_amount} of times: set {_n} to loop-value set slot 10+{_n} of {_inv} to {_item::%{_n}%}

#

just an example

shy tundra
#

whenever you copy and paste a chunk of code and just tweak it a bit, thats a sign you can make a better block of code without the need to do that, or use a function

#

for example, the upgrading swords can certaintly be a funcion

#

would be easier if it was a list too

severe gale
#

idk what a function is icl