every a second:
loop all players:
if {LVL.%loop-player%} = 0:
set {EXPDO.%loop-player%} to {LVLUP0}
if {EXP.%loop-player%} >= {LVLUP0}:
add 1 to {LVL.%loop-player%}
if {LVL.%loop-player%} is 1:
set {EXPDO.%loop-player%} to {LVLUP2}
if {EXP.%loop-player%} >= {LVLUP1}:
add 1 to {LVL.%loop-player%}
if {LVL.%loop-player%} = 2:
set {EXPDO.%loop-player%} to {LVLUP3}
if {EXP.%loop-player%} >= {LVLUP2}:
add 1 to {LVL.%loop-player%}
if {LVL.%loop-player%} is 3:
set {EXPDO.%loop-player%} to {LVLUP4}
if {EXP.%loop-player%} >= {LVLUP3}:
add 1 to {LVL.%loop-player%}
if {LVL.%loop-player%} is 4:
set {EXPDO.%loop-player%} to {LVLUP5}
if {EXP.%loop-player%} >= {LVLUP4}:
add 1 to {LVL.%loop-player%}
if {LVL.%loop-player%} is 5:
set {EXPDO.%loop-player%} to {LVLUP5}
if {EXP.%loop-player%} >= {LVLUP5}:
add 1 to {LVL.%loop-player%}
if {LVL.%loop-player%} is 6:
set {EXPDO.%loop-player%} to {LVLUP5}
if {EXP.%loop-player%} >={LVLUP6}:
add 1 to {LVL.%loop-player%}
if {LVL.%loop-player%} is 7:
set {EXPDO.%loop-player%} to {LVLUP5}
if {EXP.%loop-player%} >= {LVLUP7}:
add 1 to {LVL.%loop-player%}
if {LVL.%loop-player%} is 8:
set {EXPDO.%loop-player%} to {LVLUP5}
if {EXP.%loop-player%} >= {LVLUP8}:
add 1 to {LVL.%loop-player%}
if {LVL.%loop-player%} is 9:
set {EXPDO.%loop-player%} to {LVLUP5}
if {EXP.%loop-player%} >= {LVLUP9}:
add 1 to {LVL.%loop-player%}
if {LVL.%loop-player%} is 10:
set {EXPDO.%loop-player%} to {LVLUP5}
if {EXP.%loop-player%} >= {LVLUP10}:
add 1 to {LVL.%loop-player%}
jestem nowy i chodzi mi o to aby ten skrypt jakos zmniejszyc i zoptymalizowac pomoze ktos?
ew. czy moze ktos mi napisac skrypt na tej zadadzie ale mniejszy
Pytanie
Legal95 15
Skrypt jest na lvl na RPG
every a second: loop all players: if {LVL.%loop-player%} = 0: set {EXPDO.%loop-player%} to {LVLUP0} if {EXP.%loop-player%} >= {LVLUP0}: add 1 to {LVL.%loop-player%} if {LVL.%loop-player%} is 1: set {EXPDO.%loop-player%} to {LVLUP2} if {EXP.%loop-player%} >= {LVLUP1}: add 1 to {LVL.%loop-player%} if {LVL.%loop-player%} = 2: set {EXPDO.%loop-player%} to {LVLUP3} if {EXP.%loop-player%} >= {LVLUP2}: add 1 to {LVL.%loop-player%} if {LVL.%loop-player%} is 3: set {EXPDO.%loop-player%} to {LVLUP4} if {EXP.%loop-player%} >= {LVLUP3}: add 1 to {LVL.%loop-player%} if {LVL.%loop-player%} is 4: set {EXPDO.%loop-player%} to {LVLUP5} if {EXP.%loop-player%} >= {LVLUP4}: add 1 to {LVL.%loop-player%} if {LVL.%loop-player%} is 5: set {EXPDO.%loop-player%} to {LVLUP5} if {EXP.%loop-player%} >= {LVLUP5}: add 1 to {LVL.%loop-player%} if {LVL.%loop-player%} is 6: set {EXPDO.%loop-player%} to {LVLUP5} if {EXP.%loop-player%} >={LVLUP6}: add 1 to {LVL.%loop-player%} if {LVL.%loop-player%} is 7: set {EXPDO.%loop-player%} to {LVLUP5} if {EXP.%loop-player%} >= {LVLUP7}: add 1 to {LVL.%loop-player%} if {LVL.%loop-player%} is 8: set {EXPDO.%loop-player%} to {LVLUP5} if {EXP.%loop-player%} >= {LVLUP8}: add 1 to {LVL.%loop-player%} if {LVL.%loop-player%} is 9: set {EXPDO.%loop-player%} to {LVLUP5} if {EXP.%loop-player%} >= {LVLUP9}: add 1 to {LVL.%loop-player%} if {LVL.%loop-player%} is 10: set {EXPDO.%loop-player%} to {LVLUP5} if {EXP.%loop-player%} >= {LVLUP10}: add 1 to {LVL.%loop-player%}jestem nowy i chodzi mi o to aby ten skrypt jakos zmniejszyc i zoptymalizowac pomoze ktos?
ew. czy moze ktos mi napisac skrypt na tej zadadzie ale mniejszy
Edytowane przez EwaldOdnośnik do komentarza
https://skript.pl/temat/25950-skr%C3%B3cenie-skryptu-optymalizacja/Udostępnij na innych stronach
0 odpowiedzi na to pytanie
Rekomendowane odpowiedzi