The problem is the block that says remove item from list, if a variable is inserted, detects item positions in a list, not the actual items in the list.
So if you have:
Item 1: 2
Item 2: 1
And you set a variable to 1 and ask it to delete what is stored in the variable, it gets rid of the first item in the example above, not the second.
I haven't yet figured a way around this, but if I do I'll try to help.
Offline
i haven't found a solution but i have found a way around it on my game which had a list problem but I have already realeased it ultimate cards it's a card game.
Offline
If you want to delete a specific value, use;
set [i v] to [1]
repeat (length of [list v])
if <(item (i) of [list v]) = [Value]>
delete (i) of [list v]
end
change [i v] by [1]
end
Offline
RedRocker227 wrote:
If you want to delete a specific value, use;
set [i v] to [1] repeat (length of [list v]) if <(item (i) of [list v]) = [Value]> delete (i) of [list v] end change [i v] by [1] end
thanks for the,tip
Offline