I have been encountering errors in adding items to a list, then adding a sublist, then removing the whole list.
ps I had to make it {order:: orders::*} because of this {order:rders::*}
Basically this works but if there are two items in {order:: orders::*} and you remove the first one first it messes everything up.
for addition information, this is the code I use to remove and item from {order:: orders::*}
ps I had to make it {order:: orders::*} because of this {order:rders::*}
Basically this works but if there are two items in {order:: orders::*} and you remove the first one first it messes everything up.
code_language.skript:
add random string out of {@malenames} to {order:: orders::*}
set {_c} to size of {order::orders::*}
set {order::orders::%{_c}%::head} to random item out of {@maleheads}
set {_random} to round(random number between 1 and 7)
loop {_random} times:
add random item out of {@items} to {order::orders::%{_c}%::items::*}
set {order::orders::%{_c}%::money} to size of {order::orders::%{_c}%::items::*} * round(random number between 3 and 7)
for addition information, this is the code I use to remove and item from {order:: orders::*}
code_language.skript:
clear {order::orders::%index of event-slot + 1%::*}
remove {order::orders::%index of event-slot + 1%} from {order::orders::*}