Discuss Scratch

The_Fish909
Scratcher
100+ posts

How to delete an Object out of a list

I have a game but i am using lists for a inventory system and I added an object to the inventory using this block
add [thing] to [list v]

but I cant remove it i can only use this block
delete (1 v) of [list v]
it can only be numbers which is very annoying
I cant find a block that just removes text not numbers
-TUB-
Scratcher
100+ posts

How to delete an Object out of a list

The way the delete block works is that it will delete a specific index from the list. You can remove an item using:
delete (item # of (item) in [list v]) of [list v]

- T U B -
The United Bathtubs


Select part of my signature and use shift+down arrow to see the rest





scratchusername40
Scratcher
1000+ posts

How to delete an Object out of a list

Try using
delete (item # of [item] of [list v] :: list) of [list v]


















The_Fish909
Scratcher
100+ posts

How to delete an Object out of a list

scratchusername40 wrote:

Try using
delete (item # of [item] of [list v] :: list) of [list v]

yea this seemed to work

Powered by DjangoBB