code_language.skript:
...
if line 2 of event-block is "baltop":
if line 3 of event-block is "1", "2", "3", "4", "5", "6", "7", "8", "9" or "10":
set {_topnumber} to line 3 of event-block
set {sign::*} to event-block
send "&7You have created a &abalance top &7sign."
stop
else if line 3 of event-block is not "1", "2", "3", "4", "5", "6", "7", "8", "9" or "10":
cancel event
send "&7You need to specify a top number between &a1 &7and &a10&7."
stop
else if player doesn't have permission "seco.signs" or "seco.admin":
send "&cYou don't have permission to do this!"
every 4 seconds:
loop {seco.bal::*}:
add 1 to {_size}
if {_low.to.high.list::%loop-value%} is not set:
set {_low.to.high.list::%loop-value%} to loop-index
else:
set {_n} to 0
loop {_size} times:
set {_n} to {_n}+1
if {_low.to.high.list::%loop-value-1%.%{_n}%} is not set:
set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
stop loop
wait 1 tick
set {_n} to size of {_low.to.high.list::*}
loop {_low.to.high.list::*}:
set {_high.to.low.list::%{_n}%} to loop-value
set {_n} to {_n}-1
wait 1 tick
set {_total.balances} to 0
loop {_high.to.low.list::*}:
add 1 to {_topnumber}
set {_b} to block at {sign::%{_topnumber}%}
set {_player} to "%loop-value%" parsed as offlineplayer
set line 1 of {_b} to "&0##%{_topnumber}%"
set line 2 of {_b} to "&a%{_player}%"
set line 3 of {_b} to "&0%{seco.bal::%{_player}%}%&0&l€"
set line 4 of {_b} to ""
set block above {_b} to {_player}'s skull
if {_topnumber} = 10:
stop
1. The player skull doesn't apear.
2. The top signs only gets displayed on blank signs. I want to display the top that I write on the third line of the sign, (It always/only displays the top 2)
Thanks