This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-03-15 14:48:52

DaMarco1313
Scratcher
Registered: 2011-07-12
Posts: 15

An Important Script Piece

When using a list, I found it impossible to delete a specific item from a list. You can delete the first, last, or all of a list, but it doesn't give you the option to delete a specifec item. I want a script piece that will allow you to (delete ____ of list) instead of just a delete first or last. This would DEFINITELY help with my project. Thanks!  smile

Offline

 

#2 2012-03-15 14:49:49

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: An Important Script Piece

You can type in the position that you want.  smile

Offline

 

#3 2012-03-15 14:50:14

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: An Important Script Piece

just type a number or insert a variable in the box  wink


http://i.imgur.com/1QqnHxQ.png

Offline

 

#4 2012-03-15 14:50:59

DaMarco1313
Scratcher
Registered: 2011-07-12
Posts: 15

Re: An Important Script Piece

Yes, I know that, but my positions are randomized whenever I click the flag. It does this for a reason.

Offline

 

#5 2012-03-15 14:55:00

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: An Important Script Piece

You mean delete an item that has a certain value?

Offline

 

#6 2012-03-15 14:56:54

CheeseMunchy
Scratcher
Registered: 2008-10-13
Posts: 1000+

Re: An Important Script Piece

What is the list used for?


6418,

Offline

 

#7 2012-03-15 15:44:15

DaMarco1313
Scratcher
Registered: 2011-07-12
Posts: 15

Re: An Important Script Piece

My list is used for what people the zombies want to chase. The list is randomized and the zombie will chase one of four people. When a person dies, I want that name to be deleted from the list.

Offline

 

#8 2012-03-16 05:44:24

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: An Important Script Piece

So I suggest you loop through it until you find the one you want.

Offline

 

Board footer